factorio-server-manager: [Ubuntu 20.10] FSM crashes when accessing mods page
Running on Ubuntu 20.10. Nav’ing to other pages is fine, but as soon as I click on the mods page, the app crashes with this output on console.
root@vultr:~# cd /opt/factorio-server-manager/
root@vultr:/opt/factorio-server-manager# ./factorio-server-manager --dir /opt/factorio --port 8080
/opt/factorio-server-manager/mod_packs
2021/02/18 23:52:49 Loaded Factorio settings from /opt/factorio/config/server-settings.json
2021/02/18 23:52:49 Starting server on: 0.0.0.0:8080
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x15 pc=0x7fbce46e80c4]
runtime stack:
runtime.throw(0xbe52ae, 0x2a)
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/panic.go:1116 +0x72
runtime.sigpanic()
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/signal_unix.go:701 +0x46a
goroutine 20 [syscall]:
runtime.cgocall(0x92f840, 0xc00003edc0, 0xc0000118b0)
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/cgocall.go:133 +0x5b fp=0xc00003ed90 sp=0xc00003ed58 pc=0x40b09b
net._C2func_getaddrinfo(0xc000211e00, 0x0, 0xc000273920, 0xc0000118b0, 0x0, 0x0, 0x0)
_cgo_gotypes.go:92 +0x55 fp=0xc00003edc0 sp=0xc00003ed90 pc=0x5daed5
net.cgoLookupIPCNAME.func1(0xc000211e00, 0x12, 0x12, 0xc000273920, 0xc0000118b0, 0x0, 0xc00003eea0, 0x5de2b2)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/cgo_unix.go:161 +0xd2 fp=0xc00003ee08 sp=0xc00003edc0 pc=0x5e0932
net.cgoLookupIPCNAME(0xbceb5c, 0x3, 0xc000211d00, 0x11, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/cgo_unix.go:161 +0x183 fp=0xc00003ef18 sp=0xc00003ee08 pc=0x5dc363
net.cgoIPLookup(0xc00027cba0, 0xbceb5c, 0x3, 0xc000211d00, 0x11)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/cgo_unix.go:218 +0x67 fp=0xc00003efb8 sp=0xc00003ef18 pc=0x5dca97
runtime.goexit()
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/asm_amd64.s:1373 +0x1 fp=0xc00003efc0 sp=0xc00003efb8 pc=0x46ab61
created by net.cgoLookupIP
/opt/hostedtoolcache/go/1.14.14/x64/src/net/cgo_unix.go:228 +0xc7
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fbce47b5f38, 0x72, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/netpoll.go:203 +0x55
internal/poll.(*pollDesc).wait(0x7, 0x72, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*FD).Accept(0xc0000d9980, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/poll/fd_unix.go:377 +0xee
net.(*netFD).accept(0xc0000d9980, 0x20b4d51306f4ad22, 0x0, 0x20b4d51306f4ad22)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc0001eff60, 0x602efdd5, 0xc0000e1a10, 0x4cd296)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0001eff60, 0xc0000e1a60, 0x18, 0xc000000300, 0x6ec9dc)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/tcpsock.go:261 +0x64
net/http.(*Server).Serve(0xc0000cc2a0, 0xcb2be0, 0xc0001eff60, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2930 +0x25d
net/http.(*Server).ListenAndServe(0xc0000cc2a0, 0xc0000cc2a0, 0x7)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2859 +0xb7
net/http.ListenAndServe(...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:3115
main.main()
/home/runner/work/factorio-server-manager/factorio-server-manager/src/main.go:34 +0x2ab
goroutine 6 [select]:
github.com/OpenFactorioServerManager/factorio-server-manager/api/websocket.(*wsHub).run(0xc000192230)
/home/runner/work/factorio-server-manager/factorio-server-manager/src/api/websocket/wshub.go:117 +0x18c
created by github.com/OpenFactorioServerManager/factorio-server-manager/api/websocket.init.0
/home/runner/work/factorio-server-manager/factorio-server-manager/src/api/websocket/wshub.go:102 +0x1af
goroutine 9 [select]:
database/sql.(*DB).connectionOpener(0xc0000fe480, 0xcb4d20, 0xc000145c80)
/opt/hostedtoolcache/go/1.14.14/x64/src/database/sql/sql.go:1071 +0xe8
created by database/sql.OpenDB
/opt/hostedtoolcache/go/1.14.14/x64/src/database/sql/sql.go:742 +0x12a
goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7fbce47b5c98, 0x72, 0xffffffffffffffff)
/opt/hostedtoolcache/go/1.14.14/x64/src/runtime/netpoll.go:203 +0x55
internal/poll.(*pollDesc).wait(0xc000268718, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000268700, 0xc000237cc1, 0x1, 0x1, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/poll/fd_unix.go:169 +0x19b
net.(*netFD).Read(0xc000268700, 0xc000237cc1, 0x1, 0x1, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc0000114e8, 0xc000237cc1, 0x1, 0x1, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/net.go:184 +0x8e
net/http.(*connReader).backgroundRead(0xc000237cb0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:689 +0x58
created by net/http.(*connReader).startBackgroundRead
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:685 +0xd0
goroutine 12 [select]:
net/http.(*Transport).getConn(0x128d0e0, 0xc00027e6c0, 0x0, 0xbe78b6, 0x5, 0xc000211d00, 0x15, 0x0, 0x0, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:1350 +0x585
net/http.(*Transport).roundTrip(0x128d0e0, 0xc00018f200, 0xc0000cbb60, 0xc00027b458, 0x414968)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:569 +0x76b
net/http.(*Transport).RoundTrip(0x128d0e0, 0xc00018f200, 0x128d0e0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00018f200, 0xca7f60, 0x128d0e0, 0x0, 0x0, 0x0, 0xc000011880, 0x203000, 0x1, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/client.go:252 +0x43e
net/http.(*Client).send(0x12d5000, 0xc00018f200, 0x0, 0x0, 0x0, 0xc000011880, 0x0, 0x1, 0xc00018f200)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/client.go:176 +0xfa
net/http.(*Client).do(0x12d5000, 0xc00018f200, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/client.go:699 +0x44a
net/http.(*Client).Do(...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/client.go:567
github.com/OpenFactorioServerManager/factorio-server-manager/factorio.ModPortalList(0x0, 0x0, 0x0, 0x0, 0x0)
/home/runner/work/factorio-server-manager/factorio-server-manager/src/factorio/mod_portal.go:38 +0xd7
github.com/OpenFactorioServerManager/factorio-server-manager/api.ModPortalListModsHandler(0xcb2ea0, 0xc0000cc700, 0xc00018f100)
/home/runner/work/factorio-server-manager/factorio-server-manager/src/api/mod_portal_handler.go:23 +0x15b
net/http.HandlerFunc.ServeHTTP(0xbf68f0, 0xcb2ea0, 0xc0000cc700, 0xc00018f100)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2041 +0x44
github.com/OpenFactorioServerManager/factorio-server-manager/api.AuthMiddleware.func1(0xcb2ea0, 0xc0000cc700, 0xc00018f100)
/home/runner/work/factorio-server-manager/factorio-server-manager/src/api/auth.go:229 +0x286
net/http.HandlerFunc.ServeHTTP(0xc000263260, 0xcb2ea0, 0xc0000cc700, 0xc00018f100)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2041 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0000fe540, 0xcb2ea0, 0xc0000cc700, 0xc00018e900)
/home/runner/go/pkg/mod/github.com/gorilla/mux@v1.7.3/mux.go:212 +0xe2
net/http.serverHandler.ServeHTTP(0xc0000cc2a0, 0xcb2ea0, 0xc0000cc700, 0xc00018e900)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2836 +0xa3
net/http.(*conn).serve(0xc0002437c0, 0xcb4d20, 0xc0001cbc00)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:1924 +0x86c
created by net/http.(*Server).Serve
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/server.go:2962 +0x35c
goroutine 18 [select]:
net.(*Resolver).lookupIPAddr(0x12d4860, 0xcb4da0, 0xc00027c960, 0xbceb5c, 0x3, 0xc000211d00, 0x11, 0x1bb, 0x0, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/lookup.go:274 +0x664
net.(*Resolver).internetAddrList(0x12d4860, 0xcb4da0, 0xc00027c960, 0xbceb5c, 0x3, 0xc000211d00, 0x15, 0x0, 0x0, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/ipsock.go:280 +0x4da
net.(*Resolver).resolveAddrList(0x12d4860, 0xcb4da0, 0xc00027c960, 0xbcede7, 0x4, 0xbceb5c, 0x3, 0xc000211d00, 0x15, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/dial.go:222 +0x49e
net.(*Dialer).DialContext(0xc000066240, 0xcb4d60, 0xc000022098, 0xbceb5c, 0x3, 0xc000211d00, 0x15, 0x0, 0x0, 0x0, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/dial.go:404 +0x22a
net/http.(*Transport).dial(0x128d0e0, 0xcb4d60, 0xc000022098, 0xbceb5c, 0x3, 0xc000211d00, 0x15, 0x0, 0xc000237e30, 0xca8f60, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:1144 +0x1f5
net/http.(*Transport).dialConn(0x128d0e0, 0xcb4d60, 0xc000022098, 0x0, 0xbe78b6, 0x5, 0xc000211d00, 0x15, 0x0, 0xc0001c1320, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:1578 +0x19ee
net/http.(*Transport).dialConnFor(0x128d0e0, 0xc00009f6b0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:1424 +0xc6
created by net/http.(*Transport).queueForDial
/opt/hostedtoolcache/go/1.14.14/x64/src/net/http/transport.go:1393 +0x3fe
goroutine 19 [select]:
net.cgoLookupIP(0xcb4d20, 0xc00027e740, 0xbceb5c, 0x3, 0xc000211d00, 0x11, 0x7fbce6123600, 0x20300000000000, 0x7fbce630ffff, 0x400, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/cgo_unix.go:229 +0x195
net.(*Resolver).lookupIP(0x12d4860, 0xcb4d20, 0xc00027e740, 0xbceb5c, 0x3, 0xc000211d00, 0x11, 0xc00003ee28, 0x4d73a2, 0xc00027e350, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/lookup_unix.go:96 +0x187
net.glob..func1(0xcb4d20, 0xc00027e740, 0xc000235720, 0xbceb5c, 0x3, 0xc000211d00, 0x11, 0xc000022098, 0x0, 0xbe78b6, ...)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/hook.go:23 +0x72
net.(*Resolver).lookupIPAddr.func1(0x0, 0x0, 0x0, 0x0)
/opt/hostedtoolcache/go/1.14.14/x64/src/net/lookup.go:268 +0xb9
internal/singleflight.(*Group).doCall(0x12d4870, 0xc00026c370, 0xc000211d20, 0x15, 0xc00027e780)
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/singleflight/singleflight.go:95 +0x2e
created by internal/singleflight.(*Group).DoChan
/opt/hostedtoolcache/go/1.14.14/x64/src/internal/singleflight/singleflight.go:88 +0x2bc
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (16 by maintainers)
Well, I was sure i did but nonetheless did a reinstall and now it works. docker ps showed ofsm:latest apparently it wasn’t running latest.
Sorry for the confusion, all is working now, will test with a game this weekend.
Thanks for all the time and effort, much appreciated!
Thanks for testing @Omaha2002
Installed with ofsm/ofsm:fix-glibc can confirm it’s working on 20.04:
downloading Krastorio 2 after succesful login:
As said in the PR: Test it with the docker image
ofsm/ofsm:fix-glibc20.04 can still work but it is not save that it works. Some 20.04 installation already have the new glibc, some have the old. When you encounter this problem, you can compile it yourself. I uploaded a build, created on Ubuntu 20.10 to this comment, so you can use this one for now. (i will not create a docker build with it, sorry) factorio-server-manager-linux.zip