nikivanov / watney

Watney is a low-cost 3D-printable FPV rover
GNU General Public License v3.0
384 stars 39 forks source link

Can't connect while using bookworm branch #43

Closed bennyp3333 closed 2 months ago

bennyp3333 commented 3 months ago

I have the watney rover working with the provided watney.img release (Build Here), but its a little flakey so I thought I'd try to upgrade to bookworm arm64 to see if it makes it more stable and just to tinker a bit.

But I can't get it to work. I've tried compiling the bookworm branch using the packer-builder-arm multiple times as well as manually execute everything in watey-image.json. Each time with the same results. The rover will boot up as expected but can't connect through https://my-ip:5000 or https://watney.local:5000. Browser just says ERR_CONNECTION_RESET.

I had the release image working so I don't think there's any hardware issues. And its connected to internet, other devices on the network can ping it and see ports 22, 53 and 5000 open. And there's nothing in the logs that seems concerning, er no obvious errors.

I can't seem to tell what is going wrong. Is there something simple I'm missing? Or other debug steps I can do or other logs to look at beyond janus.log? Any help would be appreciated!

Netstat output

pi@watney:~ $ netstat -lntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:5001          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp6       0      0 :::8188                 :::*                    LISTEN     
tcp6       0      0 ::1:8888                :::*                    LISTEN     
tcp6       0      0 ::1:5001                :::*                    LISTEN     
tcp6       0      0 :::7088                 :::*                    LISTEN     
tcp6       0      0 :::8089                 :::*                    LISTEN     
tcp6       0      0 :::53                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
udp        0      0 0.0.0.0:53              0.0.0.0:*                          
udp        0      0 0.0.0.0:67              0.0.0.0:*                          
udp        0      0 0.0.0.0:5353            0.0.0.0:*                          
udp        0      0 0.0.0.0:45034           0.0.0.0:*                          
udp6       0      0 :::53                   :::*                               
udp6       0      0 :::8004                 :::*                               
udp6       0      0 :::8005                 :::*                               
udp6       0      0 :::42111                :::*                               
udp6       0      0 :::5002                 :::*                               
udp6       0      0 :::5004                 :::*                               
udp6       0      0 :::5353                 :::*

server.py output

pi@watney:~ $ /usr/bin/python3 -u /home/pi/watney/server.py
Using TLS with keys in '/home/pi'
DEBUG:root:Use hardware SPI
Set powerplant cutoff voltage to 3200 mv
Servo starting...
Starting TTS...
Heartbeat starting...
Executing '/opt/janus/bin/janus -F /opt/janus/etc/janus/'
Logging to '/home/pi/watney/janus.log'
Saying 'Watney... Online'

janus.log

Janus version: 1203 (1.2.3)
Janus commit: 2a1db57ef737a272faa8fc433fce5266603a4737
Compiled on:  Wed  5 Jun 11:44:46 CDT 2024

Logger plugins folder: /opt/janus/lib/janus/loggers
[WARN]  Couldn't access logger plugins folder...
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Server) v1.2.3
---------------------------------------------------

Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are disabled
Debug/log colors are enabled
Adding 'vmnet' to the ICE ignore list...
Using 192.168.1.206 as local IP...
Token based authentication disabled
Initializing recorder code
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, half-trickle, IPv6 support disabled)
TURN REST API backend: (disabled)
^[[33m[WARN]^[[0m Janus is deployed on a private address (192.168.1.206) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the intern>
Crypto: OpenSSL >= 1.1.0
Fingerprint of our certificate: AF:C9:D7:CD:2C:82:2D:CB:75:B6:F0:0B:00:5F:B6:93:87:A5:45:0D:F9:BC:BE:E7:91:9C:B8:39:B5:F9:FC:FD
^[[33m[WARN]^[[0m Data Channels support not compiled
Sessions watchdog started
Event handler plugins folder: /opt/janus/lib/janus/events
Joining Janus requests handler thread
Loading event handler plugin 'libjanus_wsevh.so'...
^[[33m[WARN]^[[0m WebSockets event handler disabled
Loading event handler plugin 'libjanus_sampleevh.so'...
JANUS SampleEventHandler plugin initialized!
Loading event handler plugin 'libjanus_gelfevh.so'...
^[[33m[WARN]^[[0m GELF event handler disabled (Janus API)
^[[35m[FATAL]^[[0m [events/janus_gelfevh.c:janus_gelfevh_init:375] GELF event handler not enabled/needed, giving up...
Plugins folder: /opt/janus/lib/janus/plugins
Loading plugin 'libjanus_textroom.so'...
^[[33m[WARN]^[[0m Data channels support not compiled, disabling TextRoom plugin
^[[33m[WARN]^[[0m The 'janus.plugin.textroom' plugin could not be initialized
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Loading plugin 'libjanus_streaming.so'...
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
^[[33m[WARN]^[[0m Denoising via RNNoise NOT supported
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_nosip.so'...
JANUS NoSIP plugin initialized!
Loading plugin 'libjanus_sip.so'...
^[[33m[WARN]^[[0m sofia-sip logs are going to be redirected and they will not be shown in the process output
JANUS SIP plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
^[[31m[ERR]^[[0m [janus.c:main:5746] The 'janus.plugin.voicemail' plugin was compiled against an older version of the API (19 < 105), skipping it: update it to enable it a>
Loading plugin 'libjanus_echotest.so'...
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Transport plugins folder: /opt/janus/lib/janus/transports
Loading transport plugin 'libjanus_pfunix.so'...
^[[33m[WARN]^[[0m No Unix Sockets server started, giving up...
^[[33m[WARN]^[[0m The 'janus.transport.pfunix' plugin could not be initialized
Loading transport plugin 'libjanus_websockets.so'...
libwebsockets logging: 0
Websockets server started (port 8188)...
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_http.so'...
WebSockets thread started
HTTP transport timer started
HTTPS webserver started (port 8089, /janus path listener)...
Admin/monitor HTTP webserver started (port 7088, /admin path listener)...
JANUS REST (HTTP/HTTPS) transport plugin initialized!
nikivanov commented 2 months ago

Hi. I created the bookworm branch for a prototype, but it's nowhere near completion. I'm hoping to do a 2024 model refresh of Watney with a better power plant and latest linux, but I don't have a timeline for it.