[Issue]: Hang on server shutdown #5542

Closed
opened 2026-02-07 01:55:06 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @Bond-009 on GitHub (Mar 26, 2024).

Please describe your bug

Server hangs on shutdown, have to kill it manually

Reproduction Steps

Can't reliably repro at the moment, just starting the server and shutting it down doesn't do the trick

Jellyfin Version

Unstable (master branch)

if other:

No response

Environment

- OS: Debian
- Linux Kernel: 6.1
- Virtualization: /
- Clients: Web, iOS expo
- Browser: Firefox
- FFmpeg Version: Latest jellyfin-ffmpeg
- Playback Method: /
- Hardware Acceleration: vaapi
- GPU Model: /
- Plugins: reports, boxsets
- Reverse Proxy: /
- Base URL: /
- Networking: /
- Storage: /

Jellyfin logs

[10:37:58] [INF] [48] Jellyfin.Networking.PortForwardingHost: Stopping NAT discovery
[10:37:58] [INF] [48] Main: Running query planner optimizations in the database... This might take a while
[10:37:58] [DBG] [26] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled
[10:37:58] [DBG] [62] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled
[10:37:58] [DBG] [57] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled
[10:37:58] [DBG] [59] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled


### FFmpeg logs

_No response_

### Please attach any browser or client logs here

_No response_

### Please attach any screenshots here

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
Originally created by @Bond-009 on GitHub (Mar 26, 2024). ### Please describe your bug Server hangs on shutdown, have to kill it manually ### Reproduction Steps Can't reliably repro at the moment, just starting the server and shutting it down doesn't do the trick ### Jellyfin Version Unstable (master branch) ### if other: _No response_ ### Environment ```markdown - OS: Debian - Linux Kernel: 6.1 - Virtualization: / - Clients: Web, iOS expo - Browser: Firefox - FFmpeg Version: Latest jellyfin-ffmpeg - Playback Method: / - Hardware Acceleration: vaapi - GPU Model: / - Plugins: reports, boxsets - Reverse Proxy: / - Base URL: / - Networking: / - Storage: / ``` ### Jellyfin logs ```shell [10:37:58] [INF] [48] Jellyfin.Networking.PortForwardingHost: Stopping NAT discovery [10:37:58] [INF] [48] Main: Running query planner optimizations in the database... This might take a while [10:37:58] [DBG] [26] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled [10:37:58] [DBG] [62] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled [10:37:58] [DBG] [57] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled [10:37:58] [DBG] [59] Jellyfin.Networking.AutoDiscoveryHost: Broadcast socket operation cancelled ``` ``` ### FFmpeg logs _No response_ ### Please attach any browser or client logs here _No response_ ### Please attach any screenshots here _No response_ ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
OVERLORD added the bugconfirmedregression labels 2026-02-07 01:55:06 +03:00
Author
Owner

@gnattu commented on GitHub (Mar 26, 2024):

I've seen similar issue and the Network Manager keep refreshing the interface during the shutdown.

@gnattu commented on GitHub (Mar 26, 2024): I've seen similar issue and the Network Manager keep refreshing the interface during the shutdown.
Author
Owner

@joshuaboniface commented on GitHub (Mar 26, 2024):

Can also confirm and reproduce reliably using the Restart button.

@joshuaboniface commented on GitHub (Mar 26, 2024): Can also confirm and reproduce reliably using the Restart button.
Author
Owner

@nyanmisaka commented on GitHub (Mar 26, 2024):

Same issue. Can't even stop the console with Ctrl-C.

It hangs on Main: Running query planner optimizations in the database... This might take a while

image

@nyanmisaka commented on GitHub (Mar 26, 2024): Same issue. Can't even stop the console with Ctrl-C. It hangs on `Main: Running query planner optimizations in the database... This might take a while` ![image](https://github.com/jellyfin/jellyfin/assets/14953024/5aa745b7-c1a7-4810-aa1c-ec7ec4663770)
Author
Owner

@felix920506 commented on GitHub (Mar 28, 2024):

Can reproduce with weekly unstable on macOS 13.1 arm64

@felix920506 commented on GitHub (Mar 28, 2024): Can reproduce with weekly unstable on macOS 13.1 arm64
Author
Owner

@JPVenson commented on GitHub (Mar 28, 2024):

Can reproduce with unstable on docker sha256:971953acccf3cc06a130cf552efcbb82d633aea9c2dcfdc1b8b73057167388a6 after using the restart button in dashboard UI

@JPVenson commented on GitHub (Mar 28, 2024): Can reproduce with unstable on docker `sha256:971953acccf3cc06a130cf552efcbb82d633aea9c2dcfdc1b8b73057167388a6` after using the restart button in dashboard UI
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#5542