Q: how to reset the admin password when the command line appears to not work??
Fresh install on Ubuntu 22.04. I installed gitea from the snap store, then did a apt install of mysql 5.7.42 from mysql.com’s repo (after adding gpg key, setting up sources.list, etc). Created my gitea user and giteadb in mysql.
Walked through the gitea installation, appeared successful. Looked around, everything appeared to be “working”. Logged out and now it will not let me log back in again.
The app.ini file for the snap appears to be in the following location and I see my a few instances of PASSWORD in it:
# gitea -h
# gitea --help
# gitea admin change-password --username gitea --password 3uQCQ4:Vah_9 -c “/var/snap/gitea/common/conf/app.ini”
# echo $?
< result = UNABLE TO LOGIN >
gitea --config /var/snap/gitea/common/conf/app.ini admin user change-password -u gitea 3uQCQ4_Vah_9
# echo $?
< result - UNABLE TO LOGIN >
Stopped snap with:
snap stop gitea
# tried the above again - UNABLE TO LOGIN
Does the gitea snap have to be installed with snap “classic” confinement?
If not, what am I missing here???
This really should NOT be this complicated…
PS. I checked the mysql database, logged in as the gitea user and the DB seems fine.