Raspberry PI 1 B Model Issues with Media Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Shiivu
Posts: 5
Joined: Fri Nov 13, 2020 12:06 am

Raspberry PI 1 B Model Issues with Media

Post by Shiivu »

So I tried to install Plex, I know its not supported due to being weak but I was only gonna stream music so I thought id try it anyway but well I got an error halting its launch. So I decided id give Jellyfin ago as thats seems to be supported still howeverI get this error.

jellyfin.service - Jellyfin Media Server
Loaded: loaded (/lib/systemd/system/jellyfin.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/jellyfin.service.d
└─jellyfin.service.conf
Active: failed (Result: signal) since Thu 2020-11-12 22:57:24 GMT; 5s ago
Process: 454 ExecStart=/usr/bin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} (code=killed, signal=SEGV)
Main PID: 454 (code=killed, signal=SEGV)

Nov 12 22:57:24 DietPi systemd[1]: jellyfin.service: Service RestartSec=100ms expired, scheduling restart.
Nov 12 22:57:24 DietPi systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Nov 12 22:57:24 DietPi systemd[1]: Stopped Jellyfin Media Server.
Nov 12 22:57:24 DietPi systemd[1]: jellyfin.service: Start request repeated too quickly.
Nov 12 22:57:24 DietPi systemd[1]: jellyfin.service: Failed with result 'signal'.
Nov 12 22:57:24 DietPi systemd[1]: Failed to start Jellyfin Media Server.

I have no clue why? If anyone would be able to help id really appriciate it. As all I want to do is stream my music to me while im out without having to leave my pc on :D
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Joulinar »

Hi,

can you have a look to jellyfin log file located at /var/log/jellyfin. Maybe there are some information why service is not starting.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Shiivu
Posts: 5
Joined: Fri Nov 13, 2020 12:06 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Shiivu »

Thanks for the quick reply how would I got about grabbing this from my PI? I tried to just take the SD card out and put in my pc but cant find it. Is there a command to grab it or something?
Shiivu
Posts: 5
Joined: Fri Nov 13, 2020 12:06 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Shiivu »

Joulinar wrote: Fri Nov 13, 2020 9:26 am Hi,

can you have a look to jellyfin log file located at /var/log/jellyfin. Maybe there are some information why service is not starting.
So going through the files to /var/log/jellyfin There is absolutley nothing there. I changed the log system to full and still nothing so I dont think its staying on enough to even log.
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Joulinar »

let's restart the service (even if it fails) and check journal

Code: Select all

systemctl restart jellyfin.service
journalctl -u jellyfin.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Shiivu
Posts: 5
Joined: Fri Nov 13, 2020 12:06 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Shiivu »

Joulinar wrote: Fri Nov 13, 2020 9:58 pm let's restart the service (even if it fails) and check journal

Code: Select all

systemctl restart jellyfin.service
journalctl -u jellyfin.service
Ran it as u said and i copied all the text from the console into a txt file for ya.
Attachments
Jellyfin Log file.txt
(5.86 KiB) Downloaded 7 times
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Joulinar »

ok let's try to have it started manually

Code: Select all

cd /mnt/dietpi_userdata
sudo -u jellyfin /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
if all goes well, you should see the server log passing by
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Shiivu
Posts: 5
Joined: Fri Nov 13, 2020 12:06 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Shiivu »

Joulinar wrote: Sat Nov 14, 2020 1:40 am ok let's try to have it started manually

Code: Select all

cd /mnt/dietpi_userdata
sudo -u jellyfin /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
if all goes well, you should see the server log passing by
Thanks for reply, Put that straight in and came up with a segmentation fault what ever that means.

root@DietPi:~# cd /mnt/dietpi_userdata
root@DietPi:/mnt/dietpi_userdata# sudo -u jellyfin /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
Segmentation fault

Searching online the fault people say its a corrupt sd card, but it cant be as qbittorrent works just fine, and its a fresh install and does it every flash. Could it be because its a PI 1?
Just testing Pi Hole also works fine....
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberry PI 1 B Model Issues with Media

Post by Joulinar »

Indeed it could be an issue of Jellyfin not being able to run on RPi1 boards. I have similar behaviour on my RPi1 test system. Probably they did not support armv6l ???

@MichaIng any ideas
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Raspberry PI 1 B Model Issues with Media

Post by MichaIng »

Found it:

Code: Select all

sed -i 's/debian/raspbian/' /etc/apt/sources.list.d/dietpi-jellyfin.list
apt install --reinstall jellyfin jellyfin-ffmpeg
They have a dedicated ARMv6 (Raspbian) repository now. I'll implement this in our case as well.

Fixed with: https://github.com/MichaIng/DietPi/comm ... 1204bf8623
Changelog: https://github.com/MichaIng/DietPi/comm ... ff9652100b
Post Reply