Jump to content

Bad permissions after restore


Recommended Posts

BaronVonJ
Posted

I'm migrating to a new NAS, both running DSM 7.2+, both have same 4.9.3.0 version of the Emby server Synology package. I used the regular Backup & Restore option to create a backup in the NetBackup shared folder, then from the CLI created a tar archive of the backup and transferred that over to the new NAS. I gave the emby use read access to the NetBackup shared folder on the new server, extracted the backup archive under NetBackup via the CLI (with my admin local user), and after registering my key on the new NAS attempted a restore. It seemed to work, but now after restarting the service I see the expected users but can't login even with my admin user

image.thumb.png.d02db9cf40c3bdd5d49e4a53ace2429f.png

 

Looking at the files, I can see permissions are not the same, as shown below. Any idea what could cause this and best way to proceed? Can I simply stop EmbyServer on the new NAS, wipe out the contents of /volume1/@appdata/EmbyServer, start it back and try the restore again?

New server:

root@ds418:/volume1/@appdata/EmbyServer# ls -l /volume1/\@appdata/EmbyServer/
total 4
drwxr-xr-x 1 emby emby  40 Feb 26 11:00 cache
drwxr-xr-x 1 emby emby 110 Feb 26 10:01 config
drwxr-xr-x 1 emby emby 478 Feb 26 11:13 data
-rw-r--r-- 1 emby emby   4 Feb 26 11:13 EmbyServer.pid
drwxr-xr-x 1 emby emby 476 Feb 26 11:13 logs
drwxr-xr-x 1 emby emby 180 Feb 26 10:58 metadata
drwxr-xr-x 1 emby emby 582 Feb 26 09:29 plugins
drwxr-xr-x 1 emby emby  14 Feb 26 10:01 root
root@ds418:/volume1/@appdata/EmbyServer# ls -l /volume1/\@appdata/EmbyServer/config/
total 16
-r-xr-xr-x 1 emby emby  264 Nov  9  2023 dlna.xml
-rw-r--r-- 1 emby emby   34 Aug 19  2024 mb.lic
-r-xr-xr-x 1 emby emby  243 Nov  9  2023 metadata.xml
drwxr-xr-x 1 emby emby   80 Feb 26 10:01 ScheduledTasks
-r-xr-xr-x 1 emby emby 3674 Feb 19 18:24 system.xml
drwxr-xr-x 1 emby emby  256 Feb 26 10:01 users
root@ds418:/volume1/@appdata/EmbyServer# ls -l /volume1/\@appdata/EmbyServer/config/users/
total 0
drwxr-xr-x 1 emby emby 40 Feb 26 10:01 6b380e7542554727ba1c9aceb55c9b63
drwxr-xr-x 1 emby emby 20 Feb 26 09:26 735255c68a344ee9855088753ded2f4b
drwxr-xr-x 1 emby emby 40 Feb 26 10:01 7d371359389e4642a12ad819f65c1e08
drwxr-xr-x 1 emby emby 40 Feb 26 10:01 8955027eae7c4759a080fd68f0ad5205
root@ds418:/volume1/@appdata/EmbyServer# ls -l /volume1/\@appdata/EmbyServer/config/users/8955027eae7c4759a080fd68f0ad5205/
total 8
-r-xr-xr-x 1 emby emby 1542 Nov 20 22:47 config.xml
-r-xr-xr-x 1 emby emby 3064 Feb  6 08:03 policy.xml

Old server:

root@ds418:/volume1/@appdata/EmbyServer# ll
total 8432
drwxr-xr-x 1 emby emby     162 Feb 24 22:54 .
drwxr-xr-x 1 root root     682 Jan 13 18:27 ..
drwx------ 1 emby emby     230 Feb 24 22:48 cache
drwx------ 1 emby emby     110 Feb 24 22:51 config
drwx------ 1 emby emby     272 Feb 24 22:54 data
drwx------ 1 emby emby       8 Nov  9  2023 @eaDir
-rw------- 1 emby emby 8632320 Nov  9  2023 emby_new.tar
drwxr-xr-x 1 emby emby      34 Dec 18 10:54 fonts
drwx------ 1 emby emby     348 Feb 24 22:54 logs
drwx------ 1 emby emby     164 Jan 10 00:43 metadata
drwx------ 1 emby emby     816 Oct 10 14:06 plugins
drwx------ 1 emby emby      14 Nov  9  2023 root
drwxr-xr-x 1 emby emby       0 Oct 31  2024 sync
drwxr-xr-x 1 emby emby       0 Jan 14 12:31 transcoding-temp
root@ds418:/volume1/@appdata/EmbyServer# ll config/
total 16
drwx------ 1 emby emby  110 Feb 24 22:51 .
drwxr-xr-x 1 emby emby  162 Feb 24 22:54 ..
-rwx------ 1 emby emby  264 Nov  9  2023 dlna.xml
-rw-r--r-- 1 emby emby   34 Aug 19  2024 mb.lic
-rwx------ 1 emby emby  243 Nov  9  2023 metadata.xml
drwxr-xr-x 1 emby emby   80 Feb 24 22:51 ScheduledTasks
-rwx------ 1 emby emby 3674 Feb 19 18:24 system.xml
drwx------ 1 emby emby  192 Aug 21  2024 users
root@ds418:/volume1/@appdata/EmbyServer# ll config/users/
total 0
drwx------ 1 emby emby 192 Aug 21  2024 .
drwx------ 1 emby emby 110 Feb 24 22:51 ..
drwxr-xr-x 1 emby emby  40 Aug 21  2024 6b380e7542554727ba1c9aceb55c9b63
drwxr-xr-x 1 emby emby  40 Aug 18  2024 7d371359389e4642a12ad819f65c1e08
drwx------ 1 emby emby  40 Nov  9  2023 8955027eae7c4759a080fd68f0ad5205
root@ds418:/volume1/@appdata/EmbyServer# ll config/users/8955027eae7c4759a080fd68f0ad5205/
total 8
drwx------ 1 emby emby   40 Nov  9  2023 .
drwx------ 1 emby emby  192 Aug 21  2024 ..
-rwx------ 1 emby emby 1542 Nov 20 22:47 config.xml
-rwx------ 1 emby emby 3064 Feb  6 08:03 policy.xml

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...