Jellyfin Forum
Accidentally deleted system.xml - 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: Accidentally deleted system.xml (/t-accidentally-deleted-system-xml)



Accidentally deleted system.xml - FacundoLodeiro - 2025-01-21

Hello! Total newbie here as you can tell by the title.

I was trying to fix an error on my server, I couldn't access after exceeding my storage capacity. Trying to fix this I came across some weird "fixes" that suggested I delete migrations.xml and system.xml. Me being a total noob, and also being way sleepy, deleted them without making a backup.

Allegedly, Jellyfin would "recreate" this .xml files when started, but the thing won't start, when checking the service status I get:

Code:
jellyfin.service: Start request repeated too quickly.
jellyfin.service: Failed with result 'core-dump'.
Failed to start jellyfin.service - Jellyfin Media Server.

I found this fix: https://forum.jellyfin.org/t-xml-document-error-after-upgrade?pid=29940#pid29940 which seems promising, but now I lack those two .xml files.

Is there any way to get them back, download them from somewhere or something?
I'm using Ubuntu Server.


RE: Accidentally deleted system.xml - TheDreadPirate - 2025-01-21

Share the output of this command via privatebin.net

Code:
sudo journalctl -u jellyfin -n 200 --no-pager



RE: Accidentally deleted system.xml - FacundoLodeiro - 2025-01-21

(2025-01-21, 02:53 PM)TheDreadPirate Wrote: Share the output of this command via privatebin.net

Code:
sudo journalctl -u jellyfin -n 200 --no-pager

Here you go good sir:

https://privatebin.net/?d41e9a613d3a7563#DuCVPnkGgivarkroMWMPpvWLvmghAW57R24HRe4FAdmF


RE: Accidentally deleted system.xml - TheDreadPirate - 2025-01-21

Code:
sudo systemctl stop jellyfin
sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin /usr/share/jellyfin
sudo systemctl start jellyfin

Not sure what else you did, but Jellyfin doesn't have write permission to /etc/jellyfin. The above commands ensure that Jellyfin owns its directories.

Code:
Jan 21 06:17:34 costeletasv jellyfin[1289]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.



RE: Accidentally deleted system.xml - FacundoLodeiro - 2025-01-23

(2025-01-21, 04:35 PM)TheDreadPirate Wrote:
Code:
sudo systemctl stop jellyfin
sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin /usr/share/jellyfin
sudo systemctl start jellyfin

Not sure what else you did, but Jellyfin doesn't have write permission to /etc/jellyfin.  The above commands ensure that Jellyfin owns its directories.

Code:
Jan 21 06:17:34 costeletasv jellyfin[1289]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.

Hello! That worked for a while but now I get this message:

[Image: mbqNMxP]


RE: Accidentally deleted system.xml - TheDreadPirate - 2025-01-23

Clear your browser cache.

[Image: attachment.php?aid=5082]
[Image: attachment.php?aid=5083]
[Image: attachment.php?aid=5084]