tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

uStreamer compilation fails on Debian bullseye

Open yeyeto2788 opened this issue 2 years ago • 5 comments

uStreamer fails while compiling on 32-bit ARMv6

Briefly summarize the problem you're experiencing.

What's the behavior that you expect?

Compilation goes smoothly and my device outputs signal from HDMI 😋

What's happening instead?

Ansible reports that failed while compiling the software

What are the steps to reproduce this behavior?

  1. Create tinypilot user by: sudo useradd --create-home --system --user-group tinypilot
  2. Create /home/tinypilot/setting.yml with the following information:
    ustreamer_capture_device: "tc358743"
    ustreamer_use_dv_timings: true
    ustreamer_desired_fps: 15
    ustreamer_drop_same_frames: 15
    ustreamer_port: 8001
    ustreamer_persistent: true
    ustreamer_encoder: omx
    ustreamer_format: uyvy
    ustreamer_resolution: 1920x720
    
  3. Change ownership of the file:
    sudo chown tinypilot:tinypilot "${TINYPILOT_SETTINGS_FILE}"
    
  4. Set some variable before install
    USE_TC358743_DEFAULTS=y
    TINYPILOT_SETTINGS_FILE="/home/tinypilot/settings.yml"
    
  5. Install super tinypilot:
    curl --silent --show-error https://raw.githubusercontent.com/mtlynch/tinypilot/master/quick-install | bash -
    
  6. See error

Screenshots

Raspberry pi OS lite configuration raspberry_imager_settings

Logs

Line 437 of the log file below shows the error 😢 installation_001.log

yeyeto2788 avatar Jan 13 '22 10:01 yeyeto2788

Hey guys! This issue seems to be related to this

yeyeto2788 avatar Jan 13 '22 10:01 yeyeto2788

Confirmed, seems like the issue in on Debian Bullseye as I tried it with Buster and the compilation did go smoothly, here you can see the output of the test: installation_002.log

