unable to reset administrator password - No help topic for 'change-password' #4050

Closed
opened 2025-11-02 05:35:40 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @changchichung on GitHub (Oct 3, 2019).

  • Gitea version (or commit ref): 1.1.4
  • Git version: 2.7.4
  • Operating system: ubuntu 16.04
  • Database (use [x]):
    • MySQL
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

try to reset admin password using

gitea admin change-password --username admin --password mypassword

but return

No help topic for 'change-password'

and still not be able to login with new password .

any suggestions ? thanks !

Originally created by @changchichung on GitHub (Oct 3, 2019). <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.1.4 - Git version: 2.7.4 - Operating system: ubuntu 16.04 - Database (use `[x]`): - [X] MySQL - Can you reproduce the bug at https://try.gitea.io: - [ ] Not relevant ## Description try to reset admin password using ``` gitea admin change-password --username admin --password mypassword ``` but return ``` No help topic for 'change-password' ``` and still not be able to login with new password . any suggestions ? thanks !
Author
Owner

@guillep2k commented on GitHub (Oct 3, 2019):

Gitea version (or commit ref): 1.1.4

This can't be your Gitea version, or is it?

The syntax is correct, but I suggest you enclose your password in quotes in case some special character is getting in the way. Also, you probably need to specify the ini file location:

gitea admin --config "/abs/path/to/app.ini" change-password --username admin --password "mypassword"

Make sure the path to app.ini is correct; otherwise Gitea will attempt to create one and the error messages will get really confusing.

@guillep2k commented on GitHub (Oct 3, 2019): > Gitea version (or commit ref): 1.1.4 This can't be your Gitea version, or is it? The syntax is correct, but I suggest you enclose your password in quotes in case some special character is getting in the way. Also, you probably need to specify the ini file location: ``` gitea admin --config "/abs/path/to/app.ini" change-password --username admin --password "mypassword" ``` Make sure the path to `app.ini` is correct; otherwise Gitea will attempt to create one and the error messages will get really confusing.
Author
Owner

@guillep2k commented on GitHub (Oct 3, 2019):

@changchichung These issues are intended for reporting bugs in Gitea. If you keep having problems changing your user password, please ask for support in our Discord channel.

@guillep2k commented on GitHub (Oct 3, 2019): @changchichung These issues are intended for reporting bugs in Gitea. If you keep having problems changing your user password, please ask for support in our [Discord channel](https://discord.gg/NsatcWJ).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4050