# Always back to the intial configuration page

**URL:** <https://forum.gitea.com/t/always-back-to-the-intial-configuration-page/646>\
**Category:** General\
**Created:** [October 21, 2018, 12:24pm UTC](https://forum.gitea.com/t/always-back-to-the-intial-configuration-page/646 "2018-10-21T12:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Un4Seen](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@Un4Seen](https://forum.gitea.com/u/Un4Seen)\
**Post date:** [October 21, 2018, 12:24pm UTC](https://forum.gitea.com/t/always-back-to-the-intial-configuration-page/646/1 "2018-10-21T12:24:23Z")

</div>

Hello Everybody!

I’ve tried Gitea today for the first time. I have successfully installed it on an ODROID XU4 device and I’m storing its repos on some USB mounted hard disks.

At first Gitea looks to be working just fine. But when I reboot the machine and try to log into Gitea again (from the webpage), it always reverts back to the Initial configuration page, asking me to configure the database, the domain, the paths, etc. This page should only be displayed on first install, not after every reboot.

I’m guessing that it cannot save some data somewhere and that’s why it always thinks that it’s initializing itself again from scratch. Can you tell me what it is checking to determine if it is the first install or not, so that I can track down what is wrong?

Additional details:  
Machine type: ODROID XU4  
Architecture: ARMv7l  
OS: Ubuntu 18.04  
System disk: SD card  
Gitea repository storage disk: HDD over USB.

 ![GiteaInitialConfiguration](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/bb507fbab93e8bd24110ccffdab7428991257f14.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![Un4Seen](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@Un4Seen](https://forum.gitea.com/u/Un4Seen)\
**Post date:** [October 21, 2018, 1:22pm UTC](https://forum.gitea.com/t/always-back-to-the-intial-configuration-page/646/2 "2018-10-21T13:22:44Z")

</div>

I have figured it out!

When you complete the initial configuration, the settings are saved into an **app.ini** file which is located in a subdirectory of the directory into which Gitea is installed (in my case: **/home/git/gitea/custom/conf/app.ini** ). However, after reboot Gitea is trying to read the contents of the app.ini from **/etc/gitea/app.ini**. I’m guessing that upon first configuration it should have written the config to this file too, but for some reason it could not do it (although the permissions were correctly set as per the installation guide for the **/etc/gitea/app.ini** file and its parent directory). The **/etc/gitea/app.ini** was almost empty (contained one line) while the **/home/git/gitea/custom/conf/app.ini** contained the real settings.

So **_the solution_** is to overwrite the **/etc/gitea/app.ini** with **/home/git/gitea/custom/conf/app.ini** and after that it will not keep reverting to the initial config page. Remember to restart the Gitea service or reboot the system after overwiting the **/etc/gitea/app.ini** file!
