Hi team,
When running the API it gives the following error:
[birdwatcher@bird-lg-2025-03 ~]$ sudo systemctl status birdwatcher
× birdwatcher.service - BIRDwatcher IPv4
Loaded: loaded (/etc/systemd/system/birdwatcher.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2025-06-04 11:46:37 CEST; 12s ago
Duration: 10.456s
Process: 2172 ExecStart=/home/birdwatcher/birdwatcher/birdwatcher-linux-amd64 -config /home/birdwatcher/birdwatcher/etc/birdwatcher/birdwatcher.conf (code=exited, status=2)
Main PID: 2172 (code=exited, status=2)
CPU: 301ms
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: panic: interface conversion: interface {} is nil, not string
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: goroutine 32 [running]:
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: github.com/alice-lg/birdwatcher/bird.parseRouteLines({0xc00014ac00, 0x1c, 0x0?}, 0x8, 0xc0001a20c0)
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:335 +0xc15
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: github.com/alice-lg/birdwatcher/bird.workerForRouteBlockParsing(0xc0001a2060, 0xc0001a20c0, 0xc00029c010)
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:313 +0x55
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: created by github.com/alice-lg/birdwatcher/bird.startRouteWorkers.func1 in goroutine 24
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:271 +0x45
Jun 04 11:46:37 bird-lg-2025-03 systemd[1]: birdwatcher.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 04 11:46:37 bird-lg-2025-03 systemd[1]: birdwatcher.service: Failed with result 'exit-code'.
Regards,
Fran
Hi team,
When running the API it gives the following error:
[birdwatcher@bird-lg-2025-03 ~]$ sudo systemctl status birdwatcher
× birdwatcher.service - BIRDwatcher IPv4
Loaded: loaded (/etc/systemd/system/birdwatcher.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2025-06-04 11:46:37 CEST; 12s ago
Duration: 10.456s
Process: 2172 ExecStart=/home/birdwatcher/birdwatcher/birdwatcher-linux-amd64 -config /home/birdwatcher/birdwatcher/etc/birdwatcher/birdwatcher.conf (code=exited, status=2)
Main PID: 2172 (code=exited, status=2)
CPU: 301ms
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: panic: interface conversion: interface {} is nil, not string
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: goroutine 32 [running]:
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: github.com/alice-lg/birdwatcher/bird.parseRouteLines({0xc00014ac00, 0x1c, 0x0?}, 0x8, 0xc0001a20c0)
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:335 +0xc15
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: github.com/alice-lg/birdwatcher/bird.workerForRouteBlockParsing(0xc0001a2060, 0xc0001a20c0, 0xc00029c010)
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:313 +0x55
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: created by github.com/alice-lg/birdwatcher/bird.startRouteWorkers.func1 in goroutine 24
Jun 04 11:46:37 bird-lg-2025-03 birdwatcher-linux-amd64[2172]: /home/birdwatcher/birdwatcher/bird/parser.go:271 +0x45
Jun 04 11:46:37 bird-lg-2025-03 systemd[1]: birdwatcher.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 04 11:46:37 bird-lg-2025-03 systemd[1]: birdwatcher.service: Failed with result 'exit-code'.
Regards,
Fran