![]() |
|
No Pypilot data into Signalk Server after OS Backup swap - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: No Pypilot data into Signalk Server after OS Backup swap (/showthread.php?tid=6634) Pages:
1
2
|
No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-17 HI! Let's see if I can get some help here. Yesterday I had a NVME failure and fortunately I had a very fresh backup done 2 days ago. So all fine in this sense. Backup had been previously done using SD CARD COPIER. Just as the standard procedure. System started perfectly but some Derived data sentences don't work,( this is quite typical),and also those about topic of this thread: No incoming IMU data from the dedicated PYpilot CPU by NAVITOP (Great hardware) I checked all I could in SignalK server, and I had 2 different WS Pypilot connections (had them too when I did the original backup), and had no new access requests; so I deleted both connections with the hope that Pypilot would also request access. After deleting this, no access requests and no incoming data either. I left both Pypilot CPU and PI SK Server running overnight and this morning I had an access request from Pypilot; I granted read/write permissions and Pypilot CPU is already getting data from SK server; But the SK Server has no WS connection from Pypilot so not gettinmg data from its IMU. If it serves, I just have a Ws-Openplotter.local:3000 connection (Websocket related) How can I fix this situation in order to get the IMU data back into my SignalK server? Thanks! RE: No Pypilot data into Signalk Server after OS Backup swap - seandepagnier - 2026-01-19 perhaps posting the pypilot log would offer some hints? journalctl -u pypilot RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-19 (2026-01-19, 04:41 AM)seandepagnier Wrote: perhaps posting the pypilot log would offer some hints? Thanks, Sean: In The PI5 running the SK server: pi@openplotter:~ $ journalctl -u pypilot -- No entries -- If I SSH to Pypilot dedicated CPU: pi@openplotter:~ $ ssh tc@192.168.1.115 tc@192.168.1.115's password: tinypilot is a Sailboat Autopilot Distribution for raspberry pi ( '>') /) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY. (/-_--_-\) www.tinycorelinux.net tc@pypilot:~$ journalctl -u pypilot -sh: journalctl: not found Just in case it serves IMU in mac Arthur Hat in Pi5 is disabled, and when I did the backup it was getting navigation attitude data from Tinypilot computer. Pî5 can see Tinypilot and it replies PING Both have dedicated IP addresses Tinypilot gets NMEA DATA Maybe is a Signal K issue as I don't get authorization requests, but in SK server Allow New Device Registration is marked as YES MDNS is also active OK, thanks! RE: No Pypilot data into Signalk Server after OS Backup swap - seandepagnier - 2026-01-19 oh on tinypilot the logs are in /var/log/pypilot/current if you run pypilot_client on the pi5 does it detect and connect automatically using mdns? RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-19 (2026-01-19, 08:24 PM)seandepagnier Wrote: oh on tinypilot the logs are in /var/log/pypilot/current Pypilot client, when IMU enabled, shows data in SK server. If I disable it, data disappears. I think the problem is that it doesnt request access to SK server. This is why i start to thing is SK server related, and should maybe to appeal for asolution in Discord. Anyway, thanks for your help, this is the log: 192.168.1.115 is Tinypilot. Pi5 is on 192.168.1.104 but seems that there is no trace there. pypilot._tcp.local.', name='pypilot._pypilot._tcp.local.', addresses=[b'\xc0\xa8 \x01s'], port=23322, weight=0, priority=0, server='pypilot._pypilot._tcp.local.' , properties={'version': '0.56'}, interface_index=None)} 192.168.1.115 2024-09-12_12:51:24.89665 zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 2024-09-12_12:51:26.27146 zeroconf exception: 2024-09-12_12:51:26.27759 e is {'127.0.0.1': ServiceInfo(type='_pypilot._tcp.loc al.', name='pypilot._pypilot._tcp.local.', addresses=[b'\x7f\x00\x00\x01'], port =23322, weight=0, priority=0, server='pypilot._pypilot._tcp.local.', properties= {'version': '0.56'}, interface_index=None), '192.168.1.115': ServiceInfo(type='_ pypilot._tcp.local.', name='pypilot._pypilot._tcp.local.', addresses=[b'\xc0\xa8 \x01s'], port=23322, weight=0, priority=0, server='pypilot._pypilot._tcp.local.' , properties={'version': '0.56'}, interface_index=None)} 192.168.1.115 2024-09-12_12:52:26.32791 zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 2024-09-12_12:52:27.69399 zeroconf exception: 2024-09-12_12:52:27.69446 e is {'127.0.0.1': ServiceInfo(type='_pypilot._tcp.loc al.', name='pypilot._pypilot._tcp.local.', addresses=[b'\x7f\x00\x00\x01'], port =23322, weight=0, priority=0, server='pypilot._pypilot._tcp.local.', properties= {'version': '0.56'}, interface_index=None), '192.168.1.115': ServiceInfo(type='_ pypilot._tcp.local.', name='pypilot._pypilot._tcp.local.', addresses=[b'\xc0\xa8 \x01s'], port=23322, weight=0, priority=0, server='pypilot._pypilot._tcp.local.' , properties={'version': '0.56'}, interface_index=None)} 192.168.1.115 ~ RE: No Pypilot data into Signalk Server after OS Backup swap - seandepagnier - 2026-01-19 Ok, hard to say if there is a bug maybe in pypilot how it requests access? Did you try with an alternate install on the pi5? Also there is a debug function in pypilot/pypilot/signalk.py. If you uncomment the print there, then: . pypilot.build Then when you restart pypilot "sudo sv r pypilot" or reboot there should be much more signalk logging info. I am not sure what log file you posted is that /var/log/pypilot/current ? RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-20 (2026-01-19, 09:33 PM)seandepagnier Wrote: Ok, hard to say if there is a bug maybe in pypilot how it requests access? I will try but I think is too much for my knowledge!
RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-20 (2026-01-20, 12:22 AM)aitonos Wrote:Hi again, Sean, finally I’ve been investigating this myself (with some help from GPT which made me finally brave , hahaha) and following your advice. I’m sure I may be missing something obvious, so I wanted to share the evidence I’m seeing and ask for your guidance.(2026-01-19, 09:33 PM)seandepagnier Wrote: Ok, hard to say if there is a bug maybe in pypilot how it requests access? Network / setup (key point)
What I did Following your suggestions and continuing on my own:
Code: signalk.enabled=true
Relevant log excerpts (as requested) From Code: /var/log/pypilot/currentCode: signalk process 11729Code: signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local.Code: zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2
Key points (my interpretation — please correct me if I’m wrong)
Conclusion It looks like zeroconf discovery may be taking precedence over the explicitly configured Signal K host, at least in a LAN where a Victron/Venus device advertises Code: _http._tcp.localIf this is expected behaviour, could you advise how to force/priority-connect to the main SK server at Code: 192.168.1.104:3000I know this is a quite unique ( or not so unique) setup in a boat, maybe it would be nice to add an option to choose the SK server to point at to request access or leave it automatic ( when empty) like for NMEA. Thanks a lot for your time and for maintaining pypilot — and apologies if I’m missing something obvious. Full relevant log excerpt ( Code: /var/log/pypilot/currentsignalk process 2316 signalk failed to read token /home/tc/.pypilot/signalk-token signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local. zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: signalk process 11061 signalk failed to read token /home/tc/.pypilot/signalk-token signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local. zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: signalk process 11217 signalk failed to read token /home/tc/.pypilot/signalk-token signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local. zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: signalk process 11485 signalk failed to read token /home/tc/.pypilot/signalk-token signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local. zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: signalk process 11729 signalk failed to read token /home/tc/.pypilot/signalk-token signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local. zeroconf addresses ['127.0.0.1', '192.168.1.115'] 2 zeroconf exception: What is notably absent from the log (no entries found) - http://192.168.1.104:3000 - any HTTP request - any OAuth / access request - any token creation - any connection error to 192.168.1.104:3000 (Forced configuration I used) signalk.enabled=true signalk.host=192.168.1.104 signalk.port=3000 signalk.uid="pypilot-84025861262" Additional verification (outside pypilot) Code: $ wget -S -O - http://192.168.1.104:3000/RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-20 BTW, I am not in my boat, I'm doing all this through VNC, but I have no remote acces to the VENUS OS to disconnect it and see if Then I get the request in the main server. RE: No Pypilot data into Signalk Server after OS Backup swap - aitonos - 2026-01-20 Hi again, I was intrigued to see if to have 2 running SK servers was the reason and got atime to come to the boat, and yes, I switched off the VENUS OS running in my PI3 and rebooted the PI5 with main SK server and data came automatically. ( So it was keeping the old token as didn't have to request new access) So we ( at least me) have learnt a new story! Is there a way that I can force Tinypilot CPU to connect the real SK server? Thanks! |