No internet connection
  1. Home
  2. Technical Support

Tiny pilot KVM lagging alot

By Saad Ahmed Khan @sak4062
    2024-11-13 19:49:19.020Zassigned to
    • @david

    Hi Team,

    I configured the TinyPilot a week ago, and it worked smoothly without any lag on the first day. However, since last Thursday, it has been experiencing significant lag when accessed both from the local IP address and from other IPs. I’ve had to reboot it multiple times to keep it running. Could you please suggest the best solution to fix this issue?

    Regards,

    • 5 replies
    1. David @david2024-11-14 12:15:23.122Z

      Hi @sak4062, I'm sorry your TinyPilot is lagging.

      Could you share a TinyPilot log for me to review? On your TinyPilot web interface, go to System > Logs and click Get Shareable URL. Then paste the link in your reply.

      And can you tell me whether you're using a third-party service to access your TinyPilot over the Internet (like Tailscale)?

      In the meantime, our FAQ lists some ways you can improve latency by adjusting some settings, like switching to H.264 video and adjusting other video settings.

      Please let me know if you have any questions.

      1. S
        In reply tosak4062:
        Saad Ahmed Khan @sak4062
          2024-11-18 05:49:15.431Z

          Hi @david, Please use this URL for logs https://logs.tinypilotkvm.com/iriiXl6c and i have tried connecting the Tiny Pilot with Local IP and over the internet both have same latency issues. i can reduce the bits to 5.

          1. David @david2024-11-18 12:10:43.018Z

            Thanks for sharing those details and that complete log, @sak4062.

            Your new log suggests that your TinyPilot cannot establish a H.264 connection, so it falls back to MJPEG video streaming. This likely explains why you're noticing latency since MJPEG is less efficient than H.264.

            It looks like you've already configured a STUN server, but there's still this connection issue. Could you try selecting a different STUN server (GMX) to see if that helps your device establish the connection it needs for H.264 streaming?

            Please let me know if you have any questions.

          2. Progress
            with handling this problem
          3. S
            Saad Ahmed Khan @sak4062
              2024-11-15 14:28:05.514Z

              Hi,

              As the video setting was already at H.264 and once its lagging on rebooting it shows the other video option with a alert signal and nothing works, please find below the logs

              Nov 15 13:26:59 tinypilot systemd[1]: Started TinyPilot - RPi-based virtual KVM.
              Nov 15 13:27:01 tinypilot python[539]: 2024-11-15 13:27:01.534 __main__        INFO Starting app
              Nov 15 13:27:26 tinypilot python[539]: 2024-11-15 13:27:26.980 db.store        INFO Loading database migrations from /opt/tinypilot/app/db/migrations/*.sql
              Nov 15 13:27:26 tinypilot python[539]: 2024-11-15 13:27:26.990 db.store        INFO Read 7 database migrations from disk
              Nov 15 13:27:27 tinypilot python[539]: 2024-11-15 13:27:27.019 socket_api      INFO Client ZWEKszrXV_7fO0cUAAAB connected
              Nov 15 13:41:19 tinypilot python[539]: 2024-11-15 13:41:19.512 socket_api      INFO Client ZWEKszrXV_7fO0cUAAAB disconnected
              Nov 15 13:41:26 tinypilot python[539]: 2024-11-15 13:41:26.065 socket_api      INFO Client -iCXl5BkfRp5t2syAAAD connected
              Nov 15 13:42:21 tinypilot python[539]: 2024-11-15 13:42:21.745 socket_api      INFO Client -iCXl5BkfRp5t2syAAAD disconnected
              Nov 15 13:42:30 tinypilot python[539]: 2024-11-15 13:42:30.959 socket_api      INFO Client ZV3-RQgvGjbKYNjPAAAF connected
              Nov 15 13:43:38 tinypilot python[539]: 2024-11-15 13:43:38.504 socket_api      INFO Client ZV3-RQgvGjbKYNjPAAAF disconnected
              Nov 15 13:43:55 tinypilot python[539]: 2024-11-15 13:43:55.102 socket_api      INFO Client gxaHOSDHX6dVjHHlAAAH connected
              Nov 15 13:47:32 tinypilot python[539]: 2024-11-15 13:47:32.027 socket_api      INFO Client gxaHOSDHX6dVjHHlAAAH disconnected
              Nov 15 13:47:46 tinypilot python[539]: 2024-11-15 13:47:46.234 socket_api      INFO Client 3D1ye10fxvcuSkO6AAAJ connected
              Nov 15 13:48:01 tinypilot python[539]: 2024-11-15 13:48:01.174 socket_api      INFO Client 3D1ye10fxvcuSkO6AAAJ disconnected
              Nov 15 13:48:17 tinypilot python[539]: 2024-11-15 13:48:17.600 socket_api      INFO Client GKkF4DDtzLctFVpcAAAL connected
              Nov 15 13:51:33 tinypilot python[539]: 2024-11-15 13:51:33.349 video_service   INFO Triggering ustreamer restart...
              Nov 15 13:51:33 tinypilot sudo[1314]: tinypilot : PWD=/opt/tinypilot ; USER=root ; COMMAND=/usr/sbin/service ustreamer restart
              Nov 15 13:51:33 tinypilot sudo[1314]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=111)
              Nov 15 13:51:33 tinypilot sudo[1314]: pam_unix(sudo:session): session closed for user root
              Nov 15 13:51:33 tinypilot python[539]: 2024-11-15 13:51:33.522 video_service   INFO Successfully restarted ustreamer
              Nov 15 13:51:34 tinypilot python[539]: 2024-11-15 13:51:34.348 socket_api      INFO Client GKkF4DDtzLctFVpcAAAL disconnected
              Nov 15 13:51:53 tinypilot python[539]: 2024-11-15 13:51:53.666 socket_api      INFO Client sXdjC65HWLdUB9u7AAAN connected
              Nov 15 13:52:17 tinypilot python[539]: 2024-11-15 13:52:17.301 video_service   INFO Triggering ustreamer restart...
              Nov 15 13:52:17 tinypilot sudo[1404]: tinypilot : PWD=/opt/tinypilot ; USER=root ; COMMAND=/usr/sbin/service ustreamer restart
              Nov 15 13:52:17 tinypilot sudo[1404]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=111)
              Nov 15 13:52:17 tinypilot sudo[1404]: pam_unix(sudo:session): session closed for user root
              Nov 15 13:52:17 tinypilot python[539]: 2024-11-15 13:52:17.507 video_service   INFO Successfully restarted ustreamer
              Nov 15 13:52:17 tinypilot python[539]: 2024-11-15 13:52:17.509 video_service   INFO Writing janus configuration...
              Nov 15 13:52:17 tinypilot sudo[1414]: tinypilot : PWD=/opt/tinypilot ; USER=root ; COMMAND=/opt/tinypilot-privileged/scripts/configure-janus
              Nov 15 13:52:17 tinypilot sudo[1414]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=111)
              Nov 15 13:52:17 tinypilot runuser[1426]: pam_unix(runuser:session): session opened for user tinypilot(uid=111) by (uid=0)
              Nov 15 13:52:18 tinypilot runuser[1426]: pam_unix(runuser:session): session closed for user tinypilot
              Nov 15 13:52:18 tinypilot sudo[1414]: pam_unix(sudo:session): session closed for user root
              Nov 15 13:52:18 tinypilot python[539]: 2024-11-15 13:52:18.644 video_service   INFO Triggering janus restart...
              Nov 15 13:52:18 tinypilot sudo[1496]: tinypilot : PWD=/opt/tinypilot ; USER=root ; COMMAND=/usr/sbin/service janus restart
              Nov 15 13:52:18 tinypilot sudo[1496]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=111)
              Nov 15 13:52:19 tinypilot sudo[1496]: pam_unix(sudo:session): session closed for user root
              Nov 15 13:52:19 tinypilot python[539]: 2024-11-15 13:52:19.181 video_service   INFO Successfully restarted janus
              Nov 15 13:52:20 tinypilot python[539]: 2024-11-15 13:52:20.009 socket_api      INFO Client sXdjC65HWLdUB9u7AAAN disconnected
              Nov 15 13:52:36 tinypilot python[539]: 2024-11-15 13:52:36.888 socket_api      INFO Client xk9yAi0LUQZzf3ilAAAP connected
              Nov 15 13:53:22 tinypilot python[539]: 2024-11-15 13:53:22.062 socket_api      INFO Client xk9yAi0LUQZzf3ilAAAP disconnected
              Nov 15 13:55:30 tinypilot python[539]: 2024-11-15 13:55:30.263 socket_api      INFO Client Ipst9fmKRSyhQwt2AAAT connected
              Nov 15 14:09:48 tinypilot python[539]: 2024-11-15 14:09:48.802 socket_api      INFO Client z_HmYqfxB3nw6JxHAAAV connected
              Nov 15 14:10:36 tinypilot python[539]: 2024-11-15 14:10:36.411 socket_api      INFO Client z_HmYqfxB3nw6JxHAAAV disconnected
              Nov 15 14:10:40 tinypilot python[539]: 2024-11-15 14:10:40.741 socket_api      INFO Client 0CmRiwrNPKo2lQhVAAAX connected
              Nov 15 14:16:30 tinypilot python[539]: 2024-11-15 14:16:30.321 socket_api      INFO Client Ipst9fmKRSyhQwt2AAAT disconnected
              Nov 15 14:16:31 tinypilot python[539]: 2024-11-15 14:16:31.780 socket_api      INFO Client 0CmRiwrNPKo2lQhVAAAX disconnected
              Nov 15 14:16:56 tinypilot python[539]: 2024-11-15 14:16:56.713 socket_api      INFO Client necyihMLKBrewzC8AAAa connected
              Nov 15 14:16:56 tinypilot python[539]: 2024-11-15 14:16:56.720 socket_api      INFO Client gWooa_tRt3g16FjsAAAb connected
              Nov 15 14:19:12 tinypilot python[539]: 2024-11-15 14:19:12.689 socket_api      INFO Client gWooa_tRt3g16FjsAAAb disconnected
              Nov 15 14:19:22 tinypilot python[539]: 2024-11-15 14:19:22.317 socket_api      INFO Client MCVRjKMtfMWQKSBAAAAd connected
              Nov 15 14:20:10 tinypilot python[539]: 2024-11-15 14:20:10.158 socket_api      INFO Client MCVRjKMtfMWQKSBAAAAd disconnected
              Nov 15 14:20:12 tinypilot python[539]: 2024-11-15 14:20:12.821 socket_api      INFO Client necyihMLKBrewzC8AAAa disconnected
              Nov 15 14:21:29 tinypilot python[539]: 2024-11-15 14:21:29.983 socket_api      INFO Client -rjg5p7ZZ0yulVYdAAAf connected
              Nov 15 14:21:34 tinypilot python[539]: 2024-11-15 14:21:34.417 socket_api      INFO Client 6fTKh4rWcHJ7Ni-iAAAh connected
              Nov 15 14:22:15 tinypilot python[539]: 2024-11-15 14:22:15.887 socket_api      INFO Client -rjg5p7ZZ0yulVYdAAAf disconnected
              Nov 15 14:22:30 tinypilot python[539]: 2024-11-15 14:22:30.517 socket_api      INFO Client 6fTKh4rWcHJ7Ni-iAAAh disconnected
              Nov 15 14:22:52 tinypilot python[539]: 2024-11-15 14:22:52.156 socket_api      INFO Client 6fBvypTOpYqZn3Q6AAAj connected
              Nov 15 14:23:20 tinypilot python[539]: 2024-11-15 14:23:20.937 socket_api      INFO Client meWVOhsrOf9rbK2MAAAm connected
              Nov 15 14:24:02 tinypilot python[539]: 2024-11-15 14:24:02.106 socket_api      INFO Client 6fBvypTOpYqZn3Q6AAAj disconnected
              Nov 15 14:24:05 tinypilot python[539]: 2024-11-15 14:24:05.377 socket_api      INFO Client meWVOhsrOf9rbK2MAAAm disconnected
              Nov 15 14:24:19 tinypilot python[539]: 2024-11-15 14:24:19.853 socket_api      INFO Client jacIQay81CL7XY8cAAAp connected
              Nov 15 14:24:52 tinypilot python[539]: 2024-11-15 14:24:52.305 socket_api      INFO Client jacIQay81CL7XY8cAAAp disconnected
              Nov 15 14:25:19 tinypilot python[539]: 2024-11-15 14:25:19.531 socket_api      INFO Client TyXD0l_9iVMDleWyAAAs connected
              Nov 15 14:25:28 tinypilot python[539]: 2024-11-15 14:25:28.534 socket_api      INFO Client H4XgX7LWb1WOm2cmAAAu connected
              Nov 15 14:25:32 tinypilot sudo[2925]: tinypilot : PWD=/opt/tinypilot ; USER=root ; COMMAND=/opt/tinypilot-privileged/scripts/collect-debug-logs -q
              Nov 15 14:25:32 tinypilot sudo[2925]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=111)
              Nov 15 14:25:33 tinypilot runuser[2940]: pam_unix(runuser:session): session opened for user tinypilot(uid=111) by (uid=0)
              Nov 15 14:25:33 tinypilot runuser[2940]: pam_unix(runuser:session): session closed for user tinypilot
              Nov 15 14:25:33 tinypilot runuser[2947]: pam_unix(runuser:session): session opened for user tinypilot(uid=111) by (uid=0)
              Nov 15 14:25:33 tinypilot runuser[2947]: pam_unix(runuser:session): session closed for user tinypilot
              Nov 15 14:25:33 tinypilot runuser[2956]: pam_unix(runuser:session): session opened for user tinypilot(uid=111) by (uid=0)
              Nov 15 14:25:35 tinypilot python[2963]: 2024-11-15 14:25:35.650 app.main        INFO Starting app
              Nov 15 14:25:35 tinypilot python[2963]: 2024-11-15 14:25:35.753 db.store        INFO Loading database migrations from /opt/tinypilot/app/db/migrations/*.sql
              Nov 15 14:25:35 tinypilot python[2963]: 2024-11-15 14:25:35.755 db.store        INFO Read 7 database migrations from disk
              Nov 15 14:25:36 tinypilot runuser[2956]: pam_unix(runuser:session): session closed for user tinypilot
              
              TinyPilot update logs
              
              uStreamer configuration
              ==> /opt/ustreamer-launcher/configs.d/000-defaults.yml <==
              # Settings for TC358743 HDMI to CSI-2 bridge, which are included on the
              # TinyPilot Voyager series of devices.
              ---
              ustreamer_encoder: m2m-image
              ustreamer_format: uyvy
              ustreamer_use_dv_timings: true
              ustreamer_workers: "3"
              ustreamer_drop_same_frames: "30"
              
              ==> /opt/ustreamer-launcher/configs.d/100-tinypilot.yml <==
              janus_stun_port: 19302
              janus_stun_server: stun.l.google.com
              ustreamer_h264_bitrate: 15500
              
              uStreamer logs
              Nov 15 13:54:43 tinypilot launch[1408]: -- INFO  [1465.972    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:09:49 tinypilot launch[1408]: -- INFO  [2371.946      http] -- HTTP: NEW client (now=1): [100.66.176.127]:40950, id=a239bb910ce6d57d
              Nov 15 14:10:08 tinypilot launch[1408]: -- INFO  [2391.349    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:08 tinypilot launch[1408]: -- INFO  [2391.416    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:09 tinypilot launch[1408]: -- INFO  [2392.578      http] -- HTTP: DEL client (now=0): [100.66.176.127]:40950, id=a239bb910ce6d57d, Connection reset by peer (writing,error)
              Nov 15 14:10:12 tinypilot launch[1408]: -- INFO  [2395.883    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:13 tinypilot launch[1408]: -- INFO  [2395.950    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:15 tinypilot launch[1408]: -- INFO  [2398.916    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:16 tinypilot launch[1408]: -- INFO  [2398.983    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:16 tinypilot launch[1408]: -- INFO  [2399.150    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:16 tinypilot launch[1408]: -- INFO  [2399.216    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:20 tinypilot launch[1408]: -- INFO  [2403.883    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:21 tinypilot launch[1408]: -- INFO  [2403.950    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:27 tinypilot launch[1408]: -- INFO  [2410.750    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:27 tinypilot launch[1408]: -- INFO  [2410.816    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:30 tinypilot launch[1408]: -- INFO  [2413.483    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:30 tinypilot launch[1408]: -- INFO  [2413.550    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:40 tinypilot launch[1408]: -- INFO  [2423.288      http] -- HTTP: NEW client (now=1): [100.66.176.127]:55054, id=fb708cd52e43234f
              Nov 15 14:10:57 tinypilot launch[1408]: -- INFO  [2440.617    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:57 tinypilot launch[1408]: -- INFO  [2440.817    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:10:57 tinypilot launch[1408]: -- INFO  [2440.884    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:00 tinypilot launch[1408]: -- INFO  [2443.409      http] -- HTTP: DEL client (now=0): [100.66.176.127]:55054, id=fb708cd52e43234f, Connection reset by peer (reading,error)
              Nov 15 14:11:03 tinypilot launch[1408]: -- INFO  [2446.884    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:04 tinypilot launch[1408]: -- INFO  [2446.953    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:04 tinypilot launch[1408]: -- INFO  [2447.084    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:04 tinypilot launch[1408]: -- INFO  [2447.150    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:12 tinypilot launch[1408]: -- INFO  [2455.251    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:12 tinypilot launch[1408]: -- INFO  [2455.317    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:12 tinypilot launch[1408]: -- INFO  [2455.484    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:12 tinypilot launch[1408]: -- INFO  [2455.551    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:36 tinypilot launch[1408]: -- INFO  [2478.985    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:36 tinypilot launch[1408]: -- INFO  [2479.051    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:37 tinypilot launch[1408]: -- INFO  [2480.385    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:11:37 tinypilot launch[1408]: -- INFO  [2480.451    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:11 tinypilot launch[1408]: -- INFO  [2514.818    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:11 tinypilot launch[1408]: -- INFO  [2514.885    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:15 tinypilot launch[1408]: -- INFO  [2518.085    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:15 tinypilot launch[1408]: -- INFO  [2518.152    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:43 tinypilot launch[1408]: -- INFO  [2546.286    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:12:43 tinypilot launch[1408]: -- INFO  [2546.352    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:00 tinypilot launch[1408]: -- INFO  [2563.353    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:00 tinypilot launch[1408]: -- INFO  [2563.426    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:00 tinypilot launch[1408]: -- INFO  [2563.586    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:00 tinypilot launch[1408]: -- INFO  [2563.653    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:05 tinypilot launch[1408]: -- INFO  [2568.086    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:05 tinypilot launch[1408]: -- INFO  [2568.153    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:05 tinypilot launch[1408]: -- INFO  [2568.353    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:05 tinypilot launch[1408]: -- INFO  [2568.419    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:26 tinypilot launch[1408]: -- INFO  [2589.486    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:26 tinypilot launch[1408]: -- INFO  [2589.686    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:26 tinypilot launch[1408]: -- INFO  [2589.753    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:31 tinypilot launch[1408]: -- INFO  [2594.220    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:31 tinypilot launch[1408]: -- INFO  [2594.287    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:34 tinypilot launch[1408]: -- INFO  [2597.153    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:34 tinypilot launch[1408]: -- INFO  [2597.220    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:36 tinypilot launch[1408]: -- INFO  [2599.820    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:13:36 tinypilot launch[1408]: -- INFO  [2599.887    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:00 tinypilot launch[1408]: -- INFO  [2623.187    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:00 tinypilot launch[1408]: -- INFO  [2623.258    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:10 tinypilot launch[1408]: -- INFO  [2633.326    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:10 tinypilot launch[1408]: -- INFO  [2633.554    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:10 tinypilot launch[1408]: -- INFO  [2633.621    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:14 tinypilot launch[1408]: -- INFO  [2637.587    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:14 tinypilot launch[1408]: -- INFO  [2637.654    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:26 tinypilot launch[1408]: -- INFO  [2649.054    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:26 tinypilot launch[1408]: -- INFO  [2649.121    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:30 tinypilot launch[1408]: -- INFO  [2653.054    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:14:30 tinypilot launch[1408]: -- INFO  [2653.122    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:15:05 tinypilot launch[1408]: -- INFO  [2688.888    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:15:06 tinypilot launch[1408]: -- INFO  [2688.958    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:16:03 tinypilot launch[1408]: -- INFO  [2746.022    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:16:05 tinypilot launch[1408]: -- INFO  [2747.956    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:16:05 tinypilot launch[1408]: -- INFO  [2748.022    stream] -- H264: Requested keyframe by a sink client
              Nov 15 14:19:22 tinypilot launch[1408]: -- INFO  [2944.988      http] -- HTTP: NEW client (now=1): [100.66.176.127]:40210, id=cfe07d46afd92a19
              Nov 15 14:20:46 tinypilot launch[1408]: -- INFO  [3029.886      http] -- HTTP: DEL client (now=0): [100.66.176.127]:40210, id=cfe07d46afd92a19, Connection reset by peer (writing,error)
              Nov 15 14:21:33 tinypilot launch[1408]: -- INFO  [3076.804      http] -- HTTP: NEW client (now=1): [100.66.176.127]:38520, id=5420db288e0a6bb9
              Nov 15 14:23:20 tinypilot launch[1408]: -- INFO  [3183.541      http] -- HTTP: NEW client (now=2): [100.66.176.127]:42136, id=1e912f358d342338
              Nov 15 14:23:52 tinypilot launch[1408]: -- INFO  [3215.136      http] -- HTTP: DEL client (now=1): [100.66.176.127]:38520, id=5420db288e0a6bb9, Connection reset by peer (writing,error)
              Nov 15 14:24:51 tinypilot launch[1408]: -- INFO  [3274.871      http] -- HTTP: DEL client (now=0): [100.66.176.127]:42136, id=1e912f358d342338, Connection reset by peer (writing,error)
              Nov 15 14:25:28 tinypilot launch[1408]: -- INFO  [3311.067      http] -- HTTP: NEW client (now=1): [100.66.176.127]:38306, id=b67def88411c1035
              
              nginx logs
              -- Journal begins at Fri 2024-11-15 13:17:01 GMT, ends at Fri 2024-11-15 14:25:36 GMT. --
              Nov 15 13:26:57 tinypilot systemd[1]: Starting A high performance web server and a reverse proxy server...
              Nov 15 13:26:59 tinypilot systemd[1]: Started A high performance web server and a reverse proxy server.
              
              
              2024/11/15 13:31:12 [error] 535#535: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              2024/11/15 13:41:25 [error] 536#536: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              2024/11/15 13:42:30 [error] 535#535: *46 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              2024/11/15 13:43:54 [error] 535#535: *87 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              2024/11/15 13:47:46 [error] 535#535: *113 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              2024/11/15 13:48:17 [error] 535#535: *139 connect() failed (111: Connection refused) while connecting to upstream, client: 100.66.141.59, server: tinypilot, request: "GET /stream?advance_headers=1 HTTP/1.1", upstream: "http://127.0.0.1:48001/stream?advance_headers=1", host: "100.65.38.84", referrer: "http://100.65.38.84/"
              
              
              100.66.176.127 - - [15/Nov/2024:14:25:19 +0000] "GET /js/clipboard.js HTTP/1.1" 200 889 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.141.59 - - [15/Nov/2024:14:25:19 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDj8r&sid=TWVp05Ou1-Ir7MTKAAAq HTTP/1.1" 200 32 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:20 +0000] "GET /js/wake-on-lan.js HTTP/1.1" 200 551 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:20 +0000] "GET /js/mouse.js HTTP/1.1" 200 8581 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:20 +0000] "GET /js/touch.js HTTP/1.1" 200 4453 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:20 +0000] "GET /js/updatelogs.js HTTP/1.1" 200 861 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.141.59 - - [15/Nov/2024:14:25:20 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDjJd&sid=TWVp05Ou1-Ir7MTKAAAq HTTP/1.1" 200 1 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:21 +0000] "GET /third-party/fonts/overpass-light.woff2 HTTP/1.1" 200 26568 "http://100.65.38.84/third-party/fonts/fonts.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:22 +0000] "GET /third-party/socket.io/4.7.1/socket.io.min.js HTTP/1.1" 200 48593 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:22 +0000] "GET /js/app.js HTTP/1.1" 200 14833 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:22 +0000] "GET /third-party/webrtc-adapter/8.1.1/adapter.min.js HTTP/1.1" 200 59549 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:23 +0000] "GET /js/webrtc-video.js HTTP/1.1" 200 7675 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:25 +0000] "GET /js/keyboardstate.js HTTP/1.1" 200 3122 "http://100.65.38.84/js/app.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:25 +0000] "GET /js/keystrokes.js HTTP/1.1" 200 362 "http://100.65.38.84/js/app.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:25 +0000] "GET /js/overlays.js HTTP/1.1" 200 495 "http://100.65.38.84/js/app.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:26 +0000] "GET /third-party/janus-gateway/1.0.0/janus.js HTTP/1.1" 200 134759 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /third-party/fonts/overpass-mono-light.woff2 HTTP/1.1" 200 50112 "http://100.65.38.84/third-party/fonts/fonts.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /css/toggle.css HTTP/1.1" 200 1005 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /img/clipboard-icon.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /img/logo.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /img/angle-down-icon.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /img/video-stream-icon.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:27 +0000] "GET /third-party/fonts/overpass-semibold.woff2 HTTP/1.1" 200 25032 "http://100.65.38.84/third-party/fonts/fonts.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:28 +0000] "GET /img/external-link-icon.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:28 +0000] "GET /img/warning-icon.svg HTTP/1.1" 304 5 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:28 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDkox HTTP/1.1" 200 97 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:28 +0000] "POST /socket.io/?EIO=4&transport=polling&t=PCmDl1j&sid=-Qa58fwHuc1i1PA_AAAt HTTP/1.1" 200 2 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:28 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDl1k&sid=-Qa58fwHuc1i1PA_AAAt HTTP/1.1" 200 32 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:29 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDlCI&sid=-Qa58fwHuc1i1PA_AAAt HTTP/1.1" 200 1 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              100.66.176.127 - - [15/Nov/2024:14:25:30 +0000] "GET /socket.io/?EIO=4&transport=polling&t=PCmDlUY&sid=-Qa58fwHuc1i1PA_AAAt HTTP/1.1" 200 1 "http://100.65.38.84/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
              
              
              1. David @david2024-11-15 15:19:52.029Zreplies tosak4062:

                Thanks for sharing that log @sak4062 - it looks like a little bit of the log has been cut off at the top. Do you happen to have a link to the full log? If you click "Get Shareable URL" on the log interface, you can copy and paste the URL in a reply.

                Can you tell me whether you're connecting to your TinyPilot over the local network or remotely over the Internet?

                Could you try selecting a different STUN server to see if that helps maintain the H.264 connection? You may also be able to improve latency here by reducing the H.264 bitrate from 15.5 to about 5.0mbps.

                Please let me know if you have any questions.