A new subcommand named doctor to detect all the possible problems #4223

Closed
opened 2025-11-02 05:42:59 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @lunny on GitHub (Nov 2, 2019).

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.

Originally created by @lunny on GitHub (Nov 2, 2019). 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.
GiteaMirror added the type/proposal label 2025-11-02 05:42:59 -06:00
Author
Owner

@guillep2k commented on GitHub (Nov 2, 2019):

  • Repositories under gitea-repositories that are missing from the database, and the other way around.
  • 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.
@guillep2k commented on GitHub (Nov 2, 2019): - [ ] 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.
Author
Owner

@sapk commented on GitHub (Jan 16, 2020):

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

@sapk commented on GitHub (Jan 16, 2020): Can you review what functions are already implemented in doctor command to keep progress ?
Author
Owner

@sapk commented on GitHub (Jan 16, 2020):

This command could include #2762

@sapk commented on GitHub (Jan 16, 2020): This command could include #2762
Author
Owner

@lunny commented on GitHub (Jan 16, 2020):

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

@lunny commented on GitHub (Jan 16, 2020): @sapk I have checked one on @guillep2k 's list.
Author
Owner

@sapk commented on GitHub (Jan 29, 2020):

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 commented on GitHub (Jan 29, 2020): ~~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.
Author
Owner

@guillep2k commented on GitHub (Jan 29, 2020):

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.

@guillep2k commented on GitHub (Jan 29, 2020): > > > ~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.
Author
Owner

@guillep2k commented on GitHub (Jan 30, 2020):

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.

@guillep2k commented on GitHub (Jan 30, 2020): > > > 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.
Author
Owner

@lunny commented on GitHub (Sep 9, 2020):

Closed and thanks @guillep2k

@lunny commented on GitHub (Sep 9, 2020): Closed and thanks @guillep2k
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4223