Skip to content

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

@DrSegatron

Description

@DrSegatron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions