"fatal error: concurrent map read and map write" at startup #14274

Closed
opened 2025-11-02 11:08:16 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @DrSegatron on GitHub (Mar 19, 2025).

Description

Gitea 1.22.6 fails to start under systemd with fatal error: concurrent map read and map write:

mar 19 10:26:45 rulakir systemd[1]: Started Gitea service.
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 479336
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.6 built with GNU Make 4.4.1, go1.24.1 : bindata,pam,sqlite,sqlite_unlock_notify
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/bin/gitea
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /var/lib/gitea
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /var/lib/gitea/custom
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /etc/gitea/app.ini
mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
mar 19 10:26:45 rulakir gitea[479336]: fatal error: concurrent map read and map write
mar 19 10:26:45 rulakir systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
mar 19 10:26:45 rulakir systemd[1]: gitea.service: Failed with result 'exit-code'.
mar 19 10:26:45 rulakir systemd[1]: gitea.service: Scheduled restart job, restart counter is at 5.
mar 19 10:26:45 rulakir systemd[1]: gitea.service: Start request repeated too quickly.
mar 19 10:26:45 rulakir systemd[1]: gitea.service: Failed with result 'exit-code'.

Gitea Version

1.22.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/DrSegatron/5dfd4648af9a2f790b94a171e212a9d7

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Gentoo Linux from ebuild, launched from systemd:

[I] www-apps/gitea
Installed versions: 1.22.6^st(09:08:29 2025-03-16)(acct filecaps pam sqlite -gogit -pie)

[I] sys-apps/systemd
Installed versions: 256.10(0/2)^t(07:20:49 2025-03-16)(acl dns-over-tls gcrypt kernel-install kmod lz4 openssl pam pcre resolvconf seccomp sysv-utils zstd -apparmor -audit -boot -bpf -cgroup-hybrid -cryptsetup -curl -elfutils -fido2 -gnutls -homed -http -idn -importd -iptables -lzma -pkcs11 -policykit -pwquality -qrcode -secureboot -selinux -split-usr -test -tpm -ukify -vanilla -xkb ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13")

Linux rulakir 6.12.16-gentoo #1 SMP PREEMPT_DYNAMIC Fri Mar 14 16:57:25 CET 2025 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linux

Database

None

Originally created by @DrSegatron on GitHub (Mar 19, 2025). ### Description Gitea 1.22.6 fails to start under systemd with `fatal error: concurrent map read and map write`: ``` mar 19 10:26:45 rulakir systemd[1]: Started Gitea service. mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 479336 mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.6 built with GNU Make 4.4.1, go1.24.1 : bindata,pam,sqlite,sqlite_unlock_notify mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/bin/gitea mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /var/lib/gitea mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /var/lib/gitea/custom mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /etc/gitea/app.ini mar 19 10:26:45 rulakir gitea[479336]: 2025/03/19 10:26:45 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server mar 19 10:26:45 rulakir gitea[479336]: fatal error: concurrent map read and map write mar 19 10:26:45 rulakir systemd[1]: gitea.service: Main process exited, code=exited, status=2/INVALIDARGUMENT mar 19 10:26:45 rulakir systemd[1]: gitea.service: Failed with result 'exit-code'. mar 19 10:26:45 rulakir systemd[1]: gitea.service: Scheduled restart job, restart counter is at 5. mar 19 10:26:45 rulakir systemd[1]: gitea.service: Start request repeated too quickly. mar 19 10:26:45 rulakir systemd[1]: gitea.service: Failed with result 'exit-code'. ``` ### Gitea Version 1.22.6 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/DrSegatron/5dfd4648af9a2f790b94a171e212a9d7 ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Gentoo Linux from ebuild, launched from systemd: [I] www-apps/gitea Installed versions: 1.22.6^st(09:08:29 2025-03-16)(acct filecaps pam sqlite -gogit -pie) [I] sys-apps/systemd Installed versions: 256.10(0/2)^t(07:20:49 2025-03-16)(acl dns-over-tls gcrypt kernel-install kmod lz4 openssl pam pcre resolvconf seccomp sysv-utils zstd -apparmor -audit -boot -bpf -cgroup-hybrid -cryptsetup -curl -elfutils -fido2 -gnutls -homed -http -idn -importd -iptables -lzma -pkcs11 -policykit -pwquality -qrcode -secureboot -selinux -split-usr -test -tpm -ukify -vanilla -xkb ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13") Linux rulakir 6.12.16-gentoo #1 SMP PREEMPT_DYNAMIC Fri Mar 14 16:57:25 CET 2025 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linux ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 11:08:16 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Mar 19, 2025):

Because you are compiling Gitea with Go 1.24, it doesn't work because Go 1.24 changed its internals.

See this: Make Gitea 1.22 could be compiled with Go 1.24 #33643

@wxiaoguang commented on GitHub (Mar 19, 2025): Because you are compiling Gitea with Go 1.24, it doesn't work because Go 1.24 changed its internals. See this: Make Gitea 1.22 could be compiled with Go 1.24 #33643
Author
Owner

@DrSegatron commented on GitHub (Mar 19, 2025):

So moving to Gitea 1.23.3 could also resolve this problem?

@DrSegatron commented on GitHub (Mar 19, 2025): So moving to Gitea 1.23.3 could also resolve this problem?
Author
Owner

@wxiaoguang commented on GitHub (Mar 19, 2025):

So moving to Gitea 1.23.3 could also resolve this problem?

Yes. And that breaking change is only in Go 1.24, so you could either:

  • Use newer Gitea version (Gitea >=1.23)
  • Use an old Go (Go 1.23 but not 1.24) to compile Gitea 1.22.x

Hmm, it's quite annoying that Gitea's version and Go's version are similar at the moment. 😆

@wxiaoguang commented on GitHub (Mar 19, 2025): > So moving to Gitea 1.23.3 could also resolve this problem? Yes. And that breaking change is only in Go 1.24, so you could either: * Use newer Gitea version (Gitea >=1.23) * Use an old Go (Go 1.23 but not 1.24) to compile Gitea 1.22.x ---- Hmm, it's quite annoying that Gitea's version and Go's version are similar at the moment. 😆
Author
Owner

@DrSegatron commented on GitHub (Mar 19, 2025):

Confirmed working Gitea 1.23.3, go 1.24.1

@DrSegatron commented on GitHub (Mar 19, 2025): Confirmed working Gitea 1.23.3, go 1.24.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14274