Installing gitea with no admin mail provided #1484

Closed
opened 2025-11-02 04:02:09 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @modmew8 on GitHub (Jan 30, 2018).

  • Gitea version (or commit ref): 1.3.2 (problem also occurs on latest master / 5911f98392)
  • Git version: 2.10.1.windows.1
  • Operating system: Windows 10 (problem also occured on Ubuntu Server 16.04)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

If you forget to provide an admin mail and start the installation, you get redirected back with the notice to provide a mail. Continuing the installation after providing an admin mail leads to a status, where the account apparently wasn't correctly created.

How to reproduce

Install a fresh new gitea instance and don't provide an admin mail address. The gitea instance starts initializing the database and after a few seconds you get redirected to /install where it says, that you must provide an admin mail address. Supplying the mail address and continuing the installation leads to an infinite load with no answere from gitea.

Loading the index of gitea manually, you get correctly forwarded to the welcome page, but attempting to login with the created admin accounts leads to "wrong username/password".

Suggestion

Missing mandatory fields should be checked before any installation takes place.

Originally created by @modmew8 on GitHub (Jan 30, 2018). - Gitea version (or commit ref): 1.3.2 (problem also occurs on latest master / 5911f98392e1b7a04fcd570092a8089d1caff91d) - Git version: 2.10.1.windows.1 - Operating system: Windows 10 (problem also occured on Ubuntu Server 16.04) - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant ## Description If you forget to provide an admin mail and start the installation, you get redirected back with the notice to provide a mail. Continuing the installation after providing an admin mail leads to a status, where the account apparently wasn't correctly created. ## How to reproduce Install a fresh new gitea instance and don't provide an admin mail address. The gitea instance starts initializing the database and after a few seconds you get redirected to /install where it says, that you must provide an admin mail address. Supplying the mail address and continuing the installation leads to an infinite load with no answere from gitea. Loading the index of gitea manually, you get correctly forwarded to the welcome page, but attempting to login with the created admin accounts leads to "wrong username/password". ## Suggestion Missing mandatory fields should be checked before any installation takes place.
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:02:09 -06:00
Author
Owner

@stale[bot] commented on GitHub (Feb 8, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 8, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1484