Skip to content

Gitea service fails to start (timeout 30 sec) on windows restart #26934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KazzmanK opened this issue Sep 6, 2023 · 3 comments · Fixed by #26938
Closed

Gitea service fails to start (timeout 30 sec) on windows restart #26934

KazzmanK opened this issue Sep 6, 2023 · 3 comments · Fixed by #26938
Labels

Comments

@KazzmanK
Copy link
Contributor

KazzmanK commented Sep 6, 2023

Description

I need an assistance to triage system restart issue. On windows restart Gitea service fails to start.

A timeout was reached (30000 milliseconds) while waiting for the Gitea service to connect.
The Gitea service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

All the other services start successfully, Gitea have no dependencies (sqlite).
After seen a service down, manually it starts instantly.

No records in logs

2023/09/06 09:31:07 cmd/web.go:195:serveInstalled() [I] PID: 3324 Gitea Web Finished
2023/09/06 10:15:49 ...les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled

where service start fail timestamp is 9:32:12

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

windows service

Database

SQLite

@KazzmanK
Copy link
Contributor Author

KazzmanK commented Sep 6, 2023

Setting service startup type to Automatic-Delayed solved problem for couple of test reboots. Just Automaic startup type results in timeout.
sc config Gitea start= delayed-auto
Should we update documentation to hint possible issues ?
May be there is something under the hood of Gitea itself ?

@lunny
Copy link
Member

lunny commented Sep 6, 2023

Please help to send a PR to update documentation.

@KazzmanK
Copy link
Contributor Author

KazzmanK commented Sep 6, 2023

My first try here

lunny pushed a commit that referenced this issue Sep 6, 2023
Service may fail to start at boot time with timeout
Resolves #26934

Co-authored-by: Nikolay Kobzarev <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants