muyijiang 2 Posted October 13, 2024 Posted October 13, 2024 (edited) Hi, I reinstalled my debian11 system, I backed up the data from emby's opt/emby-server and var/lib/emby and reinserted them into the corresponding files on my new debian11 system. Finally, I overrode the installation once with “dpkg -i emby-server-deb_4.8.10.0_amd64.deb”. But my embyserver service is not starting anymore, I tried to change the permissions of the above two folders to 777, but it is still not starting. I finally tried deleting the above two folders and installing “dpkg -i emby-server-deb_4.8.10.0_amd64.deb”, but it still won't start, here is the error log: “ ● emby-server.service - Emby Server is a personal media server with apps on just about every device Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled) Active: inactive (dead) since Sun 2024-10-13 21:18:02 CST; 35s ago Process: 2498 ExecStart=/opt/emby-server/bin/emby-server (code=exited, status=0/SUCCESS) Main PID: 2498 (code=exited, status=0/SUCCESS) CPU: 65ms 10月 13 21:18:02 nuc11 emby-server[2498]: Source: System.Private.CoreLib 10月 13 21:18:02 nuc11 emby-server[2498]: TargetSite: Void CreateDirectory(System.String) 10月 13 21:18:02 nuc11 emby-server[2498]: at System.IO.FileSystem.CreateDirectory(String fullPath) 10月 13 21:18:02 nuc11 emby-server[2498]: at System.IO.Directory.CreateDirectory(String path) 10月 13 21:18:02 nuc11 emby-server[2498]: at Emby.Server.Implementations.Logging.FileLogger..ctor(String path) 10月 13 21:18:02 nuc11 emby-server[2498]: at Emby.Server.Implementations.Logging.SimpleLogManager.ReloadLogger(LogSev> 10月 13 21:18:02 nuc11 emby-server[2498]: InnerException: System.IO.IOException: Permission denied 10月 13 21:18:02 nuc11 emby-server[2498]: Source: 10月 13 21:18:02 nuc11 emby-server[2498]: TargetSite: 10月 13 21:18:02 nuc11 systemd[1]: emby-server.service: Succeeded. ” Edited October 13, 2024 by muyijiang
Solution Q-Droid 989 Posted October 13, 2024 Solution Posted October 13, 2024 1. Check to see which user should be running Emby: systemctl show -p User,UID,Group,GID emby-server 2. Check the details for the emby user (assuming it is emby or use the name returned): id emby 3. Then change ownership of the Emby data to match (emby user and group) chown -R emby:emby /var/lib/emby 4. Start the Emby server: systemctl start emby-server
muyijiang 2 Posted October 14, 2024 Author Posted October 14, 2024 (edited) I started embyserver with root. Edited October 14, 2024 by muyijiang
muyijiang 2 Posted October 15, 2024 Author Posted October 15, 2024 20 hours ago, Q-Droid said: Permanently or by accident? Thank you, your answer helped me to solve the problem, emby will not run as root, by default the new emby account is created, it is the “/var/lib/emby” permissions caused by this problem!
muyijiang 2 Posted October 15, 2024 Author Posted October 15, 2024 20 hours ago, Q-Droid said: Permanently or by accident? Now I have a new problem, I “Scan media library” but the task won't start, is this a /opt/emby-server permission issue?
Q-Droid 989 Posted October 15, 2024 Posted October 15, 2024 1 hour ago, muyijiang said: Now I have a new problem, I “Scan media library” but the task won't start, is this a /opt/emby-server permission issue? That is the software location and if you didn't make changes in that path there is no reason to touch it. If you're still having problems then post the details as requested in this post.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now