Jellyfin Forum
Issues Installing - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Issues Installing (/t-issues-installing--8425)

Pages: 1 2 3 4 5


Issues Installing - Timer - 2024-10-13

Hi  Waving-hand ,
so i am pretty new to Ubuntu and yesterday i mistakenly overloaded the system over it assigned storage (which i now set higher), but a site effect of the problem was that i've got the error "System.Xml.XmlException: Root element is missing". I then tried some things and after that i tried reinstalling jellyfin but now it got this error:
Errors were encountered while processing:
jellyfin-server
jellyfin
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am running Ubuntu Server 24.04


RE: Issues Installing - TheDreadPirate - 2024-10-13

Let's purging Jellyfin. It is probably borked in several ways.

Code:
sudo apt purge jellyfin*
sudo rm -rf /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash



RE: Issues Installing - Timer - 2024-10-13

When i try
sudo apt purge jellyfin*

it gives me this error

Code:
E: Unable to locate package jellyfin.sh
E: Couldn't find any package by glob 'jellyfin.sh'



RE: Issues Installing - TheDreadPirate - 2024-10-13

How did you install Jellyfin the first time? What is the output of this command?

Code:
sudo apt list --installed | grep jellyfin



RE: Issues Installing - Timer - 2024-10-13

I have installed it with

sudo apt-get install jellyfin

The output is:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

jellyfin-ffmpeg6/unknown,now 6.0.1-8-noble amd64 [installed,automatic]
jellyfin-server/unknown,now 10.9.11+ubu2404 amd64 [installed,automatic]
jellyfin-web/unknown,now 10.9.11+ubu2404 all [installed,automatic]
jellyfin/unknown,now 10.9.11+ubu2404 all [installed]


RE: Issues Installing - TheDreadPirate - 2024-10-13

Did you modify the jellyfin service file? The "jellyfin.sh" message leads to believe you did. What are the contents of /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf?


RE: Issues Installing - Timer - 2024-10-13

Not that i can remember

i copied the lines from /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf


# Jellyfin systemd configuration options

# Use this file to override default systemd unit values

[Service]
# Alter the user/group that Jellyfin runs as
#User = jellyfin
#Group = jellyfin

# Alter where environment variables are sourced from
#EnvironmentFile = /etc/default/jellyfin

# Alter the working directory (useful if changing the data path)
#WorkingDirectory = /var/lib/jellyfin

# Service hardening options
# These optional options provide additional service hardening for Jellyfin
# These are an ADVANCED FEATURE - if you enable these and encounter issues,
# please disable them first and triage which if any are causing the trouble
# before reporting any issues.
#NoNewPrivileges=true
#SystemCallArchitectures=native
#RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
#RestrictNamespaces=false
#RestrictRealtime=true
#RestrictSUIDSGID=true
#ProtectControlGroups=false
#ProtectHostname=true
#ProtectKernelLogs=false
#ProtectKernelModules=false
#ProtectKernelTunables=false
#LockPersonality=true
#PrivateTmp=false
#PrivateDevices=false
#PrivateUsers=true
#RemoveIPC=true
#SystemCallFilter=~@clock
#SystemCallFilter=~@aio
#SystemCallFilter=~@chown
#SystemCallFilter=~@cpu-emulation
#SystemCallFilter=~@debug
#SystemCallFilter=~@keyring
#SystemCallFilter=~@memlock
#SystemCallFilter=~@module
#SystemCallFilter=~@mount
#SystemCallFilter=~@obsolete
#SystemCallFilter=~@privileged
#SystemCallFilter=~@raw-io
#SystemCallFilter=~@reboot
#SystemCallFilter=~@setuid
#SystemCallFilter=~@swap
#SystemCallErrorNumber=EPERM


RE: Issues Installing - TheDreadPirate - 2024-10-13

Whoops. I told you to look at the wrong file.

This one.

/etc/systemd/system/multi-user.target.wants/jellyfin.service

The contents should be this.

Code:
[Unit]
Description = Jellyfin Media Server
After = network-online.target

[Service]
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143

[Install]
WantedBy = multi-user.target



RE: Issues Installing - Timer - 2024-10-14

No Problem :)

i have compared that with mine and there the same


RE: Issues Installing - TheDreadPirate - 2024-10-14

What is the status of jellyfin right now?

sudo systemctl status jellyfin

And can you retrieve today's log from /var/log/jellyfin and share it via pastebin?