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

self.udp_publisher.send ConnectionRefusedError on second call #21

Open
juedongli opened this issue Dec 29, 2020 · 0 comments
Open

self.udp_publisher.send ConnectionRefusedError on second call #21

juedongli opened this issue Dec 29, 2020 · 0 comments

Comments

@juedongli
Copy link

self.udp_publisher.send ConnectionRefusedError on second call
need to restart run_robot.py

pi@raspberrypi:~ $ sudo systemctl status robot
● robot.service - Robot control service
Loaded: loaded (/home/pi/StanfordQuadruped/robot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-12-29 13:48:23 GMT; 4min 22s ago
Process: 343 ExecStartPre=/usr/bin/sudo pigpiod (code=exited, status=0/SUCCESS)
Process: 412 ExecStart=/usr/bin/python3 /home/pi/StanfordQuadruped/run_robot.py (code=exited, status=1/FAILURE)
Main PID: 412 (code=exited, status=1/FAILURE)

Dec 29 13:48:13 raspberrypi python3[412]: joystick_interface.set_color(config.ps4_deactivated_color)
Dec 29 13:48:13 raspberrypi python3[412]: File "/home/pi/StanfordQuadruped/src/JoystickInterface.py", line 94, in set_color
Dec 29 13:48:13 raspberrypi python3[412]: self.udp_publisher.send(joystick_msg)
Dec 29 13:48:13 raspberrypi python3[412]: File "/usr/local/lib/python3.7/dist-packages/UDPComms.py", line 53, in send
Dec 29 13:48:13 raspberrypi python3[412]: self.sock.send(msg)
Dec 29 13:48:13 raspberrypi python3[412]: ConnectionRefusedError: [Errno 111] Connection refused
Dec 29 13:48:13 raspberrypi systemd[1]: robot.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 13:48:23 raspberrypi systemd[1]: robot.service: State 'stop-sigterm' timed out. Killing.
Dec 29 13:48:23 raspberrypi systemd[1]: robot.service: Killing process 410 (pigpiod) with signal SIGKILL.
Dec 29 13:48:23 raspberrypi systemd[1]: robot.service: Failed with result 'exit-code'.

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

1 participant