Skip to content

Server stuck restarting (docker) #17525

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
bkraul opened this issue Nov 2, 2021 · 6 comments · Fixed by #17526
Closed

Server stuck restarting (docker) #17525

bkraul opened this issue Nov 2, 2021 · 6 comments · Fixed by #17526
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@bkraul
Copy link

bkraul commented Nov 2, 2021

Gitea Version

e69521f

Git Version

1.16.0

Operating System

Ubuntu 20.04.3 (docker)

How are you running Gitea?

Using docker dev image, but also verified the server is unavailable on https://try.gitea.io

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

The server appears stuck on starting. This causes the web interface to not be available. This also happens on the docker image.

Screenshots

image

@zeripath
Copy link
Contributor

zeripath commented Nov 2, 2021

Please could you give us some logs.

@zeripath zeripath added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Nov 2, 2021
@bkraul
Copy link
Author

bkraul commented Nov 2, 2021

This is all I get from the docker container stdout

server_1  | Received signal 15; terminating.
server_1  | Server listening on :: port 22.
server_1  | Server listening on 0.0.0.0 port 22.
server_1  | 2021/11/02 13:25:02 cmd/web.go:102:runWeb() [I] Starting Gitea on PID: 18
server_1  | 2021/11/02 13:25:02 cmd/web.go:146:runWeb() [I] Global init
server_1  | 2021/11/02 13:25:02 routers/init.go:105:GlobalInit() [I] Git Version: 2.30.2, Wire Protocol Version 2 Enabled
server_1  | 2021/11/02 13:25:02 routers/init.go:108:GlobalInit() [I] AppPath: /app/gitea/gitea
server_1  | 2021/11/02 13:25:02 routers/init.go:109:GlobalInit() [I] AppWorkPath: /app/gitea
server_1  | 2021/11/02 13:25:02 routers/init.go:110:GlobalInit() [I] Custom path: /data/gitea
server_1  | 2021/11/02 13:25:02 routers/init.go:111:GlobalInit() [I] Log path: /data/gitea/log
server_1  | 2021/11/02 13:25:02 routers/init.go:112:GlobalInit() [I] Configuration file: /data/gitea/conf/app.ini
server_1  | 2021/11/02 13:25:02 routers/init.go:113:GlobalInit() [I] Run Mode: Prod
server_1  | Received signal 15; terminating.
server_1  | Server listening on :: port 22.
server_1  | Server listening on 0.0.0.0 port 22.
server_1  | 2021/11/02 13:26:04 cmd/web.go:102:runWeb() [I] Starting Gitea on PID: 18
server_1  | 2021/11/02 13:26:04 cmd/web.go:146:runWeb() [I] Global init
server_1  | 2021/11/02 13:26:04 routers/init.go:105:GlobalInit() [I] Git Version: 2.30.2, Wire Protocol Version 2 Enabled
server_1  | 2021/11/02 13:26:04 routers/init.go:108:GlobalInit() [I] AppPath: /app/gitea/gitea
server_1  | 2021/11/02 13:26:04 routers/init.go:109:GlobalInit() [I] AppWorkPath: /app/gitea
server_1  | 2021/11/02 13:26:04 routers/init.go:110:GlobalInit() [I] Custom path: /data/gitea
server_1  | 2021/11/02 13:26:04 routers/init.go:111:GlobalInit() [I] Log path: /data/gitea/log
server_1  | 2021/11/02 13:26:04 routers/init.go:112:GlobalInit() [I] Configuration file: /data/gitea/conf/app.ini
server_1  | 2021/11/02 13:26:04 routers/init.go:113:GlobalInit() [I] Run Mode: Prod
server_1  | Received signal 15; terminating.
server_1  | Server listening on :: port 22.
server_1  | Server listening on 0.0.0.0 port 22.
server_1  | 2021/11/02 13:27:05 cmd/web.go:102:runWeb() [I] Starting Gitea on PID: 18
server_1  | 2021/11/02 13:27:05 cmd/web.go:146:runWeb() [I] Global init
server_1  | 2021/11/02 13:27:05 routers/init.go:105:GlobalInit() [I] Git Version: 2.30.2, Wire Protocol Version 2 Enabled
server_1  | 2021/11/02 13:27:05 routers/init.go:108:GlobalInit() [I] AppPath: /app/gitea/gitea
server_1  | 2021/11/02 13:27:05 routers/init.go:109:GlobalInit() [I] AppWorkPath: /app/gitea
server_1  | 2021/11/02 13:27:05 routers/init.go:110:GlobalInit() [I] Custom path: /data/gitea
server_1  | 2021/11/02 13:27:05 routers/init.go:111:GlobalInit() [I] Log path: /data/gitea/log
server_1  | 2021/11/02 13:27:05 routers/init.go:112:GlobalInit() [I] Configuration file: /data/gitea/conf/app.ini
server_1  | 2021/11/02 13:27:05 routers/init.go:113:GlobalInit() [I] Run Mode: Prod
server_1  | Received signal 15; terminating.
~/docker-compose/gitea$ docker-compose pull
Pulling db     ... done
Pulling server ... done
~/docker-compose/gitea$ docker-compose exec server bash
Error response from daemon: Container cf7997d65b6d9b93e96fc7d86e035b80152dbf517c3e957df75752369194a4e6 is restarting, wait until the container is running

@zeripath
Copy link
Contributor

zeripath commented Nov 2, 2021

There may be something in /data/gitea/log that would be helpful

@bkraul
Copy link
Author

bkraul commented Nov 2, 2021

It seems it is stuck in some kind of migration. I reverted my image to the commit before that and that worked, so there must be something with this migration?

gitea-log.txt

@lunny
Copy link
Member

lunny commented Nov 2, 2021

Fixed by #17526

@bkraul
Copy link
Author

bkraul commented Nov 2, 2021

Updated image resolved the issue. Thanks for the fast turnaround!

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants