Gitea - Custom config not found


I would like to dump my data with the command “gitea”. Unfortunately this is not possible:

gitea dump --tempdir /root/backup/gitea                  
2019/07/02 15:20:00 [W] Custom config '/run/current-system/sw/bin/custom/conf/app.ini' not found, ignore this if you're running first time
2019/07/02 15:20:00 [...s/setting/setting.go:725 NewContext()] [E] failed to create '/run/current-system/sw/bin/custom/conf/app.ini': mkdir /run/current-system/sw/bin/custom: read-only file system

It is also not possible to create users [1].

I see that the filesystem is included as “read-only” but I don’t know how to solve this.


[1] Usage: Command Line - Docs

That was a horrible experience. As root I ran the following:

cd /var/lib/gitea
sudo -u gitea HOME=/var/lib/gitea gitea admin create-user -c /var/lib/gitea/custom/conf/app.ini --name myname --password asecurepassword --email

You should file an issue on github to have this fixed. Not a pleasant experience at all.

1 Like

I’ll do that. Thanks again for the help :slight_smile: