Posts: 49
Threads: 8
Joined: Oct 2021
Reputation:
0
2024-05-19, 07:07 PM
(This post was last modified: 2024-05-19, 07:09 PM by kniven.)
Hi. I have been struggeling with updating pypilot on my Tinypilot (Raspberry pi Zero) for some time.
I Updated the code from the repository (as explained here : https://github.com/pypilot/workbook/wiki...r-the-hood).
Apparently Successfully built the code. Twice.
The version now running is 0.52. The display on the pilot seems fine, and the initial problems I had (getting wind data into pypilot, also seems ok) Screenshots from opecpn interface and some debug info in the screenshots.
The issue now is the web interface.... See screenshot. Any suggestions to where to start?
Best regard, Leif
Posts: 2,220
Threads: 20
Joined: Jun 2016
Reputation:
68
did you check the pypilot_web log? I see you have the console output from pypilot itself.. did you run it directly? If so you should consider running pypilot_web directly to find the issue, or check the log in /var/log/pypilot_web/current
Posts: 49
Threads: 8
Joined: Oct 2021
Reputation:
0
2024-05-20, 09:22 AM
(This post was last modified: 2024-05-20, 09:52 AM by kniven.)
Same issue when not running from command line.
This is the response when trying pypilot_web
Code: Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\leifi> ssh tc@192.168.1.102
tc@192.168.1.102's password:
tinypilot is a Sailboat Autopilot Distribution for raspberry pi
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@pypilot:~$ sudo sv stop pypilot
ok: down: pypilot: 0s
tc@pypilot:~$ pypilot_web
failed to read config /home/tc/.pypilot/web.conf
using port 8000
failed to import flask_babel, translations not possible!! [Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/pypilot/web/translations'
processing clients
^CKeyboardInterrupt
2021-11-04T11:32:25Z
Traceback (most recent call last):
File "/usr/local/bin/pypilot_web", line 11, in <module>
load_entry_point('pypilot==0.52', 'console_scripts', 'pypilot_web')()
File "/usr/local/lib/python3.6/site-packages/pypilot/web/web.py", line 264, in main
socketio.run(app, debug=False, host='0.0.0.0', port=port)
File "/usr/local/lib/python3.6/site-packages/flask_socketio/__init__.py", line 665, in run
self.wsgi_server.serve_forever()
File "/usr/local/lib/python3.6/site-packages/gevent/baseserver.py", line 369, in serve_forever
self._stop_event.wait()
File "src/gevent/event.py", line 127, in gevent._event.Event.wait
File "src/gevent/_abstract_linkable.py", line 192, in gevent.__abstract_linkable.AbstractLinkable._wait
File "src/gevent/_abstract_linkable.py", line 165, in gevent.__abstract_linkable.AbstractLinkable._wait_core
File "src/gevent/_abstract_linkable.py", line 169, in gevent.__abstract_linkable.AbstractLinkable._wait_core
File "src/gevent/_greenlet_primitives.py", line 60, in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
File "src/gevent/_greenlet_primitives.py", line 60, in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
File "src/gevent/_greenlet_primitives.py", line 64, in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
File "src/gevent/__greenlet_primitives.pxd", line 35, in gevent.__greenlet_primitives._greenlet_switch
KeyboardInterrupt
tc@pypilot:~$ cd /var/log/pypilot_web/
tc@pypilot:/var/log/pypilot_web$ ls
current lock
tc@pypilot:/var/log/pypilot_web$ cd ls current
-sh: cd: can't cd to ls
tc@pypilot:/var/log/pypilot_web$ more current
2021-11-04_11:03:25.43959 failed to read config //.pypilot/web.conf
2021-11-04_11:03:25.44199 using port 80
2021-11-04_11:03:25.44205 failed to import flask_babel, translations not possible!! [Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/pypilot/web/translations'
2021-11-04_11:03:25.44228 processing clients
2021-11-04_11:12:17.49255 [2021-11-04 11:12:17,461] ERROR in app: Exception on / [GET]
2021-11-04_11:12:17.49269 Traceback (most recent call last):
2021-11-04_11:12:17.49277 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
2021-11-04_11:12:17.49289 response = self.full_dispatch_request()
2021-11-04_11:12:17.49297 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
2021-11-04_11:12:17.49312 rv = self.handle_user_exception(e)
2021-11-04_11:12:17.49320 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
2021-11-04_11:12:17.49370 reraise(exc_type, exc_value, tb)
2021-11-04_11:12:17.49375 File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
2021-11-04_11:12:17.49390 raise value
2021-11-04_11:12:17.49392 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
2021-11-04_11:12:17.49409 rv = self.dispatch_request()
2021-11-04_11:12:17.49415 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
2021-11-04_11:12:17.49429 return self.view_functions[rule.endpoint](**req.view_args)
2021-11-04_11:12:17.49437 File "/usr/local/lib/python3.6/site-packages/pypilot/web/web.py", line 201, in index
2021-11-04_11:12:17.49452 return render_template('index.html', async_mode=socketio.async_mode, pypilot_web_port=pypilot_web_port, tinypilot=tinypilot.tinypilot, translations=translations, language=config['language'], languages=Markup(LANGUAGES))
2021-11-04_11:12:17.49481 NameError: name 'LANGUAGES' is not defined
2021-11-04_11:29:28.91337 [2021-11-04 11:29:28,883] ERROR in app: Exception on / [GET]
2021-11-04_11:29:28.91352 Traceback (most recent call last):
2021-11-04_11:29:28.91360 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
2021-11-04_11:29:28.91371 response = self.full_dispatch_request()
2021-11-04_11:29:28.91380 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
2021-11-04_11:29:28.91394 rv = self.handle_user_exception(e)
2021-11-04_11:29:28.91402 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
2021-11-04_11:29:28.91417 reraise(exc_type, exc_value, tb)
2021-11-04_11:29:28.91422 File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
2021-11-04_11:29:28.91437 raise value
2021-11-04_11:29:28.91439 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
2021-11-04_11:29:28.91456 rv = self.dispatch_request()
2021-11-04_11:29:28.91461 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
2021-11-04_11:29:28.91475 return self.view_functions[rule.endpoint](**req.view_args)
2021-11-04_11:29:28.91484 File "/usr/local/lib/python3.6/site-packages/pypilot/web/web.py", line 201, in index
2021-11-04_11:29:28.91498 return render_template('index.html', async_mode=socketio.async_mode, pypilot_web_port=pypilot_web_port, tinypilot=tinypilot.tinypilot, translations=translations, language=config['language'], languages=Markup(LANGUAGES))
2021-11-04_11:29:28.91528 NameError: name 'LANGUAGES' is not defined
2021-11-04_11:32:04.60965 [2021-11-04 11:32:04,596] ERROR in app: Exception on / [GET]
2021-11-04_11:32:04.60985 Traceback (most recent call last):
2021-11-04_11:32:04.60997 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
2021-11-04_11:32:04.61014 response = self.full_dispatch_request()
2021-11-04_11:32:04.61027 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
2021-11-04_11:32:04.61055 rv = self.handle_user_exception(e)
2021-11-04_11:32:04.61067 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
2021-11-04_11:32:04.61089 reraise(exc_type, exc_value, tb)
2021-11-04_11:32:04.61097 File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
2021-11-04_11:32:04.61117 raise value
2021-11-04_11:32:04.61121 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
2021-11-04_11:32:04.61146 rv = self.dispatch_request()
2021-11-04_11:32:04.61153 File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
2021-11-04_11:32:04.61174 return self.view_functions[rule.endpoint](**req.view_args)
2021-11-04_11:32:04.61187 File "/usr/local/lib/python3.6/site-packages/pypilot/web/web.py", line 201, in index
2021-11-04_11:32:04.61207 return render_template('index.html', async_mode=socketio.async_mode, pypilot_web_port=pypilot_web_port, tinypilot=tinypilot.tinypilot, translations=translations, language=config['language'], languages=Markup(LANGUAGES))
2021-11-04_11:32:04.61249 NameError: name 'LANGUAGES' is not defined
tc@pypilot:/var/log/pypilot_web$ date
Thu Nov 4 11:33:31 UTC 2021
tc@pypilot:~$ ls -l .pypilot/
total 110
-rw-r--r-- 1 tc staff 15101 Nov 4 11:51 RTIMULib.ini
-rw-r--r-- 1 tc staff 11 Aug 12 2017 blacklist_serial_ports
-rw-r--r-- 1 tc staff 32126 Mar 16 2020 fuzzy.json
-rw-r--r-- 1 tc staff 2025 Mar 14 2020 fuzzy.json~
-rw-r--r-- 1 tc staff 4 Mar 14 2020 gpsd_baud_hint
-rw-r--r-- 1 tc staff 644 Nov 4 11:03 hat.conf
-rw-r--r-- 1 root root 644 Nov 4 11:00 hat.conf.bak
-rw-r--r-- 1 tc staff 1525 Nov 6 2021 hat.conf~
-rw-r--r-- 1 root root 8 Nov 4 11:00 lcddriver
-rw-r--r-- 1 tc staff 2515 Nov 4 11:04 leifi@192.168.1.109
-rw-r--r-- 1 tc staff 113 Nov 4 11:13 networking.txt
-rw-r--r-- 1 tc staff 91 Nov 6 2021 networking.txt~
-rw-r--r-- 1 tc staff 66 Nov 4 11:00 nmea0device
-rw-r--r-- 1 tc staff 176 Nov 4 11:00 persist_fail
-rw-r--r-- 1 tc staff 2905 Nov 4 11:27 pypilot.conf
-rw-r--r-- 1 tc staff 2566 Nov 4 11:00 pypilot.conf.bak
-rw-r--r-- 1 tc staff 2546 Nov 4 2021 pypilot.conf.restore
-rw-r--r-- 1 tc staff 2922 Nov 10 2021 pypilot.conf~
-rw-r--r-- 1 tc staff 4998 Aug 14 2017 pypilot.log
-rw-r--r-- 1 tc staff 34 Nov 4 11:00 pypilot_client.conf
-rw-r--r-- 1 tc staff 25 Nov 4 11:00 servodevice
-rw-r--r-- 1 tc staff 169 Nov 4 11:15 signalk-token
-rw-r--r-- 1 tc staff 169 Mar 14 2020 signalk-token~
drwxr-xr-x 2 root root 25600 Nov 4 11:04 ugfxfonts/
tc@pypilot:~$
Dump from the log file, an the content of ./pypilot. Seems like the web/ folder is missing...
|