jellyfin-media-player icon indicating copy to clipboard operation
jellyfin-media-player copied to clipboard

Saving the Logs settings in the dashboard fails and refreshes the page instead

Open zjeffer opened this issue 1 year ago • 0 comments

Describe the bug

I can't change settings on the Logs page. If I click save, the page simply refreshes and is back to the old logs. Saving works fine when doing it in the browser.

To Reproduce

  1. Go to the Logs page in the dashboard
  2. Change one of the settings
  3. Click save

Expected behavior

The settings save and a popup at the bottom left shows something like "Settings saved".

Screenshots

https://github.com/jellyfin/jellyfin-media-player/assets/4633209/6721a204-4cd7-4eac-be3f-d4c275fbce70

As you can see in the video, saving does work on other pages like the DLNA settings.

Logs

Here is what happens in the jellyfinmediaplayer logs at the moment I click the Save button: jellyfinmediaplayer.log The first lines might be interesting:

2023-11-05 00:16:53.613 [info] SystemComponent::info @ 184 - JS: Requesting https://example.com/System/Configuration
2023-11-05 00:16:53.615 [debug] onLoadingChanged @ 181 - WebEngineLoadRequest starting: file:///usr/share/jellyfinmediaplayer/web-client/desktop/index.html?#!/log.html
2023-11-05 00:16:53.619 [info] SystemComponent::info @ 184 - JS: fetchWithTimeout: timed out connecting to url: http://172.25.0.3:8096/system/info/public
2023-11-05 00:16:53.619 [info] SystemComponent::info @ 184 - JS: ConnectionManager request failed to url: http://172.25.0.3:8096/system/info/public
2023-11-05 00:16:53.619 [info] SystemComponent::info @ 184 - JS: Reconnect failed to http://172.25.0.3:8096
2023-11-05 00:16:53.620 [info] SystemComponent::info @ 184 - JS: Request failed to https://example.com/System/Configuration TypeError: Failed to fetch
2023-11-05 00:16:53.620 [info] SystemComponent::info @ 184 - JS: Attempting reconnection
2023-11-05 00:16:53.620 [info] SystemComponent::info @ 184 - JS: tryReconnect: http://172.25.0.3:8096|https://example.com
2023-11-05 00:16:53.750 [info] SystemComponent::info @ 184 - JS: setting page base to /usr/share/jellyfinmediaplayer/web-client/desktop
2023-11-05 00:16:53.753 [info] SystemComponent::info @ 184 - JS: Stored JSON credentials: {"Servers":[{"ManualAddress":"https://example.com","LastConnectionMode":2,"Name":"raspberrypi","Id":"2d1f38d35531460091b052786cdf5faa","LocalAddress":"http://172.25.0.3:8096","DateLastAccessed":1699139800749,"AccessToken":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","UserId":"f42fc55cc75741e5b86c1e04e14fed79","ExchangeToken":null}]}
2023-11-05 00:16:53.754 [info] SystemComponent::info @ 184 - JS: Begin ConnectionManager constructor

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version: jellyfinmediaplayer 1.8.1, server runs 10.8.11
  • Installation Method: AUR

Additional context

Running Jellyfin on a Raspberry Pi through docker with Caddy as a reverse proxy.

My docker-compose file:

version: '3.5'
services:
  jellyfin:
    image: linuxserver/jellyfin
    container_name: jellyfin
    ports:
      - "8096:8096"
      - "8920:8920"
    networks:
      - proxy
    volumes:
      - jellyfin-config:/config
      - jellyfin-cache:/cache
      - /media/pi/Elements:/media
    restart: 'unless-stopped'
    environment:
      - TZ=Europe/Brussels
  
  caddy:
    image: caddy
    container_name: caddy
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    networks:
      - "proxy"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
      - caddy_config:/config

networks:
  proxy:
    driver: bridge

volumes:
  jellyfin-config:
  jellyfin-cache:
  caddy_data:
  caddy_config:

zjeffer avatar Nov 04 '23 23:11 zjeffer