assetto-corsa-web/accweb

Runtime panic: failed to create new OS thread

olzemal opened this issue · 2 comments

Sometimes accweb crashes at some random point after everything is running. There seems to be a panic starting the web server runtime: failed to create new OS thread (have 8 already; errno=11).

I checked the process limit and it's well above 8.

Also some information on my system.

OS: Ubuntu 22.04.4 LTS
CPU: 4
RAM: 8GB

$ wine --version
wine-9.0

$ ulimit -a 
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 1545079
max locked memory           (kbytes, -l) 1048576
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1024
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 62987
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

Here is the full log

Mar 12 19:31:18  Started ACC Server.
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="accweb: checking for secrets..."
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="accweb: checking for secrets..."
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="Public/private keys already exists, not attempting regeneration" privateKeyPath=secrets/token.private publicKeyPath=secrets/token.public
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="accweb: initializing..."
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="boot: calculating acc dedicated server md5sum" md5sum=585430576cb308272c14c52a27a1d449
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="boot: loaded all configured acc servers" total=4
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="boot: checking for outdated acc server instances"
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="boot: auto starting acc server instances"
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="acc server started" pid=313868 server_id=1709114842
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="acc server started" pid=313870 server_id=1710186316
Mar 12 19:31:18  time="2024-03-12T19:31:18+01:00" level=info msg="initializing web server" addr="127.0.0.1:8100"
Mar 12 19:31:33  time="2024-03-12T19:31:33+01:00" level=debug msg="log handled" attr="[255]" line="Server starting with version 255"
Mar 12 19:31:33  time="2024-03-12T19:31:33+01:00" level=debug msg="log handled" attr="[255]" line="Server starting with version 255"
Mar 12 19:31:33  time="2024-03-12T19:31:33+01:00" level=debug msg="log handled" attr="[silverstone]" line="Track silverstone was set and updated"
Mar 12 19:31:34  time="2024-03-12T19:31:34+01:00" level=debug msg="log handled" attr="[silverstone]" line="Track silverstone was set and updated"
Mar 12 19:32:21  time="2024-03-12T19:32:21+01:00" level=debug msg="log handled" attr="[waiting for drivers waiting for drivers Qualifying]" line="Detected sessionPhase <waiting for drivers> -> <waiting for drivers> (Qualifying)"
Mar 12 19:32:21  time="2024-03-12T19:32:21+01:00" level=debug msg="log handled" attr="[]" line="RegisterToLobby TCP connection failed"
Mar 12 19:32:21  time="2024-03-12T19:32:21+01:00" level=debug msg="log handled" attr="[]" line="RegisterToLobby succeeded"
Mar 12 19:32:24  time="2024-03-12T19:32:24+01:00" level=debug msg="log handled" attr="[waiting for drivers waiting for drivers Qualifying]" line="Detected sessionPhase <waiting for drivers> -> <waiting for drivers> (Qualifying)"
Mar 12 19:32:24  time="2024-03-12T19:32:24+01:00" level=debug msg="log handled" attr="[]" line="RegisterToLobby TCP connection failed"
Mar 12 19:32:24  time="2024-03-12T19:32:24+01:00" level=debug msg="log handled" attr="[]" line="RegisterToLobby succeeded"
Mar 12 22:12:09  runtime: failed to create new OS thread (have 8 already; errno=11)
Mar 12 22:12:09  runtime: may need to increase max user processes (ulimit -u)
Mar 12 22:12:09  fatal error: newosproc
Mar 12 22:12:09  runtime stack:
Mar 12 22:12:09  runtime.throw({0x918777?, 0xc000059d70?})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/panic.go:1077 +0x5c fp=0xc000059d48 sp=0xc000059d18 pc=0x435f7c
Mar 12 22:12:09  runtime.newosproc(0xc000049800)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/os_linux.go:195 +0x176 fp=0xc000059db8 sp=0xc000059d48 pc=0x4328d6
Mar 12 22:12:09  runtime.newm1(0xc000049800)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:2455 +0xbf fp=0xc000059df8 sp=0xc000059db8 pc=0x43c7ff
Mar 12 22:12:09  runtime.newm(0x4ff5b4b775d06?, 0xc000036f00, 0x1c9d2d65?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:2430 +0x125 fp=0xc000059e28 sp=0xc000059df8 pc=0x43c6c5
Mar 12 22:12:09  runtime.startm(0xc000048000?, 0x0, 0x1)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:2624 +0x158 fp=0xc000059e78 sp=0xc000059e28 pc=0x43ccb8
Mar 12 22:12:09  runtime.injectglist.func1(0x1)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:3516 +0x71 fp=0xc000059ea8 sp=0xc000059e78 pc=0x45f6d1
Mar 12 22:12:09  runtime.injectglist(0xc000059f20)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:3527 +0x148 fp=0xc000059f18 sp=0xc000059ea8 pc=0x43ef88
Mar 12 22:12:09  runtime.(*scavengerState).wake(0xd82e60)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgcscavenge.go:453 +0x58 fp=0xc000059f38 sp=0xc000059f18 pc=0x422718
Mar 12 22:12:09  runtime.sysmon()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:5635 +0x325 fp=0xc000059fa0 sp=0xc000059f38 pc=0x443c45
Mar 12 22:12:09  runtime.mstart1()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:1600 +0x93 fp=0xc000059fc8 sp=0xc000059fa0 pc=0x43b513
Mar 12 22:12:09  runtime.mstart0()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:1557 +0x76 fp=0xc000059ff8 sp=0xc000059fc8 pc=0x43b456
Mar 12 22:12:09  runtime.mstart()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:394 +0x5 fp=0xc00005a000 sp=0xc000059ff8 pc=0x465fa5
Mar 12 22:12:09  goroutine 1 [IO wait, 90 minutes]:
Mar 12 22:12:09  runtime.gopark(0x4a8570?, 0xc000537828?, 0x78?, 0x78?, 0x4c1f7d?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000537808 sp=0xc0005377e8 pc=0x438dae
Mar 12 22:12:09  runtime.netpollblock(0x466092?, 0x404c86?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:564 +0xf7 fp=0xc000537840 sp=0xc000537808 pc=0x431877
Mar 12 22:12:09  internal/poll.runtime_pollWait(0x7f9864287c38, 0x72)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:343 +0x85 fp=0xc000537860 sp=0xc000537840 pc=0x462925
Mar 12 22:12:09  internal/poll.(*pollDesc).wait(0xc0000fe200?, 0x4?, 0x0)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000537888 sp=0xc000537860 pc=0x4bf687
Mar 12 22:12:09  internal/poll.(*pollDesc).waitRead(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:89
Mar 12 22:12:09  internal/poll.(*FD).Accept(0xc0000fe200)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_unix.go:611 +0x2ac fp=0xc000537930 sp=0xc000537888 pc=0x4c0f0c
Mar 12 22:12:09  net.(*netFD).accept(0xc0000fe200)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/fd_unix.go:172 +0x29 fp=0xc0005379e8 sp=0xc000537930 pc=0x57bf29
Mar 12 22:12:09  net.(*TCPListener).accept(0xc0003e1380)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/tcpsock_posix.go:152 +0x1e fp=0xc000537a10 sp=0xc0005379e8 pc=0x58ce3e
Mar 12 22:12:09  net.(*TCPListener).Accept(0xc0003e1380)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/tcpsock.go:315 +0x30 fp=0xc000537a40 sp=0xc000537a10 pc=0x58c150
Mar 12 22:12:09  net/http.(*onceCloseListener).Accept(0xc000098360?)
Mar 12 22:12:09          <autogenerated>:1 +0x24 fp=0xc000537a58 sp=0xc000537a40 pc=0x66f1c4
Mar 12 22:12:09  net/http.(*Server).Serve(0xc000460000, {0xa5e4a8, 0xc0003e1380})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/http/server.go:3056 +0x364 fp=0xc000537b88 sp=0xc000537a58 pc=0x663944
Mar 12 22:12:09  net/http.(*Server).ListenAndServe(0xc000460000)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/http/server.go:2985 +0x71 fp=0xc000537bb8 sp=0xc000537b88 pc=0x6635b1
Mar 12 22:12:09  net/http.ListenAndServe(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/net/http/server.go:3239
Mar 12 22:12:09  github.com/gin-gonic/gin.(*Engine).Run(0xc00040f040, {0xc00041fd28, 0x1, 0x1})
Mar 12 22:12:09          /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:386 +0x205 fp=0xc000537c58 sp=0xc000537bb8 pc=0x81b205
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/app.StartServer(0xc00017f900, 0x4?)
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/app/server.go:94 +0x648 fp=0xc000537e88 sp=0xc000537c58 pc=0x8320e8
Mar 12 22:12:09  main.main()
Mar 12 22:12:09          /home/runner/work/accweb/accweb/cmd/main.go:27 +0x2c9 fp=0xc000537f40 sp=0xc000537e88 pc=0x835989
Mar 12 22:12:09  runtime.main()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:267 +0x2bb fp=0xc000537fe0 sp=0xc000537f40 pc=0x43895b
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000537fe8 sp=0xc000537fe0 pc=0x467ea1
Mar 12 22:12:09  goroutine 2 [force gc (idle), 2 minutes]:
Mar 12 22:12:09  runtime.gopark(0x4ff5b4b37e841?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000042fa8 sp=0xc000042f88 pc=0x438dae
Mar 12 22:12:09  runtime.goparkunlock(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:404
Mar 12 22:12:09  runtime.forcegchelper()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:322 +0xb3 fp=0xc000042fe0 sp=0xc000042fa8 pc=0x438c33
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000042fe8 sp=0xc000042fe0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.init.6 in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:310 +0x1a
Mar 12 22:12:09  goroutine 3 [GC sweep wait]:
Mar 12 22:12:09  runtime.gopark(0xd82701?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000043778 sp=0xc000043758 pc=0x438dae
Mar 12 22:12:09  runtime.goparkunlock(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:404
Mar 12 22:12:09  runtime.bgsweep(0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgcsweep.go:321 +0xdf fp=0xc0000437c8 sp=0xc000043778 pc=0x424e1f
Mar 12 22:12:09  runtime.gcenable.func1()
Mar 12 22:12:09  eb.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:200 +0x25 fp=0xc0000437e0 sp=0xc0000437c8 pc=0x419f65
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000437e8 sp=0xc0000437e0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.gcenable in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:200 +0x66
Mar 12 22:12:09  goroutine 4 [running]:
Mar 12 22:12:09          goroutine running on other thread; stack unavailable
Mar 12 22:12:09  created by runtime.gcenable in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:201 +0xa5
Mar 12 22:12:09  goroutine 17 [finalizer wait, 160 minutes]:
Mar 12 22:12:09  runtime.gopark(0x40c89e?, 0x400000?, 0x70?, 0x26?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000042620 sp=0xc000042600 pc=0x438dae
Mar 12 22:12:09  runtime.runfinq()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mfinal.go:193 +0x107 fp=0xc0000427e0 sp=0xc000042620 pc=0x418f87
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000427e8 sp=0xc0000427e0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.createfing in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mfinal.go:163 +0x3d
Mar 12 22:12:09  goroutine 18 [GC worker (idle), 160 minutes]:
Mar 12 22:12:09  runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc00003e750 sp=0xc00003e730 pc=0x438dae
Mar 12 22:12:09  runtime.gcBgMarkWorker()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1295 +0xe5 fp=0xc00003e7e0 sp=0xc00003e750 pc=0x41bae5
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00003e7e8 sp=0xc00003e7e0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.gcBgMarkStartWorkers in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1219 +0x1c
Mar 12 22:12:09  goroutine 19 [GC worker (idle), 30 minutes]:
Mar 12 22:12:09  runtime.gopark(0x4fdb63af0340c?, 0x3?, 0xab?, 0xff?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc00003ef50 sp=0xc00003ef30 pc=0x438dae
Mar 12 22:12:09  runtime.gcBgMarkWorker()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1295 +0xe5 fp=0xc00003efe0 sp=0xc00003ef50 pc=0x41bae5
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00003efe8 sp=0xc00003efe0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.gcBgMarkStartWorkers in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1219 +0x1c
Mar 12 22:12:09  goroutine 20 [GC worker (idle), 2 minutes]:
Mar 12 22:12:09  runtime.gopark(0x4ff5b4b707ee8?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc00003f750 sp=0xc00003f730 pc=0x438dae
Mar 12 22:12:09  runtime.gcBgMarkWorker()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1295 +0xe5 fp=0xc00003f7e0 sp=0xc00003f750 pc=0x41bae5
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00003f7e8 sp=0xc00003f7e0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.gcBgMarkStartWorkers in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1219 +0x1c
Mar 12 22:12:09  goroutine 21 [GC worker (idle), 160 minutes]:
Mar 12 22:12:09  runtime.gopark(0x4f69475d0116c?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc00003ff50 sp=0xc00003ff30 pc=0x438dae
Mar 12 22:12:09  runtime.gcBgMarkWorker()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1295 +0xe5 fp=0xc00003ffe0 sp=0xc00003ff50 pc=0x41bae5
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00003ffe8 sp=0xc00003ffe0 pc=0x467ea1
Mar 12 22:12:09  created by runtime.gcBgMarkStartWorkers in goroutine 1
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/mgc.go:1219 +0x1c
Mar 12 22:12:09  goroutine 5 [IO wait, 2 minutes]:
Mar 12 22:12:09  runtime.gopark(0xc00025ae40?, 0xb?, 0x0?, 0x0?, 0x3?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000282c68 sp=0xc000282c48 pc=0x438dae
Mar 12 22:12:09  runtime.netpollblock(0x4a6b38?, 0x404c86?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:564 +0xf7 fp=0xc000282ca0 sp=0xc000282c68 pc=0x431877
Mar 12 22:12:09  internal/poll.runtime_pollWait(0x7f9864287e28, 0x72)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:343 +0x85 fp=0xc000282cc0 sp=0xc000282ca0 pc=0x462925
Mar 12 22:12:09  internal/poll.(*pollDesc).wait(0xc000065260?, 0xc0001d9000?, 0x1)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000282ce8 sp=0xc000282cc0 pc=0x4bf687
Mar 12 22:12:09  internal/poll.(*pollDesc).waitRead(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:89
Mar 12 22:12:09  internal/poll.(*FD).Read(0xc000065260, {0xc0001d9000, 0x1000, 0x1000})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_unix.go:164 +0x27a fp=0xc000282d80 sp=0xc000282ce8 pc=0x4c039a
Mar 12 22:12:09  os.(*File).read(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/file_posix.go:29
Mar 12 22:12:09  os.(*File).Read(0xc0000847f8, {0xc0001d9000?, 0x44?, 0xc000022d00?})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/file.go:118 +0x52 fp=0xc000282dc0 sp=0xc000282d80 pc=0x4c5812
Mar 12 22:12:09  io.(*teeReader).Read(0xc0003e0720, {0xc0001d9000, 0x40d8458b48fffc15?, 0x1000})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/io/io.go:620 +0x31 fp=0xc000282e08 sp=0xc000282dc0 pc=0x49e831
Mar 12 22:12:09  golang.org/x/text/transform.(*Reader).Read(0xc0000987e0, {0xc000216473, 0xb8d, 0xc000282e00?})
Mar 12 22:12:09          /home/runner/go/pkg/mod/golang.org/x/text@v0.14.0/transform/transform.go:199 +0x3dc fp=0xc000282ea0 sp=0xc000282e08 pc=0x67971c
Mar 12 22:12:09  bufio.(*Scanner).Scan(0xc00040af00)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/bufio/scan.go:214 +0x81b fp=0xc000282f78 sp=0xc000282ea0 pc=0x609ffb
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).prepareCmdLogHandler.func1()
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:415 +0x76 fp=0xc000282fe0 sp=0xc000282f78 pc=0x6d9fd6
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000282fe8 sp=0xc000282fe0 pc=0x467ea1
Mar 12 22:12:09  created by github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).prepareCmdLogHandler in goroutine 1
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:414 +0x2ff
Mar 12 22:12:09  goroutine 6 [syscall, 160 minutes]:
Mar 12 22:12:09  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/syscall/syscall_linux.go:91 +0x30 fp=0xc000044dd0 sp=0xc000044d48 pc=0x4a8570
Mar 12 22:12:09  os.(*Process).blockUntilWaitable(0xc00002ab40)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/wait_waitid.go:32 +0x76 fp=0xc000044ea8 sp=0xc000044dd0 pc=0x4ca8d6
Mar 12 22:12:09  os.(*Process).wait(0xc00002ab40)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec_unix.go:22 +0x25 fp=0xc000044f08 sp=0xc000044ea8 pc=0x4c51c5
Mar 12 22:12:09  os.(*Process).Wait(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec.go:134
Mar 12 22:12:09  os/exec.(*Cmd).Wait(0xc0000d4000)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec/exec.go:890 +0x45 fp=0xc000044f70 sp=0xc000044f08 pc=0x677905
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).wait(0xc0000cfc00)
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:372 +0x26 fp=0xc000044fc8 sp=0xc000044f70 pc=0x6d99e6
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).Start.func2()
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:92 +0x25 fp=0xc000044fe0 sp=0xc000044fc8 pc=0x6d7b05
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000044fe8 sp=0xc000044fe0 pc=0x467ea1
Mar 12 22:12:09  created by github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).Start in goroutine 1
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:92 +0x347
Mar 12 22:12:09  goroutine 7 [IO wait, 2 minutes]:
Mar 12 22:12:09  runtime.gopark(0xc00025bf40?, 0xb?, 0x0?, 0x0?, 0x7?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/proc.go:398 +0xce fp=0xc000283c68 sp=0xc000283c48 pc=0x438dae
Mar 12 22:12:09  runtime.netpollblock(0x4a6b38?, 0x404c86?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:564 +0xf7 fp=0xc000283ca0 sp=0xc000283c68 pc=0x431877
Mar 12 22:12:09  internal/poll.runtime_pollWait(0x7f9864287d30, 0x72)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/netpoll.go:343 +0x85 fp=0xc000283cc0 sp=0xc000283ca0 pc=0x462925
Mar 12 22:12:09  internal/poll.(*pollDesc).wait(0xc000065aa0?, 0xc0002df000?, 0x1)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000283ce8 sp=0xc000283cc0 pc=0x4bf687
Mar 12 22:12:09  internal/poll.(*pollDesc).waitRead(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_poll_runtime.go:89
Mar 12 22:12:09  internal/poll.(*FD).Read(0xc000065aa0, {0xc0002df000, 0x1000, 0x1000})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/internal/poll/fd_unix.go:164 +0x27a fp=0xc000283d80 sp=0xc000283ce8 pc=0x4c039a
Mar 12 22:12:09  os.(*File).read(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/file_posix.go:29
Mar 12 22:12:09  os.(*File).Read(0xc000084958, {0xc0002df000?, 0x45?, 0xc0000231d0?})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/file.go:118 +0x52 fp=0xc000283dc0 sp=0xc000283d80 pc=0x4c5812
Mar 12 22:12:09  io.(*teeReader).Read(0xc0003e0ce0, {0xc0002df000, 0x0?, 0x1000})
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/io/io.go:620 +0x31 fp=0xc000283e08 sp=0xc000283dc0 pc=0x49e831
Mar 12 22:12:09  golang.org/x/text/transform.(*Reader).Read(0xc000098990, {0xc0003021b6, 0xe4a, 0x0?})
Mar 12 22:12:09          /home/runner/go/pkg/mod/golang.org/x/text@v0.14.0/transform/transform.go:199 +0x3dc fp=0xc000283ea0 sp=0xc000283e08 pc=0x67971c
Mar 12 22:12:09  bufio.(*Scanner).Scan(0xc00040bd00)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/bufio/scan.go:214 +0x81b fp=0xc000283f78 sp=0xc000283ea0 pc=0x609ffb
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).prepareCmdLogHandler.func1()
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:415 +0x76 fp=0xc000283fe0 sp=0xc000283f78 pc=0x6d9fd6
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000283fe8 sp=0xc000283fe0 pc=0x467ea1
Mar 12 22:12:09  created by github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).prepareCmdLogHandler in goroutine 1
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:414 +0x2ff
Mar 12 22:12:09  goroutine 8 [syscall, 160 minutes]:
Mar 12 22:12:09  syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/syscall/syscall_linux.go:91 +0x30 fp=0xc000045dd0 sp=0xc000045d48 pc=0x4a8570
Mar 12 22:12:09  os.(*Process).blockUntilWaitable(0xc00002b050)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/wait_waitid.go:32 +0x76 fp=0xc000045ea8 sp=0xc000045dd0 pc=0x4ca8d6
Mar 12 22:12:09  os.(*Process).wait(0xc00002b050)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec_unix.go:22 +0x25 fp=0xc000045f08 sp=0xc000045ea8 pc=0x4c51c5
Mar 12 22:12:09  os.(*Process).Wait(...)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec.go:134
Mar 12 22:12:09  os/exec.(*Cmd).Wait(0xc0000d4160)
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/os/exec/exec.go:890 +0x45 fp=0xc000045f70 sp=0xc000045f08 pc=0x677905
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).wait(0xc000228380)
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:372 +0x26 fp=0xc000045fc8 sp=0xc000045f70 pc=0x6d99e6
Mar 12 22:12:09  github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).Start.func2()
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:92 +0x25 fp=0xc000045fe0 sp=0xc000045fc8 pc=0x6d7b05
Mar 12 22:12:09  runtime.goexit()
Mar 12 22:12:09          /opt/hostedtoolcache/go/1.21.6/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000045fe8 sp=0xc000045fe0 pc=0x467ea1
Mar 12 22:12:09  created by github.com/assetto-corsa-web/accweb/internal/pkg/instance.(*Instance).Start in goroutine 1
Mar 12 22:12:09          /home/runner/work/accweb/accweb/internal/pkg/instance/instance.go:92 +0x347

I did some more research and found this post https://unix.stackexchange.com/questions/253903/creating-threads-fails-with-resource-temporarily-unavailable-with-4-3-kernel
This was very likely my issue and therefore unrelated to accweb itself.