Sorry, I deleted the earlier topic by mistake and cannot seem to figure out how to undo it. Hence creating a new topic. My apologies for this mess.
I am getting something similar while trying to configure gitea on a debian machine. I used snap to install gitea, and have created the necessary postgres database/user.
Then, I run gitea using:
GITEA_WORK_DIRE=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini
When I try to configure on the browser, I get the following error:
“Failed to save configuration: open /etc/gitea/app.ini: permission denied”
At the moment /etc/gitea has all the permissions, and as a normal user, I can create/modify /etc/gitea/app.ini (for example, touch /etc/gitea/app.ini). In fact, even if I specify the location of app.ini in my own home directory while starting gitea, the web interface does not create app.ini.
This is peculiar, and I can’t seem to figure out what is wrong. Would appreciate any help.