After reboot I get a different error (still no output 😢 :

TinyPilot log dump
https://tinypilotkvm.com
Timestamp: 2022-01-13T13:38:16+01:00

Software versions
TinyPilot version: 1.6.2-2-g8c924e8 8c924e8
uStreamer version: v3.26 a97f08e
OS version: Linux tinypilot 5.10.63+ #1496 Wed Dec 1 15:57:05 GMT 2021 armv6l GNU/Linux

TinyPilot state
temp=32.6'C
throttled=0x0

voltage logs

TinyPilot configuration
[Unit]
Description=TinyPilot - RPi-based virtual KVM
After=syslog.target network.target
StartLimitIntervalSec=0

[Service]
Type=simple
User=tinypilot
WorkingDirectory=/opt/tinypilot
ExecStart=/opt/tinypilot/venv/bin/python app/main.py
Environment=HOST=127.0.0.1
Environment=PORT=8000
Environment=APP_SETTINGS_FILE=/opt/tinypilot/app_settings.cfg
Restart=always

[Install]
WantedBy=multi-user.target

TinyPilot logs
-- Logs begin at Thu 2022-01-13 13:33:26 CET, end at Thu 2022-01-13 13:38:18 CET. --
Jan 13 13:33:52 tinypilot systemd[1]: Started TinyPilot - RPi-based virtual KVM.
Jan 13 13:34:30 tinypilot python[394]: 2022-01-13 13:34:30.571 __main__        INFO Starting app
Jan 13 13:38:00 tinypilot python[394]: 2022-01-13 13:38:00.540 socket_api      INFO Client connected
Jan 13 13:38:04 tinypilot python[394]: 2022-01-13 13:38:04.944 socket_api      INFO Client connected
Jan 13 13:38:06 tinypilot python[394]: Process ProcessWithResult-1:
Jan 13 13:38:06 tinypilot python[394]: Traceback (most recent call last):
Jan 13 13:38:06 tinypilot python[394]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Jan 13 13:38:06 tinypilot python[394]:     self.run()
Jan 13 13:38:06 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 45, in run
Jan 13 13:38:06 tinypilot python[394]:     result.return_value = self._target(*self._args, **self._kwargs)
Jan 13 13:38:06 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 64, in _write_to_hid_interface_immediately
Jan 13 13:38:06 tinypilot python[394]:     with open(hid_path, 'ab+') as hid_handle:
Jan 13 13:38:06 tinypilot python[394]: PermissionError: [Errno 13] Permission denied: '/dev/hidg0'
Jan 13 13:38:07 tinypilot python[394]: 2022-01-13 13:38:07.003 socket_api      ERROR [SENSITIVE] Failed to write key: Control (keycode=ControlLeft). Failed to write to HID interface: /dev/hidg0. Is USB cable connected? [/SENSITIVE]
Jan 13 13:38:07 tinypilot python[394]: Process ProcessWithResult-2:
Jan 13 13:38:07 tinypilot python[394]: Traceback (most recent call last):
Jan 13 13:38:07 tinypilot python[394]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Jan 13 13:38:07 tinypilot python[394]:     self.run()
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 45, in run
Jan 13 13:38:07 tinypilot python[394]:     result.return_value = self._target(*self._args, **self._kwargs)
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 64, in _write_to_hid_interface_immediately
Jan 13 13:38:07 tinypilot python[394]:     with open(hid_path, 'ab+') as hid_handle:
Jan 13 13:38:07 tinypilot python[394]: PermissionError: [Errno 13] Permission denied: '/dev/hidg0'
Jan 13 13:38:07 tinypilot python[394]: 2022-01-13 13:38:07.157 socket_api      ERROR [SENSITIVE] Failed to write key: Shift (keycode=ShiftLeft). Failed to write to HID interface: /dev/hidg0. Is USB cable connected? [/SENSITIVE]
Jan 13 13:38:07 tinypilot python[394]: Process ProcessWithResult-3:
Jan 13 13:38:07 tinypilot python[394]: Traceback (most recent call last):
Jan 13 13:38:07 tinypilot python[394]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Jan 13 13:38:07 tinypilot python[394]:     self.run()
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 45, in run
Jan 13 13:38:07 tinypilot python[394]:     result.return_value = self._target(*self._args, **self._kwargs)
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 64, in _write_to_hid_interface_immediately
Jan 13 13:38:07 tinypilot python[394]:     with open(hid_path, 'ab+') as hid_handle:
Jan 13 13:38:07 tinypilot python[394]: PermissionError: [Errno 13] Permission denied: '/dev/hidg0'
Jan 13 13:38:07 tinypilot python[394]: 2022-01-13 13:38:07.269 socket_api      ERROR [SENSITIVE] Failed to write key: R (keycode=KeyR). Failed to write to HID interface: /dev/hidg0. Is USB cable connected? [/SENSITIVE]
Jan 13 13:38:07 tinypilot python[394]: Process ProcessWithResult-4:
Jan 13 13:38:07 tinypilot python[394]: Traceback (most recent call last):
Jan 13 13:38:07 tinypilot python[394]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Jan 13 13:38:07 tinypilot python[394]:     self.run()
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 45, in run
Jan 13 13:38:07 tinypilot python[394]:     result.return_value = self._target(*self._args, **self._kwargs)
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 64, in _write_to_hid_interface_immediately
Jan 13 13:38:07 tinypilot python[394]:     with open(hid_path, 'ab+') as hid_handle:
Jan 13 13:38:07 tinypilot python[394]: PermissionError: [Errno 13] Permission denied: '/dev/hidg0'
Jan 13 13:38:07 tinypilot python[394]: 2022-01-13 13:38:07.417 socket_api      ERROR [SENSITIVE] Failed to release keys: Failed to write to HID interface: /dev/hidg0. Is USB cable connected? [/SENSITIVE]
Jan 13 13:38:07 tinypilot python[394]: Process ProcessWithResult-5:
Jan 13 13:38:07 tinypilot python[394]: Traceback (most recent call last):
Jan 13 13:38:07 tinypilot python[394]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Jan 13 13:38:07 tinypilot python[394]:     self.run()
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 45, in run
Jan 13 13:38:07 tinypilot python[394]:     result.return_value = self._target(*self._args, **self._kwargs)
Jan 13 13:38:07 tinypilot python[394]:   File "/opt/tinypilot/app/hid/write.py", line 64, in _write_to_hid_interface_immediately
Jan 13 13:38:07 tinypilot python[394]:     with open(hid_path, 'ab+') as hid_handle:
Jan 13 13:38:07 tinypilot python[394]: PermissionError: [Errno 13] Permission denied: '/dev/hidg0'
Jan 13 13:38:07 tinypilot python[394]: 2022-01-13 13:38:07.508 socket_api      ERROR [SENSITIVE] Failed to release keys: Failed to write to HID interface: /dev/hidg0. Is USB cable connected? [/SENSITIVE]
Jan 13 13:38:16 tinypilot sudo[819]: tinypilot : TTY=unknown ; PWD=/opt/tinypilot ; USER=root ; COMMAND=/opt/tinypilot-privileged/collect-debug-logs -q
Jan 13 13:38:16 tinypilot sudo[819]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 13 13:38:17 tinypilot sudo[832]:     root : TTY=unknown ; PWD=/opt/ustreamer ; USER=root ; COMMAND=/usr/bin/journalctl -xe
Jan 13 13:38:17 tinypilot sudo[832]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 13 13:38:18 tinypilot sudo[832]: pam_unix(sudo:session): session closed for user root
Jan 13 13:38:18 tinypilot sudo[836]:     root : TTY=unknown ; PWD=/opt/ustreamer ; USER=root ; COMMAND=/usr/bin/journalctl -u tinypilot
Jan 13 13:38:18 tinypilot sudo[836]: pam_unix(sudo:session): session opened for user root by (uid=0)

TinyPilot update logs

uStreamer configuration
[Unit]
Description=uStreamer - Lightweight, optimized video encoder
After=syslog.target network.target

[Service]
Type=simple
User=ustreamer
WorkingDirectory=/opt/ustreamer
ExecStart=/opt/ustreamer/ustreamer \
  --host 127.0.0.1 \
  --port 8001 \
  --encoder omx \
  --format uyvy \
  --desired-fps 15 \
  --resolution 1280x720 \
  --workers 3 \
  --drop-same-frames 15 \
  --persistent \
  --dv-timings \
  && :
# This last line is just to end the multi-line command because the line
# before is ending with backslash and so expects to be continued.
Restart=always

[Install]
WantedBy=multi-user.target

uStreamer logs
-- Logs begin at Thu 2022-01-13 13:33:26 CET, end at Thu 2022-01-13 13:38:18 CET. --
Jan 13 13:33:52 tinypilot systemd[1]: Started uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:53 tinypilot ustreamer[403]: -- INFO  [35.219      main] -- Using internal blank placeholder
Jan 13 13:33:53 tinypilot ustreamer[403]: [warn] getaddrinfo: address family for nodename not supported
Jan 13 13:33:53 tinypilot ustreamer[403]: -- ERROR [35.312      main] -- Can't bind HTTP on [127.0.0.1]:8001: Resource temporarily unavailable
Jan 13 13:33:53 tinypilot systemd[1]: ustreamer.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 13:33:53 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:53 tinypilot systemd[1]: ustreamer.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:33:53 tinypilot systemd[1]: ustreamer.service: Scheduled restart job, restart counter is at 1.
Jan 13 13:33:53 tinypilot systemd[1]: Stopped uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:54 tinypilot systemd[1]: Started uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:54 tinypilot ustreamer[414]: -- INFO  [36.386      main] -- Using internal blank placeholder
Jan 13 13:33:54 tinypilot ustreamer[414]: [warn] getaddrinfo: address family for nodename not supported
Jan 13 13:33:54 tinypilot ustreamer[414]: -- ERROR [36.512      main] -- Can't bind HTTP on [127.0.0.1]:8001: Resource temporarily unavailable
Jan 13 13:33:54 tinypilot systemd[1]: ustreamer.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 13:33:54 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:55 tinypilot systemd[1]: ustreamer.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:33:55 tinypilot systemd[1]: ustreamer.service: Scheduled restart job, restart counter is at 2.
Jan 13 13:33:55 tinypilot systemd[1]: Stopped uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:55 tinypilot systemd[1]: Started uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:55 tinypilot ustreamer[440]: -- INFO  [37.517      main] -- Using internal blank placeholder
Jan 13 13:33:55 tinypilot ustreamer[440]: [warn] getaddrinfo: address family for nodename not supported
Jan 13 13:33:55 tinypilot ustreamer[440]: -- ERROR [37.611      main] -- Can't bind HTTP on [127.0.0.1]:8001: Resource temporarily unavailable
Jan 13 13:33:56 tinypilot systemd[1]: ustreamer.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 13:33:56 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:56 tinypilot systemd[1]: ustreamer.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:33:56 tinypilot systemd[1]: ustreamer.service: Scheduled restart job, restart counter is at 3.
Jan 13 13:33:56 tinypilot systemd[1]: Stopped uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:56 tinypilot systemd[1]: Started uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:57 tinypilot ustreamer[458]: -- INFO  [38.914      main] -- Using internal blank placeholder
Jan 13 13:33:57 tinypilot ustreamer[458]: [warn] getaddrinfo: address family for nodename not supported
Jan 13 13:33:57 tinypilot ustreamer[458]: -- ERROR [38.996      main] -- Can't bind HTTP on [127.0.0.1]:8001: Resource temporarily unavailable
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Scheduled restart job, restart counter is at 4.
Jan 13 13:33:57 tinypilot systemd[1]: Stopped uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:57 tinypilot systemd[1]: Started uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:57 tinypilot ustreamer[475]: -- INFO  [39.570      main] -- Using internal blank placeholder
Jan 13 13:33:57 tinypilot ustreamer[475]: [warn] getaddrinfo: address family for nodename not supported
Jan 13 13:33:57 tinypilot ustreamer[475]: -- ERROR [39.610      main] -- Can't bind HTTP on [127.0.0.1]:8001: Resource temporarily unavailable
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Service RestartSec=100ms expired, scheduling restart.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Scheduled restart job, restart counter is at 5.
Jan 13 13:33:57 tinypilot systemd[1]: Stopped uStreamer - Lightweight, optimized video encoder.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Start request repeated too quickly.
Jan 13 13:33:57 tinypilot systemd[1]: ustreamer.service: Failed with result 'exit-code'.
Jan 13 13:33:57 tinypilot systemd[1]: Failed to start uStreamer - Lightweight, optimized video encoder.

nginx logs
-- Logs begin at Thu 2022-01-13 13:33:26 CET, end at Thu 2022-01-13 13:38:18 CET. --
Jan 13 13:33:52 tinypilot systemd[1]: Starting A high performance web server and a reverse proxy server...
Jan 13 13:33:54 tinypilot systemd[1]: Started A high performance web server and a reverse proxy server.


2022/01/13 13:23:49 [notice] 5219#5219: signal process started
2022/01/13 13:38:00 [error] 420#420: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.23, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:8001/stream?advance_headers=1", host: "tinypilot.local", referrer: "http://tinypilot.local/"
2022/01/13 13:38:04 [error] 420#420: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.23, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:8001/stream?advance_headers=1", host: "tinypilot.local", referrer: "http://tinypilot.local/"
2022/01/13 13:38:04 [error] 420#420: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.23, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:8001/stream?advance_headers=1", host: "tinypilot.local", referrer: "http://tinypilot.local/"
2022/01/13 13:38:04 [warn] 420#420: *3 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 192.168.0.23, server: tinypilot, request: "GET /img/logo.svg HTTP/1.1", upstream: "http://127.0.0.1:8000/img/logo.svg", host: "tinypilot.local", referrer: "http://tinypilot.local/"


192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /css/cursors.css HTTP/1.1" 200 671 "http://tinypilot.local/css/style.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/paste.js HTTP/1.1" 200 2076 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/app.js HTTP/1.1" 200 12142 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /third-party/socket.io/3.1.3/socket.io.min.js HTTP/1.1" 200 61701 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/keycodes.js HTTP/1.1" 200 3190 "http://tinypilot.local/js/app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/keyboardstate.js HTTP/1.1" 200 2823 "http://tinypilot.local/js/app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/keystrokes.js HTTP/1.1" 200 362 "http://tinypilot.local/js/app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:12 +0100] "GET /js/settings.js HTTP/1.1" 200 1194 "http://tinypilot.local/js/app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /js/overlays.js HTTP/1.1" 200 495 "http://tinypilot.local/js/app.js" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /third-party/fonts/overpass-light.woff2 HTTP/1.1" 200 26568 "http://tinypilot.local/third-party/fonts/fonts.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /img/logo.svg HTTP/1.1" 200 2936 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /third-party/fonts/overpass-mono-light.woff2 HTTP/1.1" 200 50112 "http://tinypilot.local/third-party/fonts/fonts.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /third-party/fonts/overpass-semibold.woff2 HTTP/1.1" 200 25032 "http://tinypilot.local/third-party/fonts/fonts.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /css/toggle.css HTTP/1.1" 200 1005 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJR9dh HTTP/1.1" 200 96 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJR9f8&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:13 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJR9f9&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 32 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:15 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJRA3X&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:15 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJR9iM&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 22 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:15 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJRACw&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:15 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJRA90&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 22 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:16 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJRAU8&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:16 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJRAFT&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 22 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:18 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJRAyu&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:18 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJRAXX&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 22 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:20 +0100] "POST /socket.io/?EIO=4&transport=polling&t=NvJRBQs&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 2 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:20 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJRB0k&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 22 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:32:23 +0100] "GET /socket.io/?EIO=4&transport=polling&t=NvJRBTV&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 200 1 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:33:18 +0100] "GET /stream?advance_headers=1 HTTP/1.1" 200 919929 "http://tinypilot.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"
192.168.0.23 - - [13/Jan/2022:13:33:19 +0100] "GET /socket.io/?EIO=4&transport=websocket&sid=PmgbFbUI-iUtCHQBAAAA HTTP/1.1" 101 186 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"

NOTE:

  • Play special attention to the handler load TC358743 EDID file from the ansible-role-ustreamer
  • We may want to add this into the wiki as using OMX in Bullseye will probably fail.

yeyeto2788 avatar Jan 13 '22 12:01 yeyeto2788

Thanks for reporting this, @yeyeto2788! This is a known issue, but uStreamer doesn't have an active issue for it, so I'll keep this one open. The uStreamer maintainer is working on a fix in the m2m branch.

mtlynch avatar Jan 13 '22 12:01 mtlynch

A similar situation was encountered. ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML. mapping values are not allowed here

The error appears to be in '/var/tmp/tmp.rX0fipeWKZ.yml': line 5, column 15, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

sudo chown tinypilot:tinypilot "${TINYPILOT_SETTINGS}" ustreamer_port: 8001 ^ here

ThomasVon2021 avatar Mar 20 '22 13:03 ThomasVon2021

@ThomasVon2021 - Can you share the exact command you're running that leads to this error?

mtlynch avatar Mar 21 '22 19:03 mtlynch

This should be working now in uStreamer 5.x

mtlynch avatar Nov 01 '22 13:11 mtlynch