this post was submitted on 18 Sep 2024
28 points (100.0% liked)

Jellyfin

229 readers
1 users here now

founded 2 years ago
MODERATORS
 

I started the scan for my movie collection (roughly 140 movies) on my Raspberry Pi 3B. It has become unresponsive and I can't ssh in now. It seems to be due to all the ffmpeg instances. I have two questions:

Should I wait for an hour or should I just reboot the server? Also, is there a way to disable the setting for chapter images from the web UI? I can't find it in the setting.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 5 months ago* (last edited 5 months ago) (8 children)

If you use some kind of virtualisation and/or containerisation then you can limit ram and/or cpu usage. This can of course greatly reduce lockups if not eliminate them.

Edit: I only now read it's a Pi 3B. Not sure if hosting Jellyfin on that device is a good idea... If you insist though, consider running an LXC inbetween and limit it to three cores. That should leave one core available for the system so the system doesn't lock up again.

[–] FarraigePlaisteach 5 points 5 months ago (7 children)

Thanks so much. Sound like I need to learn a bit more about docker. That's how I installed it.

[–] [email protected] 7 points 5 months ago* (last edited 5 months ago) (6 children)

In case you ran it using a docker run command, read this. Otherwise if you use compose, try something similar to the following:

services:
  service:
    image: nginx
    deploy:
      resources:
        limits:
          cpus: '3'
          memory: 512M
        reservations:
          cpus: '0.25'
          memory: 128M
    cpuset: "1"
    ports:
      - "80:80"

source

[–] FarraigePlaisteach 4 points 5 months ago (1 children)

I'm using docker compose. Thank you so much, this is fantastic!

[–] [email protected] 5 points 5 months ago (1 children)

I have no idea what your experience level is, so I'm saying this just to make sure: DON'T copy this verbatim. The resources bit is what you'd need to adapt into your own compose file. If you have questions, feel free to ask 👍

[–] FarraigePlaisteach 2 points 5 months ago

Noted, thank you. I'll look into it a bit more and come back if I have questions. I appreciate it!

load more comments (4 replies)
load more comments (4 replies)
load more comments (4 replies)