yarez0 22 Posted August 12, 2021 Share Posted August 12, 2021 (edited) Hi guys, trying to do a complete tuto for those who don't understand what to do. hope it helps first, DSM migration is not a simple upgrade, there is a lot of changes that's why there is a DSM6 and a DSM7 version of emby ! it's not as simple as that, historically synology let devs to do some tricks to get access to some ressources that is not possible anymore in DSM7, emby guys need to recode the app. I created a VDSM6, last version, Emby last version, same configuration as I had before migration (at the difference I was in beta) : 1 share video with subdirectories DSM EMBY user full rights on it custom cache, logs, transcode files and metadatas paths some users by the way I recommand the nfo metadatas files creation for all your files and libraries... STEP 1 : DSM 6 - where are my datas ?? start by looking the paths on the dashboard then take a look on the settings go to the library advanced options then the transcoding temporary path and the conversion temp path keep in mind where are your datas ! wrote it somewhere. STEP 2 : Am I in the latest version of emby ? check it, double check, if not, stop emby, go download the latest package and upgrade. let's do a restart to be sure STEP 3 : stop and delete emby from DSM STEP 4 : leeeeeet's GO upgrade your DSM to version 7 now we can do hard stuffs STEP 5 : install emby FOR DSM7 https://emby.media/synology7-server.html choose the right package (to me 64-bit), and install it manually. the package is called synology7_4.6.4.0 let the run after installation check box, we need to let emby starts to let it create its files and stop it STEP 6 : remove emby_pkg user and video group go the control panel - user and group and remove the emby__PKG_ user no more user still in user and group, go to the group tab and delete de video group no more video group now, to be sure, go edit your user account to check if you still have all access to your shared folders. return to the user tab and edit your user, if you have multiple users, edit them all then go to the permission tab, I lost my access to the emby shared folder in the migration. check and double check your access to all your folders (if you have sonarr, radarr... you will do the same to give back the sc-xxx groups rights, but it's another subject) do the correction and SAVE for those who use the admin user, we talk about it later but yes you have to do the same with it STEP 7 : give rights to the emby user on your shared folders the emby user is a local system user, it is hidden, we need to give it the right to access the folders. stay in the control pannel and go to the shared folders, remember the paths on the step 1 ? in my case it was the shared folder called emby for the custom paths and the share called video to my libraries. edit your folders. go to the permissions tab, the emby user is not here, that's normal, click on local users and select system internal user now you can give read/write access to the emby user do the same FOR ALL THE SHARED FOLDERS emby has access to STEP 8 : technical stuff emby is still down, user rights are clean, now we have to copy/paste all the previous files from emby on DSM 6 to emby on DSM7. the reason is simple : the package is not installed in the same directory. to do that we need to go in cli (Command Line Interface) but synology is not that simple, you can't do it with your "classic" user you need to do it with the admin account and get an "elevation" to the root user. AND, the admin user is, for mostly people, disabled by default. (for those how the admin account is enable because they use it, just check if you can access all the folders, some rights disapeared with the migration) so, let's go the control pannel, user and group and edit the admin user, by default, it is disabled uncheck the box disable this account now go change password, because if you never used this account, it has no password the account is now ready to get access to the cli, we need to activate the SSH service, stay in the control pannel and go to terminal & snmp to activate the SSH service, let the port 22, don't forget to apply modification now you need an ssh client, I use mobaxterm but for you let's use putty, you can download it here https://www.putty.org/ we don't need to install the whole package, juste download the exe file then run it, check if you are in SSH and enter you synology IP if you can't access to your NAS, you did not apply on the SSH service page, go back and check.. accept the keys and log in with the admin account we now need an elevation, type the command sudo -i the password is the same as the admin account, you are now root STEP 9 : copy old file to the new location still remember the path of your files ? we have to copy them now with the command cp -rv /volume1/Emby/* /volume1/@appdata/EmbyServer it means Copy -RecursiveVerbose <old emby path/all file> to <new emby path> depends of the number of your files, the copy will take some times, when you returns to prompt, the copy is done now we have to give back the good rights to the user emby on those files, so we have to pass the command chown -R emby:emby /volume1/@appdata/EmbyServer keep putty open, just in case there is a users and library problem... FINAL STEP : START EMBY dark screen, starts good... check the paths (remember step 1..) and delete all custom, some paths keeps the old one, some paths are still in the emby shared folder settings, delete cache path library (empty, here we go...), metadata cache empty, save just in case transcoding path empty, save convertion, settings, delete path and save check all the previous old custom path and restart emby FINAL FINAL STEP : where are my users and libraries ??? now got a empty users and empty libraries, but the configuration is ok. don't panic. stop the emby server return to putty and do the command rm -r /volume1/@appdata/EmbyServer/* it will delete all the file in the new installation path of emby, don't delete file until emby is not completely down. then redo the command cp -rv /volume1/Emby/* /volume1/@appdata/EmbyServer and redo the command chown -R emby:emby /volume1/@appdata/EmbyServer start again emby and voilà ! all good ! when all done, you can close putty. you can also disable the SSH service and disable the admin account if you don't need it. remember control pannel user and group for the admin user, terminal and snmp for the SSH service Edited August 13, 2021 by yarez0 remove extra pics at the end 5 Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 12, 2021 Author Share Posted August 12, 2021 Thanks, that pretty much matches the instructions and movie in the first post but with a couple of extra steps you've thrown in. Link to comment Share on other sites More sharing options...
yarez0 22 Posted August 12, 2021 Share Posted August 12, 2021 1 minute ago, cayars said: Thanks, that pretty much matches the instructions and movie in the first post but with a couple of extra steps you've thrown in. yep, just (re)followed the instructions but some guys don't understant when to look at the video and how to ssh to the syno Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 12, 2021 Author Share Posted August 12, 2021 People all have different ways they like to learn or follow so this fits in well. I modified the op post to link to your post. Thanks Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 15, 2021 Share Posted August 15, 2021 I have DSM 7 installed, and Emby seems to be working ok - but should I have a user 'emby' ? I dont. Only my user accounts to access the NAS. And Configuration Backup fails. Access to the path '/volume1/@config_backup/Emby Backup - 2021-08-15 16.13.33 - Auto' is denied. at System.IO.FileSystem.CreateDirectory(String fullPath) at System.IO.Directory.CreateDirectory(String path) at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path) at MBBackup.ServerEntryPoint.ExecuteBackup(BackupProfile settings, CancellationToken cancellationToken, IProgress`1 progress, Boolean isAuto) at MBBackup.Entities.ScheduledBackupTask.Execute(CancellationToken cancellationToken, IProgress`1 progress) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) My media is there, and things are working via Nvidia Shield, but I am lost as to whether I have other issues. embyserver.txt Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 15, 2021 Author Share Posted August 15, 2021 Hi, What is "'/volume1/@config_backup" ? Have you tried a different folder that you create first such as /volume1/EmbyBackup ? No the "emby" user is the default user if you don't create/change it during setup. So likely most people won't have it. Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 15, 2021 Share Posted August 15, 2021 Thankyou cayars. Re a location to store Configuration Backups I didn't know I needed to manually create a folder - I was so used to Emby having 'default' locations. That old name would have been a carry over from DSM 6 - which is why it would not work. I created a new folder in DSM 7 under /volume1/Emby as /ConfigBackup and when Configuration Backup is run, it creates a subfolder as Emby Backup with date and time for the backup data. I ran Configuration Backup manually and it worked just fine. . Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 15, 2021 Author Share Posted August 15, 2021 Super, Glad you got that working! Thanks for the update. Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 16, 2021 Share Posted August 16, 2021 I have completed the install of DSM 7 with Emby. Whilst everything seems to be working ok - I wonder why I can't 'see' any files being created by EMBY on the NAS, apart from a manual folder I created for Configuration Backup. Emby Dashbord / Logs for example. There is a embyserver.txt dated 16/08/2021 11:03 - which I would expect to be in the Emby / Logs folder. (log attached) Everything in the Emby folders I see is now dated / timed - before the install of DSM7 and Emby 4.6.4 for DSM 7. I am looking at the 'old' Emby folder ? /volume1/Emby - it is 1.34GB. I can access the log files from the dashboard. But I suspect something is not as it should be ? In the log I see references to: Data path: /var/packages/EmbyServer/var I dont see that path at all. The Emby dashbord has Paths which I dont get to see ? Paths Cache: /var/packages/EmbyServer/var/cache Logs: /var/packages/EmbyServer/var/logs Metadata: /var/packages/EmbyServer/var/metadata Transcoding temporary files: /var/packages/EmbyServer/var/transcoding-temp embyserver.txt Link to comment Share on other sites More sharing options...
hifiaudio2 47 Posted August 16, 2021 Share Posted August 16, 2021 Probably a dumb question, but what do I "lose" by not doing this migration and instead just installing DSM 7 and then the latest version of Emby and that is all? Just things like the current status of watched vs unwatched, etc? 1 Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 16, 2021 Author Share Posted August 16, 2021 @WinXP those folders look fine and are the true "unmasked" structure. @hifiaudio2 Basically it would be a new install so you would need to rebuild libs, setup users from scratch etc and would not have any watched status. Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 16, 2021 Share Posted August 16, 2021 @cayars When you say 'those folders look fine' - you are referring to what I can see in the Emby Dashbord I assume ? But where do I see those folders on my Synology DiskStation ? When I go to File Station I see the folder 'Emby' - but everything in it is dated before the upgrade. The Emby dashbord when viewing it on my PC has logs as being at Logs: /var/packages/EmbyServer/var/logs How do I see that location on my Synology ? It has a location Emby > logs - and all the data in it - is dated before the DSM / Emby upgrave to V7. I have no visible path - /var/packages/EmbyServer It must be there - as everything is working ok - but do I get to see it ? Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 16, 2021 Author Share Posted August 16, 2021 Yes to the first question. /volume1/Emby is the DSM 6 folder path /volume1/@appdata/EmbyServer is for DSM 7 Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 16, 2021 Share Posted August 16, 2021 8 minutes ago, cayars said: Yes to the first question. /volume1/Emby is the DSM 6 folder path /volume1/@appdata/EmbyServer is for DSM 7 So how do I get to actually SEE this folder - /volume1/@appdata/EmbyServer ? Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 16, 2021 Author Share Posted August 16, 2021 SSH/Putty into the NAS. Link to comment Share on other sites More sharing options...
WinXP 0 Posted August 16, 2021 Share Posted August 16, 2021 16 minutes ago, cayars said: SSH/Putty into the NAS. So the whole of /volume1/@appdata/EmbyServer is not visible under DSM 7 as was the case with DSM 6 ? You have to use SSH/PuTTY now to view the Emby package data. And I have a DSM 6 folder - Emby - with 1.64GB sitting there doing nothing. Did I miss something in the migration instructions that said you can delete the DSM6 Emby stuff ? Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 16, 2021 Author Share Posted August 16, 2021 Sure it's visible in DSM 7 via SSH with root privs. It's not accessible via File Station however if that's what you were asking. This is part of the new DSM 7 model. You can remove the old Emby folder from DSM 6. Link to comment Share on other sites More sharing options...
flowcool 2 Posted August 18, 2021 Share Posted August 18, 2021 (edited) Hello Everyone I'm facing a weird issue actually. I'm able to run Emby, read files...but cannot delete through application: Quote 2021-08-18 10:59:20.285 Info App: Removing item from database, Type: Movie, Name: Les Aventures de Rabbi Jacob, Path: /volumeUSB1/usbshare/Video/Films/The Mad Adventures of Rabbi Jacob (1973)/The Mad Adventures of Rabbi Jacob 1973 Bluray-1080p.mkv, Id: 39917 2021-08-18 10:59:20.285 Info App: Deleting path /var/packages/EmbyServer/var/metadata/library/cc/ccfdfe33bc8f00ec68d26f5cb3f40cfe 2021-08-18 10:59:20.286 Info App: Deleting path /volumeUSB1/usbshare/Video/Films/The Mad Adventures of Rabbi Jacob (1973) 2021-08-18 10:59:20.288 Error Server: Error processing request *** Error Report *** Version: 4.6.4.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp Operating system: Linux version 4.4.180+ (root@build15) (gcc version 7.5.0 (GCC) ) #41890 SMP Thu Jul 15 03:43:42 CST 2021 Framework: .NET Core 3.1.13 OS/Process: x64/x64 Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll Processor count: 4 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system System.IO.IOException: System.IO.IOException: Access to the path '/volumeUSB1/usbshare/Video/Films/The Mad Adventures of Rabbi Jacob (1973)' is denied. at System.IO.FileSystem.RemoveDirectoryInternal(DirectoryInfo directory, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at System.IO.Directory.Delete(String path, Boolean recursive) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectoryInternal(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.IO.ManagedFileSystem.DeleteDirectory(String path, Boolean recursive, Boolean sendToRecycleBin) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, Boolean notifyParentItem) at MediaBrowser.Api.Library.LibraryService.Delete(DeleteItems request) at MediaBrowser.Api.Library.LibraryService.Delete(DeleteItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass6_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.IO.FileSystem TargetSite: Void RemoveDirectoryInternal(System.IO.DirectoryInfo, Boolean, Boolean) Thing is emby system user have read/write access to my library and to Emby folder itself. I diggued down a lot but have no clue anymore. (I even tried to make emby account owner of few directories, but still no chance) Anyone else faced this ? Edited August 18, 2021 by flowcool adding more details Link to comment Share on other sites More sharing options...
loxxess1 0 Posted August 18, 2021 Share Posted August 18, 2021 On 8/16/2021 at 7:11 PM, cayars said: Basically it would be a new install so you would need to rebuild libs, setup users from scratch etc and would not have any watched status. @cayars You replied to hifiaudio2 that libs and users would need to be setup when installing emby server fresh in DSM 7. I don't have a lot of libraries, so for me this wouldn't be too much work. My question is would I run into issues restoring the server configuration using the config backup plugin? Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 18, 2021 Author Share Posted August 18, 2021 Personally if you had Emby installed on DSM 6 I would do a migration as it's going to be easier and faster than trying to restore config options and rescan everything. Link to comment Share on other sites More sharing options...
oblio999 0 Posted August 19, 2021 Share Posted August 19, 2021 19 hours ago, cayars said: Personally if you had Emby installed on DSM 6 I would do a migration as it's going to be easier and faster than trying to restore config options and rescan everything. Sorry if this has been answered before but can I do the migration steps if I upgraded to DSM7 first before shutting down Emby? My installed version is 4.5.4.0-6 All the db files in data directory have .db-shm and .db-wal files present. Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 19, 2021 Author Share Posted August 19, 2021 If you are referring to the steps you do in SSH/putty you want to do these with Emby shutdown, otherwise it will have files locked. After doing the copy and chown steps you can go to the new data directory and can kill the db-wal and db-shm files before starting Emby Server. If you are still on DSM 6 you want to upgrade that install to the latest release version first before doing the migration and then use the same version package for DSM 7 after the migration. Basically, the closer you get to following the migration guide step by step the better chance you have of success. Follow it step by step and you should not have a problem at all and things should go smooth. Link to comment Share on other sites More sharing options...
flowcool 2 Posted August 19, 2021 Share Posted August 19, 2021 On 8/18/2021 at 11:05 AM, flowcool said: Hello Everyone I'm facing a weird issue actually. I'm able to run Emby, read files...but cannot delete through application: Thing is emby system user have read/write access to my library and to Emby folder itself. I diggued down a lot but have no clue anymore. (I even tried to make emby account owner of few directories, but still no chance) Anyone else faced this ? Anyone have any clue ? I'm quite used to linux sysadmin, but stuck... Link to comment Share on other sites More sharing options...
Carlo 4337 Posted August 19, 2021 Author Share Posted August 19, 2021 (edited) Did you give the system internal emby user read/write access to these shares? (different user than was used on DSM 6). What error shows up in the server log when you try to delete something? Can you show us your permissions for /volumeUSB1/usbshare Edited August 19, 2021 by cayars Link to comment Share on other sites More sharing options...
flowcool 2 Posted August 19, 2021 Share Posted August 19, 2021 (edited) 25 minutes ago, cayars said: Did you give the system internal emby user read/write access to these shares? (different user than was used on DSM 6). What error shows up in the server log when you try to delete something? Can you show us your permissions for /volumeUSB1/usbshare Yep I did. and even tried to add emby user to admin group Please find below the permissions: Please let me know if you want me to switch DSM interface to English Edited August 19, 2021 by flowcool typo Link to comment Share on other sites More sharing options...
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