Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload: 50051: bind: address already in use #2829

Open
qin-nz opened this issue Aug 9, 2024 · 4 comments
Open

reload: 50051: bind: address already in use #2829

qin-nz opened this issue Aug 9, 2024 · 4 comments

Comments

@qin-nz
Copy link

qin-nz commented Aug 9, 2024

OS: "Ubuntu 22.04.4 LTS"
installed by apt install gobgpd
version: gobgpd/jammy,now 2.25.0-3build1 amd64

Step to reproduce:

  1. system restart gobgpd
  2. system reload gobgpd ( ExecReload=/usr/bin/gobgpd -r )
systemd[1]: Reloading GoBGP Routing Daemon...
gobgpd[1146209]: {"level":"info","msg":"gobgpd started","time":"2024-08-09T16:31:04+08:00"}
gobgpd[1146209]: {"Error":"listen tcp :50051: bind: address already in use","Key":":50051","Topic":"grpc","level":"warning","msg":"listen failed","time":"2024-08-09T16:31:04+08:00"}
gobgpd[1146209]: {"level":"fatal","msg":"failed to listen grpc port: listen tcp :50051: bind: address already in use","time":"2024-08-09T16:31:04+08:00"}
systemd[1]: gobgpd.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: Reload failed for GoBGP Routing Daemon.

/etc/gobgpd.conf

[global.config]
  as = 1
  router-id = "10.0.3.11"

[[neighbors]]
  [neighbors.config]
    neighbor-address = "10.0.8.1"
    peer-as = 2

[[neighbors]]
  [neighbors.config]
    neighbor-address = "10.0.9.1"
    peer-as = 3

@keithcroxford
Copy link

If you run sudo lsof -i :50051 does it show any application already bound to the port?

@fujita
Copy link
Member

fujita commented Aug 14, 2024

system reload gobgpd ( ExecReload=/usr/bin/gobgpd -r )

Humm, the '-r' option isn't reload. It's graceful restart?

@qin-nz
Copy link
Author

qin-nz commented Sep 18, 2024

@keithcroxford only gobgp listen 50051. step 1: system restart gobgpd this can successful run.

@qin-nz
Copy link
Author

qin-nz commented Sep 18, 2024

@fujita It's graceful restart.

GracefulRestart bool `short:"r" long:"graceful-restart" description:"flag restart-state in graceful-restart capability"`

I got gobgpd from Ubuntu apt install gobgpd and systemd service is auto generated. I don't modifiy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants