Upgrading from 1.21.7 to 1.21.8, Gitea doesn't start, container crash looping #12689

Closed
opened 2025-11-02 10:18:12 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @loganmarchione on GitHub (Mar 20, 2024).

Description

I am running Gitea 1.21.7 in Docker via Docker Compose (external Postgres database). I upgraded to 1.21.8 and the container is crashing in a loop. Usually it gives some sort of hint as to why it crashed, but I don't see anything here.

Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2024/03/20 15:54:34 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 16
2024/03/20 15:54:34 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.4.1, go1.21.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/03/20 15:54:34 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/03/20 15:54:34 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/03/20 15:54:34 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/03/20 15:54:34 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/03/20 15:54:34 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/03/20 15:54:34 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/03/20 15:54:34 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
Received signal 15; terminating.
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2024/03/20 15:55:35 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15
2024/03/20 15:55:35 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.4.1, go1.21.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/03/20 15:55:35 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/03/20 15:55:35 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/03/20 15:55:35 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/03/20 15:55:35 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/03/20 15:55:35 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/03/20 15:55:35 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/03/20 15:55:35 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
Received signal 15; terminating.

When I downgrade to 1.21.7, I have no issues.

Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2024/03/20 15:56:26 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 19
2024/03/20 15:56:26 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.7 built with GNU Make 4.4.1, go1.21.7 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/03/20 15:56:26 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/03/20 15:56:26 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/03/20 15:56:26 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/03/20 15:56:26 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/03/20 15:56:26 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/03/20 15:56:26 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/03/20 15:56:26 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)

Gitea Version

1.21.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 11

How are you running Gitea?

Docker via docker-compose

Database

PostgreSQL

Originally created by @loganmarchione on GitHub (Mar 20, 2024). ### Description I am running Gitea 1.21.7 in Docker via Docker Compose (external Postgres database). I upgraded to 1.21.8 and the container is crashing in a loop. Usually it gives some sort of hint as to why it crashed, but I don't see anything here. ``` Server listening on :: port 22. Server listening on 0.0.0.0 port 22. 2024/03/20 15:54:34 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 16 2024/03/20 15:54:34 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.4.1, go1.21.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify 2024/03/20 15:54:34 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod 2024/03/20 15:54:34 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea 2024/03/20 15:54:34 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea 2024/03/20 15:54:34 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea 2024/03/20 15:54:34 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini 2024/03/20 15:54:34 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server 2024/03/20 15:54:34 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home) Received signal 15; terminating. Server listening on :: port 22. Server listening on 0.0.0.0 port 22. 2024/03/20 15:55:35 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15 2024/03/20 15:55:35 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.4.1, go1.21.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify 2024/03/20 15:55:35 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod 2024/03/20 15:55:35 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea 2024/03/20 15:55:35 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea 2024/03/20 15:55:35 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea 2024/03/20 15:55:35 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini 2024/03/20 15:55:35 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server 2024/03/20 15:55:35 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home) Received signal 15; terminating. ``` When I downgrade to 1.21.7, I have no issues. ``` Server listening on :: port 22. Server listening on 0.0.0.0 port 22. 2024/03/20 15:56:26 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 19 2024/03/20 15:56:26 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.7 built with GNU Make 4.4.1, go1.21.7 : bindata, timetzdata, sqlite, sqlite_unlock_notify 2024/03/20 15:56:26 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod 2024/03/20 15:56:26 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea 2024/03/20 15:56:26 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea 2024/03/20 15:56:26 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea 2024/03/20 15:56:26 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini 2024/03/20 15:56:26 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server 2024/03/20 15:56:26 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home) ``` ### Gitea Version 1.21.8 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Debian 11 ### How are you running Gitea? Docker via docker-compose ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:18:12 -06:00
Author
Owner

@eeyrjmr commented on GitHub (Mar 20, 2024):

could you provide DEBUG logs rather than INFO as this should provide insight into when or why it is terminating

@eeyrjmr commented on GitHub (Mar 20, 2024): could you provide DEBUG logs rather than INFO as this should provide insight into when or why it is terminating
Author
Owner

@loganmarchione commented on GitHub (Mar 20, 2024):

Found it, thanks! I was a special character in my mailer section. It must have been one of the brackets [ or ] or < or > that isn't compatible with 1.21.8. I removed it and it's working now, thanks!

2024/03/20 19:26:34 ...es/setting/mailer.go:214:loadMailerFrom() [F] Invalid mailer.FROM ([Alert from Gitea] <donotreply@mydomain.com>): mail: missing word in phrase: mail: invalid string
@loganmarchione commented on GitHub (Mar 20, 2024): Found it, thanks! I was a special character in my `mailer` section. It must have been one of the brackets `[` or `]` or `<` or `>` that isn't compatible with 1.21.8. I removed it and it's working now, thanks! ``` 2024/03/20 19:26:34 ...es/setting/mailer.go:214:loadMailerFrom() [F] Invalid mailer.FROM ([Alert from Gitea] <donotreply@mydomain.com>): mail: missing word in phrase: mail: invalid string ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12689