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

getting "bind to port 8888 failed (Address already in use)" when restarting pigpiod service #1

Open
janvda opened this issue Oct 4, 2019 · 5 comments

Comments

@janvda
Copy link
Owner

janvda commented Oct 4, 2019

This issue is seen in branch https://github.com/janvda/balena-node-red/tree/pigpiod (or more specifically in release https://github.com/janvda/balena-node-red/releases/tag/v2.2.0)

see log file below

04.10.19 08:34:54 (+0200) Installed service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:34:54 (+0200) Starting service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:34:55 (+0200) Started service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:34:55 (+0200)  pigpiod  Starting daemon pigpiod ...
04.10.19 08:34:55 (+0200)  pigpiod  2019-10-04 06:34:55 initInitialise: bind to port 8888 failed (Address already in use)
04.10.19 08:34:55 (+0200)  pigpiod  Can't initialise pigpio library
04.10.19 08:34:55 (+0200)  pigpiod  ... daemon stopped unexpectedly.
04.10.19 08:34:55 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:34:55 (+0200)  pigpiod  sleeping for 5s - we hope that this releases the bound TCP port 8888
04.10.19 08:35:00 (+0200)  pigpiod  end of sleep
04.10.19 08:35:00 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:35:00 (+0200)  pigpiod  ... start.sh terminated
04.10.19 08:35:02 (+0200) Service exited 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:35:03 (+0200)  pigpiod  Starting daemon pigpiod ...
04.10.19 08:35:03 (+0200)  pigpiod  2019-10-04 06:35:03 initInitialise: bind to port 8888 failed (Address already in use)
04.10.19 08:35:03 (+0200)  pigpiod  Can't initialise pigpio library
04.10.19 08:35:03 (+0200)  pigpiod  ... daemon stopped unexpectedly.
04.10.19 08:35:03 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:35:04 (+0200) Restarting service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:35:03 (+0200)  pigpiod  sleeping for 5s - we hope that this releases the bound TCP port 8888
04.10.19 08:35:08 (+0200)  pigpiod  end of sleep
04.10.19 08:35:08 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:35:09 (+0200)  pigpiod  ... start.sh terminated
04.10.19 08:35:10 (+0200) Service exited 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:35:11 (+0200)  pigpiod  Starting daemon pigpiod ...
04.10.19 08:35:11 (+0200)  pigpiod  2019-10-04 06:35:11 initInitialise: bind to port 8888 failed (Address already in use)
04.10.19 08:35:11 (+0200)  pigpiod  Can't initialise pigpio library
04.10.19 08:35:11 (+0200) Restarting service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:35:11 (+0200)  pigpiod  ... daemon stopped unexpectedly.
04.10.19 08:35:11 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:35:11 (+0200)  pigpiod  sleeping for 5s - we hope that this releases the bound TCP port 8888
04.10.19 08:35:16 (+0200)  pigpiod  end of sleep
04.10.19 08:35:16 (+0200)  pigpiod  netstat -tl | grep 8888
04.10.19 08:35:16 (+0200)  pigpiod  ... start.sh terminated
04.10.19 08:35:18 (+0200) Service exited 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
04.10.19 08:35:19 (+0200)  pigpiod  Starting daemon pigpiod ...
04.10.19 08:35:19 (+0200)  pigpiod  2019-10-04 06:35:19 initInitialise: bind to port 8888 failed (Address already in use)
04.10.19 08:35:19 (+0200)  pigpiod  Can't initialise pigpio library
04.10.19 08:35:20 (+0200) Restarting service 'pigpiod sha256:bf37556c974eaa33813d077cee9bfe75ade5739172bfc2b38e6384736f5cabbc'
@janvda
Copy link
Owner Author

janvda commented Oct 4, 2019

@janvda
Copy link
Owner Author

janvda commented Oct 4, 2019

Increased the sleep period from 5 to 20 sec in commit d35853f

@janvda
Copy link
Owner Author

janvda commented Oct 5, 2019

Today I tried to reproduce this issue without any success.

@guymcswain
Copy link

If you cannot reproduce can you please close #298 in pigpio repository?

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

2 participants