The gitea snap won’t run via systemd or directly. I don’t know enough about apparmor to say it’s a profile thing, but I’ll investigate that next.
# snap list gitea
Name Version Rev Tracking Publisher Notes
gitea v1.12.0+gitdev.279.gb09ec508c 4732 latest/edge gitea -
# systemctl status snap.gitea.web.service
● snap.gitea.web.service - Service for snap application gitea.web
Loaded: loaded (/etc/systemd/system/snap.gitea.web.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-05-09 21:05:34 EDT; 14h ago
Process: 16154 ExecStart=/usr/bin/snap run gitea.web (code=exited, status=1/FAILURE)
Main PID: 16154 (code=exited, status=1/FAILURE)
May 09 21:05:34 shuttle systemd[1]: snap.gitea.web.service: Service RestartSec=100ms expired, scheduling restart.
May 09 21:05:34 shuttle systemd[1]: snap.gitea.web.service: Scheduled restart job, restart counter is at 5.
May 09 21:05:34 shuttle systemd[1]: Stopped Service for snap application gitea.web.
May 09 21:05:34 shuttle systemd[1]: snap.gitea.web.service: Start request repeated too quickly.
May 09 21:05:34 shuttle systemd[1]: snap.gitea.web.service: Failed with result 'exit-code'.
May 09 21:05:34 shuttle systemd[1]: Failed to start Service for snap application gitea.web.
# snap run gitea # ExecStart above
2020/05/10 11:03:00 cmd/web.go:107:runWeb() [I] Starting Gitea on PID: 23690
2020/05/10 11:03:00 ...dules/setting/git.go:93:newGit() [I] Git Version: 2.17.1
2020/05/10 11:03:00 routers/init.go:86:GlobalInit() [F] Git module init failed: Failed to set git user.name(exec(3:git.Init(set user.name)) failed: exit status 128(<nil>) stdout: stderr: warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files
): warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files
# snap run --shell gitea -c 'ls /etc/gitconfig' # the file is there
/etc/gitconfig
# snap run --shell gitea -c 'cat /etc/gitconfig' # can't access it
cat: /etc/gitconfig: Permission denied
# snap run --shell gitea -c 'cat /sys/module/apparmor/parameters/enabled'
Y
Reviewing https://github.com/go-gitea/gitea/pull/11300, I may have just installed it incorrectly without --dangerous
containment (whatever that means) or tried to install it while the details are influx. In which case I’ll stand down. Ty.