• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting client request timeout via VPN

     
    • 0 Vote(s) - 0 Average

    client request timeout via VPN

    playback issue for only one client, websocket error
    Putiput
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Germany
    #1
    2025-01-03, 04:22 PM (This post was last modified: 2025-01-03, 04:32 PM by Putiput. Edited 1 time in total.)
    my jellyfin server runs just fine on a raspberry pi 4, i can access it locally and play media and access via a wireguard vpn running on the same pi works as well. Just updated and rebooted the whole thing today.

    I'm trying to give a friend access via the same wireguard server, browsing works fine for him but when trying to play files he gets an error: "Playback Error There was an error processing the request. Please try again later"

    I get some errors in the server log, I've attached the whole log, but the relevant part is probably this:

    [2025-01-03 14:52:14.744 +00:00] [INF] WS "192.168.178.160" request
    [2025-01-03 14:53:21.899 +00:00] [WRN] WS "172.18.0.2" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
    [2025-01-03 14:53:21.902 +00:00] [INF] WS "172.18.0.2" closed
    [2025-01-03 14:53:46.475 +00:00] [WRN] WS "192.168.178.160" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
    [2025-01-03 14:53:46.475 +00:00] [WRN] WS "192.168.178.160" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
    [2025-01-03 14:53:46.475 +00:00] [INF] WS "192.168.178.160" closed
    [2025-01-03 14:53:46.478 +00:00] [INF] WS "192.168.178.160" closed
    [2025-01-03 14:54:03.529 +00:00] [ERR] Error processing request: "Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate". URL "POST" "/Items/13d4a4200ea009e4528c86acab2ec81b/PlaybackInfo".
    [2025-01-03 14:54:16.402 +00:00] [INF] WS "192.168.178.160" closed
    [2025-01-03 14:54:16.922 +00:00] [INF] WS "192.168.178.160" request
    [2025-01-03 15:00:05.477 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
    [2025-01-03 15:00:17.477 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
    [2025-01-03 15:00:29.478 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
    [2025-01-03 15:00:29.478 +00:00] [INF] Lost 1 WebSockets.

    The client is running Linux mint 17 and jellyfin is installed via flatpak, I'm not sure where to find any clientside logs.

    the wireguard config (if relevant) is:

    [Interface]
    PrivateKey = XXXXXXX
    Address = XXXXXX

    [Peer]
    PublicKey = XXXXXX
    PresharedKey = XXXXXX
    AllowedIPs = 192.168.178.146/32
    PersistentKeepalive = 0
    Endpoint = XXXXXXXX

    I've already tried setting persistentkeepalive to 1 and changing the config to route the entire traffic via the vpn, made no difference.
    Not sure what the web socket error means to be honest, any help would be appreciated.
    edit: also tried accessing via web browser, result was the same


    Attached Files
    .txt   logs.txt (Size: 42.08 KB / Downloads: 45)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-01-03, 05:36 PM
    If the server is running on a RPi, why is it successfully transcoding via Intel QSV?

    Code:
    -codec:v:0 h264_qsv

    And the architecture is reported as X64.

    Code:
    [2025-01-03 13:30:54.928 +00:00] [INF] Architecture: X64

    And this looks like a plain deb package install and not a flatpak (which is good).

    Code:
    [2025-01-03 13:28:36.450 +00:00] [INF] Program data path: "/var/lib/jellyfin"
    [2025-01-03 13:28:36.450 +00:00] [INF] Log directory path: "/var/log/jellyfin"
    [2025-01-03 13:28:36.450 +00:00] [INF] Config directory path: "/etc/jellyfin"
    [2025-01-03 13:28:36.450 +00:00] [INF] Cache path: "/var/cache/jellyfin"
    [2025-01-03 13:28:36.450 +00:00] [INF] Temp directory path: "/tmp/jellyfin"
    [2025-01-03 13:28:36.450 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
    [2025-01-03 13:28:36.451 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"

    Having said all that, try changing the AllowedIPs to include the whole subnet.

    Code:
    AllowedIPs = 192.168.178.0/24
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Putiput
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Germany
    #3
    2025-01-03, 06:10 PM
    You're absolutely right, sorry. I kind of forgot I upgraded the whole system a while ago to a mini PC. I could post the stats if that helps, but this issue seems to be only with one client, who has the issue on both his flatpak client and browser.

    Changing the allowedIPs didn't help unfortunately, thanks though. Routing the whole traffic, as in changing AllowedIPs to the default 0.0.0.0 etc didn't help either.

    Does the client save logs somewhere that could help?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-01-03, 07:23 PM
    How far away is your friend from your server? Do you know if there is any packet loss between your server and them?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Putiput
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Germany
    #5
    2025-01-04, 12:59 PM
    my friend is about 600 km away, however i was able to reproduce the issue with my laptop from my parent's place, about 30 km. ping shows no packet loss:
    Code:
    ping -c 20 192.168.178.146                                          (base)
    PING 192.168.178.146 (192.168.178.146) 56(84) bytes of data.
    64 bytes from 192.168.178.146: icmp_seq=1 ttl=63 time=24.0 ms
    64 bytes from 192.168.178.146: icmp_seq=2 ttl=63 time=18.1 ms
    64 bytes from 192.168.178.146: icmp_seq=3 ttl=63 time=22.4 ms
    64 bytes from 192.168.178.146: icmp_seq=4 ttl=63 time=20.5 ms
    64 bytes from 192.168.178.146: icmp_seq=5 ttl=63 time=34.9 ms
    64 bytes from 192.168.178.146: icmp_seq=6 ttl=63 time=20.4 ms
    64 bytes from 192.168.178.146: icmp_seq=7 ttl=63 time=35.4 ms
    64 bytes from 192.168.178.146: icmp_seq=8 ttl=63 time=20.5 ms
    64 bytes from 192.168.178.146: icmp_seq=9 ttl=63 time=77.9 ms
    64 bytes from 192.168.178.146: icmp_seq=10 ttl=63 time=22.2 ms
    64 bytes from 192.168.178.146: icmp_seq=11 ttl=63 time=27.1 ms
    64 bytes from 192.168.178.146: icmp_seq=12 ttl=63 time=17.1 ms
    64 bytes from 192.168.178.146: icmp_seq=13 ttl=63 time=22.7 ms
    64 bytes from 192.168.178.146: icmp_seq=14 ttl=63 time=16.8 ms
    64 bytes from 192.168.178.146: icmp_seq=15 ttl=63 time=21.6 ms
    64 bytes from 192.168.178.146: icmp_seq=16 ttl=63 time=20.7 ms
    64 bytes from 192.168.178.146: icmp_seq=17 ttl=63 time=18.5 ms
    64 bytes from 192.168.178.146: icmp_seq=18 ttl=63 time=20.6 ms
    64 bytes from 192.168.178.146: icmp_seq=19 ttl=63 time=20.5 ms
    64 bytes from 192.168.178.146: icmp_seq=20 ttl=63 time=20.5 ms

    --- 192.168.178.146 ping statistics ---
    20 packets transmitted, 20 received, 0% packet loss, time 19092ms
    rtt min/avg/max/mdev = 16.846/25.125/77.874/13.034 ms

    this is the output of traceroute:
    Code:
    traceroute to 192.168.178.146 (192.168.178.146), 30 hops max, 60 byte packets
    1  * * *
    2  192.168.178.146 (192.168.178.146)  19.824 ms  19.763 ms  19.759 ms
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-01-04, 07:21 PM
    What happens when you configure jellyfin to bind to a specific address?

    Dashboard > Networking > Bind to local address > 192.168.178.146
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Putiput
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Germany
    #7
    2025-01-05, 08:44 PM
    I've most likely resolved the issue, thanks for your help. it was an issue with DNS, adding the line DNS = 1.1.1.1 to [Interface] and adding 1.1.1.1/32 to AllowedIPS like this:
    Code:
    [Interface]
    PrivateKey = XXXXXXXXXXXX
    Address = 10.8.0.4/24
    DNS = 1.1.1.1

    [Peer]
    PublicKey = XXXXXXXXXXXX
    PresharedKey = XXXXXXXXXXXXX
    AllowedIPs = 192.168.178.146/32, 1.1.1.1/32
    PersistentKeepalive = 25
    Endpoint = XXXXXXXXX

    works for at least one client. the other one has issues starting wireguard with this config but that is unrelated to jellyfin.
    thanks again Smiling-face
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode