Hallo Alexander,
erst mal Danke für Deine hervorragende Arbeit bisher! Das ist ja genial!
Ich hab Deinen Server auf einen Raspi außerhalb des Rover installiert. Ich konnte meine Karten-Datei hochladen und auch mir meinem Rover kommunizieren. Sprich ich konnte die Karte sehen und den Standort des Rover. Leider brach die HTTP-Verbindung immer wieder ab.
Heute habe ich mit einem git pull Deine neuesten Änderungen geholt. Leider kann ich jetzt keine Karten mehr hochladen. Nach Klaich auf den txt-Button erscheint das Auswahlfenster, ich kann die Datei wählen und dann geschieht Nichts mehr. Die perimeter.json von vor ein paar Tagen war noch da. Die hab ich mal gelöscht. Das Laden geht aber immer noch nicht.
Hier der Log dazu:
[smarthome@Proxy ~/CaSSAndRA/CaSSAndRA]$ journalctl -u cassandra -e
Mai 11 07:58:10 Proxy systemd[1]: Stopping CaSSAndRA...
Mai 11 07:58:10 Proxy systemd[1]: cassandra.service: Succeeded.
Mai 11 07:58:10 Proxy systemd[1]: Stopped CaSSAndRA.
Mai 11 07:58:10 Proxy systemd[1]: cassandra.service: Consumed 33.006s CPU time.
Mai 11 08:04:17 Proxy systemd[1]: Started CaSSAndRA.
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Starting backend server
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Read communication config file
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Used connection: HTTP
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Read map config file
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Read app config file
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Read saved data
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: State data are loaded successfully
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Statistics data are loaded successfully
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Calced data from state are loaded successfully
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Calced data from stats are loaded successfully
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Read map data file
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 WARNING Backend: Selected perimeter name is an empty string. Please upload or create a new perimeter
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Establishing HTTP connection to the rover
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Try initial HTTP request
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Starting server thread
Mai 11 08:04:22 Proxy python3[47775]: 2023-05-11 08:04:22 INFO Backend: Backend is successfully started
Mai 11 08:04:24 Proxy python3[47775]: 2023-05-11 08:04:24 INFO Backend: Performing get state http-request
Mai 11 08:04:25 Proxy python3[47775]: Dash is running on http://0.0.0.0:8050/
Mai 11 08:04:25 Proxy python3[47775]: 2023-05-11 08:04:25 INFO Dash is running on http://0.0.0.0:8050/
Mai 11 08:04:25 Proxy python3[47775]: * Serving Flask app 'app'
Mai 11 08:04:25 Proxy python3[47775]: * Debug mode: off
Mai 11 08:04:27 Proxy python3[47775]: 2023-05-11 08:04:27 INFO Backend: Performing get state http-request
Mai 11 08:04:28 Proxy python3[47775]: 2023-05-11 08:04:27 ERROR Exception on /_dash-update-component [POST]
Mai 11 08:04:28 Proxy python3[47775]: Traceback (most recent call last):
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/dash/dash.py", line 1230, in dispatch
Mai 11 08:04:28 Proxy python3[47775]: cb = self.callback_map[output]
Mai 11 08:04:28 Proxy python3[47775]: KeyError: '..dropdown-choose-perimeter.options...dropdown-choose-perimeter.value..'
Mai 11 08:04:28 Proxy python3[47775]: The above exception was the direct cause of the following exception:
Mai 11 08:04:28 Proxy python3[47775]: Traceback (most recent call last):
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app
Mai 11 08:04:28 Proxy python3[47775]: response = self.full_dispatch_request()
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request
Mai 11 08:04:28 Proxy python3[47775]: rv = self.handle_user_exception(e)
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
Mai 11 08:04:28 Proxy python3[47775]: rv = self.dispatch_request()
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
Mai 11 08:04:28 Proxy python3[47775]: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Mai 11 08:04:28 Proxy python3[47775]: File "/home/smarthome/.local/lib/python3.9/site-packages/dash/dash.py", line 1279, in dispatch
Mai 11 08:04:28 Proxy python3[47775]: raise KeyError(msg) from missing_callback_function
Mai 11 08:04:28 Proxy python3[47775]: KeyError: "Callback function not found for output '..dropdown-choose-perimeter.options...dropdown-choose-perimeter.value..', perhaps you forgot to prepend the '@'?"
Mai 11 08:04:30 Proxy python3[47775]: 2023-05-11 08:04:30 INFO Backend: Performing get state http-request
Mai 11 08:04:32 Proxy python3[47775]: 2023-05-11 08:04:32 INFO Backend: Performing get state http-request
Mai 11 08:04:35 Proxy python3[47775]: 2023-05-11 08:04:35 INFO Backend: Performing get state http-request
Mai 11 08:04:38 Proxy python3[47775]: 2023-05-11 08:04:38 INFO Backend: Performing get state http-request
Mai 11 08:04:40 Proxy python3[47775]: 2023-05-11 08:04:40 INFO Backend: Performing get state http-request
Mai 11 08:04:43 Proxy python3[47775]: 2023-05-11 08:04:43 INFO Backend: Performing get state http-request
Mai 11 08:04:46 Proxy python3[47775]: 2023-05-11 08:04:46 INFO Backend: Performing get state http-request