cedbossneo / openmower-gui

28 stars 17 forks source link

Some connections do not recover when openmower service is restarted #15

Closed 2m closed 11 months ago

2m commented 1 year ago

When debugging things I quite often want to clear current openmower state and thus restart the openmower service.

I noticed that some parts of the openmower-gui loose connection with the mower when the openmower service is restarted. I see the following in the openmower-gui logs:

[2023/09/11 16:01:19] [ERROR] subscriber '/move_base_flex/FTCPlanner/global_plan' got an error: Post "http://openmower:33465/RPC2": dial tcp 127.0.1.1:33465: connect: connection refused
[2023/09/11 16:01:19] [ERROR] subscriber '/xbot_monitoring/map' got an error: Post "http://openmower:44851/RPC2": dial tcp 127.0.1.1:44851: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/move_base_flex/FTCPlanner/global_plan' got an error: Post "http://openmower:33465/RPC2": dial tcp 127.0.1.1:33465: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/slic3r_coverage_planner/path_marker_array' got an error: Post "http://openmower:37051/RPC2": dial tcp 127.0.1.1:37051: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/imu/data_raw' got an error: Post "http://openmower:41187/RPC2": dial tcp 127.0.1.1:41187: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/mower/status' got an error: Post "http://openmower:41187/RPC2": dial tcp 127.0.1.1:41187: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/xbot_positioning/xb_pose' got an error: Post "http://openmower:41039/RPC2": dial tcp 127.0.1.1:41039: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/mower/wheel_ticks' got an error: Post "http://openmower:41187/RPC2": dial tcp 127.0.1.1:41187: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/xbot_monitoring/map' got an error: Post "http://openmower:44851/RPC2": dial tcp 127.0.1.1:44851: connect: connection refused
[2023/09/11 16:01:24] [ERROR] subscriber '/mower_logic/current_state' got an error: Post "http://openmower:46343/RPC2": dial tcp 127.0.1.1:46343: connect: connection refused
cedbossneo commented 1 year ago

Can't find a way to fix this, still searching for a solution