tip: when @Gitea is installed with docker, here is how you will want to run the doctor 🩺 to verify it is not sick 🤕

docker exec --user git gitea gitea doctor --all --log-file /tmp/doctor.log

Should there be a need for more information looking 👀 in the doctor.log will display the gory details:

docker exec --user git gitea cat /tmp/doctor.log

---

Authored by @dachary

@hostea
Is there anyway it can be run on rootless Gitea image? Currently the command outputs this:

[1] Check paths and basic configuration
- [E] Failed to find configuration file at '/etc/gitea/app.ini'.

@dachary

@mardijker @dachary

It "works for me"

$ docker run --name gitea -p 3000:3000 -e GITEA__security__INSTALL_LOCK=true -d gitea/gitea:1.16.8-rootless
$ docker exec gitea gitea doctor --all
[1] Check paths and basic configuration
- [I] Configuration File Path: "/etc/gitea/app.ini"
- [I] Repository Root Path: "/var/lib/gitea/git/repositories"
...

I suppose you're running the doctor differently. Does that help?

---

Authored by @dachary

· · Web · 1 · 1 · 0
@hostea
That works for me now! Removing the --user and log-file does the magic. Seems the user git doesn't have enough permissions?
@dachary
Sign in to participate in the conversation
Mastodon

A newer server operated by the Mastodon gGmbH non-profit