thegrunge 29 Posted September 18, 2022 Posted September 18, 2022 (edited) Hello, I'm trying to migrate emby from docker to ubuntu, but even if I have the backup plugin, it doesn't really work. Folders and members are imported, but libraries must be scanned in full. I also tried to transfer the files mentioned in the manual migration procedure, but it crashes emby, so I tried 3 times and I had to format 3 times, because after emby is crashed there is no more nothing to do. I spent the day on it I'm starting to be desperate. Why does it work so well restoring in docker and so badly manually from one system to another? The only thing I transferred was the metadata in the end, I didn't risk it. nothing more. But it does not change anything. Thanks! Edited September 18, 2022 by thegrunge Picture
Happy2Play 9780 Posted September 18, 2022 Posted September 18, 2022 Correct as the plugin only restored Configuration not already imported Data, so without the original databases the /metadata/library images (depending on where you save images to) are really worthless as the folder ids do not match anything anymore. In theory you copy the entire Emby programdata folder from one system to the other. But Paths can be a conflict when changing platforms.
thegrunge 29 Posted September 18, 2022 Author Posted September 18, 2022 @Happy2PlayI just tried I moved the original data folder to the destination of the new server and I can no longer connect to any account now
Happy2Play 9780 Posted September 18, 2022 Posted September 18, 2022 3 minutes ago, thegrunge said: @Happy2PlayI just tried I moved the original data folder to the destination of the new server and I can no longer connect to any account now Not enough information as if you configured say any network setting is could be a problem. Also what are you calling originaly Data folder?
thegrunge 29 Posted September 18, 2022 Author Posted September 18, 2022 @Happy2Playinitially I transferred the files as the procedure says and it did not work, so I had to format. then I read that transferring the entire Emby folder to /var/lib/Emby would work but it would crash Emby. so I formatted again. there what I tried was to transfer the Emby data folder to /var/lib/emby then I can no longer connect to my emby account
Happy2Play 9780 Posted September 18, 2022 Posted September 18, 2022 I only use Windows so really have no idea on other platforms but "Data path: /var/lib/emby" on this platform would be the setup for that install. I know on Windows I just copy "*\Emby-Server\programdata" folder from system to system without issue. But I do not change platforms and all paths will remain the same.
thegrunge 29 Posted September 21, 2022 Author Posted September 21, 2022 (edited) @Luke no probably because I don't have access to emby in /var/lib/emby. I had to reinstall and restore the backup, but I had to scan all the libraries. It's not interesting. It's definitely a legal issue. I made plex this afternoon with the help of a little chmod -R 777 /var/lib/plexmediaserver and then I made a full copy of the file, then I reinstalled plex over it and gave back rights and all that! but emby has a big red X on it and the chmod doesn't work. An idea? EDIT: I try again sudo chmod 777 /var/lib/emby after do sudo usermod -a -G user emby and reboot and now the folder don't have a X, but emby is install i will try on another computer..With setfacl -m user:emby:rxw /home/your username it's perfect emby see all my home folder! Edited September 30, 2022 by thegrunge information
Luke 42078 Posted September 27, 2022 Posted September 27, 2022 On 9/21/2022 at 4:44 PM, thegrunge said: @Luke no probably because I don't have access to emby in /var/lib/emby. I had to reinstall and restore the backup, but I had to scan all the libraries. It's not interesting. It's definitely a legal issue. I made plex this afternoon with the help of a little chmod 777 -R /var/lib/plexmediaserver and then I made a full copy of the file, then I reinstalled plex over it and gave back rights and all that! but emby has a big red X on it and the chmod doesn't work. An idea? EDIT: I try again sudo chmod 777 /var/lib/emby after do sudo usermod -a -G user emby and reboot and now the folder don't have a X, but emby is install i will try on another computer..With setfacl -m user:emby:rxw /home/your username it's perfect emby see all my home folder! Have you taken a look at this?
thegrunge 29 Posted September 28, 2022 Author Posted September 28, 2022 @LukeI'm not yet able to try, but I'll do it soon 1
thegrunge 29 Posted September 30, 2022 Author Posted September 30, 2022 (edited) @Luke After installing the emby systemctl stop emby-server ls -ld /var/lib/emby the result gave "emby emby" for user "emby" of user group "emby" sudo rm -rf /var/lib/emby/* sudo cp -r /home/jonathan/Desktop/emby/* /var/lib/emby/ (This command will work if you did not make the mistake as I did to delete the complete emby folder which contains the group and the user emby) copy of the emby folder which contains the following folders: cache config data metadata plugins root systemctl start emby-server localhost:8096 In my case I have too much bixoune, because I had deleted the folder /var/lib/emby so it totally fucks the emby group and even by reinstalling emby this folder does not come back as supposed, so the service does not work, I just wanted to see if it worked. To launch it manually I did: (open terminal on) /opt/emby-server/bin (folder) and type sudo ./emby-server localhost:8096 Normally we would not have to do this, but I did not look for more solution to fix the problem. 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: failed (Result: core-dump) since Fri 2022-09-30 12:46:58 EDT; 7s ago Process: 17725 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT) Main PID: 17725 (code=dumped, signal=ABRT) Everything is functional provided your mount is named the same as the original mount. If you scan the emby sections it will take time, but go slowly, anyway everything works by default. I added autoscan which automatically adds everything added by radarr and sonarr, so no scan to do unless I put files manually in the mount Edited September 30, 2022 by thegrunge 1
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