04/03/2022, 9:11 PM
While trying to get a netclient back online on a v0.12.x network, I restarted the netmaker server and encountered a fatal error that kept netmaker from activating.
# docker-compose down
# docker-compose up
netmaker       | [netmaker] 2022-04-03 14:32:26 database successfully connected 
netmaker       | [netmaker] 2022-04-03 14:32:26 no OAuth provider found or not configured, continuing without OAuth 
netmaker       | [netmaker] 2022-04-03 14:32:29 could not set peers on network 7311 : file does not exist 
netmaker       | panic: runtime error: index out of range [0] with length 0
netmaker       | 
netmaker       | goroutine 1 [running]:
netmaker       |{0xc000291b32, 0x7}, 0xc0000be900, {0xc00026f000, 0xc00026f000, 0x20})
netmaker       |     /app/netclient/wireguard/common.go:60 +0x1305
netmaker       |, {0xc000547b90, 0x2c}, {0xc00026f000, 0x12, 0x20}, 0x0, {0x0, 0x0, 0x0})
netmaker       |     /app/logic/wireguard.go:246 +0x121a
netmaker       |, 0x0)
netmaker       |     /app/logic/wireguard.go:296 +0x1fc
netmaker       |, 0x1)
netmaker       |     /app/logic/server.go:431 +0x26c
netmaker       |
netmaker       |     /app/serverctl/serverctl.go:103 +0x2d7
netmaker       | main.initialize()
netmaker       |     /app/main.go:86 +0x42d
netmaker       | main.main()
netmaker       |     /app/main.go:35 +0xaa
netmaker exited with code 2
Is there any way to work around the error and get netmaker server working again without having to rebuild after uninstalling the current server and all its networks and clients?