Raspberry PI 1 B Model Issues with Media

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 :smiley:

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.

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?

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.

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

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.
Jellyfin Log file.txt (5.86 KB)

ok let’s try to have it started manually

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…

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

Found it:

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/commit/b80185a8a07d4fe5c0f0a0ae3353731204bf8623
Changelog: https://github.com/MichaIng/DietPi/commit/a0ea9775458e8e109fd40a9fe9da56ff9652100b

hi,
I am running dietpi on RPi0W
I modify my diepi-software as per below changes
https://github.com/MichaIng/DietPi/commit/b80185a8a07d4fe5c0f0a0ae3353731204bf8623

installed jellyfin and did a reboot
i cant access jellyfin webpage. looked under services (in dietpi-launcher) and found service failed to start. Restarted service but no use.
Any suggestions…

probably easier if you would try DietPi 6.34 BETA :wink:

anyway, can you post following

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

dietpi@DietPi:~$ cd /mnt/dietpi_userdata
dietpi@DietPi:/mnt/dietpi_userdata$ sudo -u jellyfin /usr/bin/j
ellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib
/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

We trust you have received the usual lecture from the local Sys
tem
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

  1. Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for dietpi:
Sorry, user dietpi is not allowed to execute ‘/usr/bin/jellyfin
–webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyf
in/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg’ as jellyfin on DietPi.

can you do this as root user pls

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

below is my edited ditepi-software

software_id=178 # Jellyfin
		if (( ${aSOFTWARE_INSTALL_STATE[$software_id]} == 1 )); then

			Banner_Installing

			# Install APT repo key
			#INSTALL_URL_ADDRESS='https://repo.jellyfin.org/debian/jellyfin_team.gpg.key'
			INSTALL_URL_ADDRESS='https://repo.jellyfin.org/jellyfin_team.gpg.key'
			G_CHECK_URL "$INSTALL_URL_ADDRESS"
			#G_EXEC eval "curl -sSLf '$INSTALL_URL_ADDRESS' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-jellyfin.gpg --yes"
			G_EXEC eval "curl -sSfL '$INSTALL_URL_ADDRESS' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-jellyfin.gpg --yes"

			# Install APT repo
			#echo "deb https://repo.jellyfin.org/debian/ $G_DISTRO_NAME main" > /etc/apt/sources.list.d/dietpi-jellyfin.list
			local distro='debian'
			(( $G_HW_ARCH == 1 )) && distro='raspbian'
			echo "deb https://repo.jellyfin.org/$distro/ $G_DISTRO_NAME main" > /etc/apt/sources.list.d/dietpi-jellyfin.list
			G_AGUP

			# Install Jellyfin + FFmpeg implementation
			G_AGI jellyfin jellyfin-ffmpeg

		fi

did you tried running DietPi 6.34 BETA?

Changed master to beta in /boot/dietpi.txt

Did update from dietpi-launcher
Reinstalled jellifin, dietpi-software reinstall 178
But still jellyfin service failed under dietpi-services

hmm I did a test on my RPi1 and indeed it’s still failing. Strange. Ok we would need support from developer on this MichaIng

hmm I tried to follow instructions on jellyfin.org, but it seems armv6l boards are not supported anymore. I did not tested it but maybe running on Docker might be an alternative. :thinking:

Docker does work…I installed it on my OPiPC…testing now (however it is based on the newest kernels not the older RPiB armv6l kernels)

It should work just fine…this is the docker run jellyfin.sh I made
https://jellyfin.org/docs/general/administration/installing.html#docker

docker run -d \
 --name jellyfin \
 --user 1000:1000\
 --net=host \
 --volume /home/warhawk/jellyfin/config:/config \
 --volume /home/warhawk/jellyfin/cache:/cache \
 --mount type=bind,source=/home/warhawk/jellyfin/media,target=/media \
 --restart=unless-stopped \
 jellyfin/jellyfin

It is up and running…testing by copying a movie over to the /home/warhawk/jellyfin/media directory…however I think I may create a mapping to my main UNRaid server to see if it can go thru my vast library on my main server

I did have to use portainer to re-create the docker file because I screwed up the user flag before and had to “tweak” it to get it working