Gitea: A new subcommand named `doctor` to detect all the possible problems

Created on 2 Nov 2019  路  8Comments  路  Source: go-gitea/gitea

A new doctor subcommand could check gitea's running status, it could includes:

  • [ ] Repositories file system permissions. It could read app.ini to get running user and check if all the repositories could be read/write by the user.
  • [ ] Repositories Hooks script address. It could check if all the repositories hooks script address is current binary's address.

Welcome to add more.

kinproposal

Most helpful comment

@sapk I have checked one on @guillep2k 's list.

All 8 comments

  • [ ] Repositories under gitea-repositories that are missing from the database, and the other way around.
  • [x] authorized_keys script address.
  • [ ] Assets that are found in data/attachment but are not linked in gitea, and the other way around.
  • [ ] Automatically detect all running instances.
  • [ ] Search for app.ini; try to figure out its configuration.

Can you review what functions are already implemented in doctor command to keep progress ?

This command could include #2762

@sapk I have checked one on @guillep2k 's list.

It happen many times that users don't find where are some folder/path used by gitea (like the custom folder). Maybe we could dump those information when running doctor command ?
Edit: Nevermind those are visible in the admin ui.

~It happen many times that users don't find where are some folder/path used by gitea (like the custom folder). Maybe we could dump those information when running doctor command ?~
Edit: Nevermind those are visible in the admin ui.

@sapk I'm sure it won't hurt, anyway.

It happen many times that users don't find where are some folder/path used by gitea (like the custom folder). Maybe we could dump those information when running doctor command ?

@sapk #10064 馃槃

As you've mentioned, the configuration tab in settings is also very useful because oftentimes the users do have Gitea running and they only need to e.g. customize it.

Closed and thanks @guillep2k

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mirhec picture mirhec  路  3Comments

internalfx picture internalfx  路  3Comments

Fastidious picture Fastidious  路  3Comments

thehowl picture thehowl  路  3Comments

tuxfanou picture tuxfanou  路  3Comments