mattia3rd 6 Posted June 6, 2021 Share Posted June 6, 2021 Hi, I was trying to update the Emby server on my TrueNAS server version 12.0-U4 At the beginning I had a jail with 11.3-RELEASE. The I find that the first thing to do was to upgrade the Jail OS and I did it. Now the version is 12.2-RELEASE. So far so good. Now I have the Emby server version 4.5.4.0_1 but I would like to update it to the lastest stable release. The update process throught the Web UI fails with errors... Could anyone help? Link to comment Share on other sites More sharing options...
Luke 37118 Posted June 6, 2021 Share Posted June 6, 2021 HI, what update process fails? What errors? Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 6, 2021 Author Share Posted June 6, 2021 1 minute ago, Luke said: HI, what update process fails? What errors? The error int he Web UI unfortunately is useless.. Have you any suggestions where to find the logs of the update process ? In the case you a need a screenshot from the UI I'll try the update again... Link to comment Share on other sites More sharing options...
Luke 37118 Posted June 6, 2021 Share Posted June 6, 2021 What update process are you referring to? Emby Server does not have a built-in update process on FreeNAS/TrueNAS. Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 6, 2021 Author Share Posted June 6, 2021 32 minutes ago, Luke said: What update process are you referring to? Emby Server does not have a built-in update process on FreeNAS/TrueNAS. Well... I see the update button which tries to update.. Am i wrong? Link to comment Share on other sites More sharing options...
Luke 37118 Posted June 6, 2021 Share Posted June 6, 2021 OK that's a TrueNAS button, that's not actually part of Emby Server. What is the exact message that you get? Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 6, 2021 Author Share Posted June 6, 2021 36 minutes ago, Luke said: OK that's a TrueNAS button, that's not actually part of Emby Server. What is the exact message that you get? It tries to update but fails.. There are an infinite list of messages faster than flash in a mini pop up window... I hope in two options: 1. there is a manual upgrade procedure. If yes, where I can find it? 2. where I can search for the logs of the update process? Link to comment Share on other sites More sharing options...
MRobi 159 Posted June 7, 2021 Share Posted June 7, 2021 Typically when the TrueNAS plugin system errors out, it gives you the error message in the dialog box that is open for the update. You may have to click a down error, or view more or something like that. It's been a while so I forget. TrueNAS stores it's log files in /var/log/ Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 7, 2021 Author Share Posted June 7, 2021 (edited) 9 hours ago, MRobi said: Typically when the TrueNAS plugin system errors out, it gives you the error message in the dialog box that is open for the update. You may have to click a down error, or view more or something like that. It's been a while so I forget. TrueNAS stores it's log files in /var/log/ Yes, but the error message is unreadable. The main problem with TrueNAS and Emby is that Emby plugin itself is a community plugin so it's not maintained.. So the manual update process, if feasible, could be harder.. But I'm still wondering why could be so problematic to update Emby server.. It's just an installation like any other.. Should I try to update it manually? if not, why? Despite of this, I hope there is someone who already did it.. Edited June 7, 2021 by mattia3rd Link to comment Share on other sites More sharing options...
MRobi 159 Posted June 8, 2021 Share Posted June 8, 2021 2 hours ago, mattia3rd said: Yes, but the error message is unreadable. The main problem with TrueNAS and Emby is that Emby plugin itself is a community plugin so it's not maintained.. So the manual update process, if feasible, could be harder.. But I'm still wondering why could be so problematic to update Emby server.. It's just an installation like any other.. Should I try to update it manually? if not, why? Despite of this, I hope there is someone who already did it.. When I ran TrueNAS I only did it manually. If you have some knowledge on how to use the shell it's not too complicated. If you don't, I'd recommend sticking with the plugin. I found one error that I often saw with the plugin is after 1 failed update attempt, it wouldn't even attempt another because of an existing snapshot. If you go check your snapshots you may see like 30 snapshots of your emby jail from all the update attempts. Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 8, 2021 Author Share Posted June 8, 2021 (edited) 5 hours ago, MRobi said: When I ran TrueNAS I only did it manually. If you have some knowledge on how to use the shell it's not too complicated. If you don't, I'd recommend sticking with the plugin. I found one error that I often saw with the plugin is after 1 failed update attempt, it wouldn't even attempt another because of an existing snapshot. If you go check your snapshots you may see like 30 snapshots of your emby jail from all the update attempts. The snapshots you are talking about are those on the pool ? This is a piece of /var/log/iocage.log file. I found many of this failed attempt, but right now it's not clear the problem.. Quote 2021/06/05 17:45:03 (INFO) pkg: unlinkat(usr/local/mono/): No such file or directory 2021/06/05 17:45:03 (INFO) [emby] [10/154] Deinstalling cups-2.3.3_1... 2021/06/05 17:45:03 (INFO) pkg: unlinkat(usr/local/mono/): No such file or directory 2021/06/05 17:45:03 (INFO) [emby] [10/154] Deinstalling cups-2.3.3_1... 2021/06/05 17:45:03 (INFO) pkg: Failed to execute lua script: [string "-- args: etc/cups/cups-files.conf.sample..."]:12: attempt to call a nil value (field 'filecmp') 2021/06/05 17:45:03 (INFO) [emby] [10/154] Deinstalling cups-2.3.3_1... 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) [emby] [10/154] Deleting files for cups-2.3.3_1: .......... done 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) ==> You should manually remove the "cups" user. 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) ==> You should manually remove the "cups" group 2021/06/05 17:45:03 (INFO) pkg: lua script failed 2021/06/05 17:45:03 (INFO) pkg: lua script failed Edited June 8, 2021 by mattia3rd Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 8, 2021 Author Share Posted June 8, 2021 10 hours ago, MRobi said: When I ran TrueNAS I only did it manually. If you have some knowledge on how to use the shell it's not too complicated. If you don't, I'd recommend sticking with the plugin. I found one error that I often saw with the plugin is after 1 failed update attempt, it wouldn't even attempt another because of an existing snapshot. If you go check your snapshots you may see like 30 snapshots of your emby jail from all the update attempts. After a comparison with TrueNAS community I found that the issue is on the Emby plugin github project, which is not maintained anymore... You said you did it manually, I think that this is the only option I have.. Have you a good guide to follow to do a new installation? Then I'll backup/restore the configuration within the new version, if possibile... Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 8, 2021 Author Share Posted June 8, 2021 I'm not sure that this is the point but it could... Actually into this post emby on freebsd is shown that the supported version of Emby on FreeBSD 12 is of course 4.5 So from this point of view this could be the reason why is not yet possible to update Emby server, but I search for this and it show howto install emby 4.7 on freeBSD 12 In the end I am not yet sure about the conclusion.. Link to comment Share on other sites More sharing options...
MRobi 159 Posted June 8, 2021 Share Posted June 8, 2021 10 hours ago, mattia3rd said: After a comparison with TrueNAS community I found that the issue is on the Emby plugin github project, which is not maintained anymore... You said you did it manually, I think that this is the only option I have.. Have you a good guide to follow to do a new installation? Then I'll backup/restore the configuration within the new version, if possibile... I'm not sure which github you're speaking of. https://github.com/ix-plugin-hub/iocage-plugin-index The community plugin looks to have been updated yesterday (at least for TrueNAS, maybe not the old FreeNAS). The manual install instructions are the same as the beta instructions found here: https://emby.media/freebsd-server.html Simply change the file path to the version of your choice found here: https://github.com/MediaBrowser/Emby.Releases/releases If you're just updating, first stop the service, verify you have all the dependencies installed and updated, then just run the pkg add -f command. You can ignore the sysrc commands. 1 Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 9, 2021 Author Share Posted June 9, 2021 (edited) 13 hours ago, MRobi said: I'm not sure which github you're speaking of. https://github.com/ix-plugin-hub/iocage-plugin-index The community plugin looks to have been updated yesterday (at least for TrueNAS, maybe not the old FreeNAS). The manual install instructions are the same as the beta instructions found here: https://emby.media/freebsd-server.html Simply change the file path to the version of your choice found here: https://github.com/MediaBrowser/Emby.Releases/releases If you're just updating, first stop the service, verify you have all the dependencies installed and updated, then just run the pkg add -f command. You can ignore the sysrc commands. Yes you are right. The manual update right now seems to be the only solution. The reason why the plugin do not update the Emby server version seems related to this freeshport doc where it's told that FreeBSD 12 support up to Emby 4.5 version This is the only and last thing to verify. Sorry but I'm not a FreeBSD specialist so I don't know how the matrix of that system is managed and updated. Edited June 9, 2021 by mattia3rd Link to comment Share on other sites More sharing options...
mattia3rd 6 Posted June 9, 2021 Author Share Posted June 9, 2021 I follow this guide from Emby to migrate the data. I installed the same Emby server version on a new destination. I backed up the configurations and move them to the new installation. cp -Rf emby/root/var/db/emby-server/config myemby/root/var/db/emby-server/config/ cp -Rf emby/root/var/db/emby-server/plugins myemby/root/var/db/emby-server/plugins/ cp -f emby/root/var/db/emby-server/data/displaypreferences.db myemby/root/var/db/emby-server/data/displaypreferences.db cp -f emby/root/var/db/emby-server/data/users.db myemby/root/var/db/emby-server/data/users.db cp -f emby/root/var/db/emby-server/data/library.db myemby/root/var/db/emby-server/data/library.db cp -Rf emby/root/var/db/emby-server/metadata/ myemby/root/var/db/emby-server/metadata/ cp -Rf emby/root/var/db/emby-server/data/devices/ myemby/root/var/db/emby-server/data/devices/ I mounted the same mountpoints for the library. I started the new instance and at the first step I asked me to run again the setup Wizard... I did it.. but the new installation is different.. I'm confused, It's not copying the data from the old installation.. What am I missing? Link to comment Share on other sites More sharing options...
MRobi 159 Posted June 11, 2021 Share Posted June 11, 2021 Can you confirm the data actually copied? You also have to make sure emby is not running on the new instance when the data is copied over. Link to comment Share on other sites More sharing options...
Solution mattia3rd 6 Posted June 11, 2021 Author Solution Share Posted June 11, 2021 Hi, I resolved everything and I was able to migrate data to a new installation. What I would suggest is to copy all the data in "emby-server" 2 Link to comment Share on other sites More sharing options...
MRobi 159 Posted June 11, 2021 Share Posted June 11, 2021 Glad you got it all worked out! Link to comment Share on other sites More sharing options...
hjason7812 25 Posted August 12, 2021 Share Posted August 12, 2021 On 6/9/2021 at 10:41 AM, mattia3rd said: I follow this guide from Emby to migrate the data. I installed the same Emby server version on a new destination. I backed up the configurations and move them to the new installation. cp -Rf emby/root/var/db/emby-server/config myemby/root/var/db/emby-server/config/ cp -Rf emby/root/var/db/emby-server/plugins myemby/root/var/db/emby-server/plugins/ cp -f emby/root/var/db/emby-server/data/displaypreferences.db myemby/root/var/db/emby-server/data/displaypreferences.db cp -f emby/root/var/db/emby-server/data/users.db myemby/root/var/db/emby-server/data/users.db cp -f emby/root/var/db/emby-server/data/library.db myemby/root/var/db/emby-server/data/library.db cp -Rf emby/root/var/db/emby-server/metadata/ myemby/root/var/db/emby-server/metadata/ cp -Rf emby/root/var/db/emby-server/data/devices/ myemby/root/var/db/emby-server/data/devices/ I mounted the same mountpoints for the library. I started the new instance and at the first step I asked me to run again the setup Wizard... I did it.. but the new installation is different.. I'm confused, It's not copying the data from the old installation.. What am I missing? i use this in the shell it is easy to do and takes no time at all. copy and paste into the shell using shift and the ins button by you number pad on your keyboard. Just use the first line and then number 8 line that is all you need to do. i just use the beta versions because they have the latest updates. i haven't had any issues running the betas as of late. emby manually update.txt Link to comment Share on other sites More sharing options...
Luke 37118 Posted August 14, 2021 Share Posted August 14, 2021 On 8/12/2021 at 6:28 AM, hjason7812 said: i use this in the shell it is easy to do and takes no time at all. copy and paste into the shell using shift and the ins button by you number pad on your keyboard. Just use the first line and then number 8 line that is all you need to do. i just use the beta versions because they have the latest updates. i haven't had any issues running the betas as of late. emby manually update.txt 1.46 kB · 2 downloads If you're installing our downloadable package, then you only need those first two steps. You don't need any of the others after that. Link to comment Share on other sites More sharing options...
hjason7812 25 Posted October 2, 2022 Share Posted October 2, 2022 @Luke, i believe there needs to be a link on the website to show the code to use in the shell on truenas on how to update the emby server.. Just like there is a button on the website for downloading emby there should be an update one as well because many people don't know what code to use to update or how to use it. The forum is filled with people asking how to update emby because the truenas plugin isn't working for the updates i don't know if the truenas scale plugin works i'm not on scale yet still on core and the core plugin don't work for updating emby you have to use the shell code to update emby plugin and this confuses people. So please add this section on the main website and button on the header to go right to the update through shell information.. Because updating emby and installing is way different everyone doesn't want to have to install emby every single time an update is needed and that is what is being done with the download page information. Thank you Link to comment Share on other sites More sharing options...
Luke 37118 Posted October 3, 2022 Share Posted October 3, 2022 Quote Luke, i believe there needs to be a link on the website to show the code to use in the shell on truenas on how to update the emby server.. Hi, yes this is a good idea and something we can look at adding. Thanks. 1 Link to comment Share on other sites More sharing options...
Baenwort 97 Posted October 5, 2022 Share Posted October 5, 2022 On 10/1/2022 at 9:52 PM, hjason7812 said: @Luke, i believe there needs to be a link on the website to show the code to use in the shell on truenas on how to update the emby server.. Just like there is a button on the website for downloading emby there should be an update one as well because many people don't know what code to use to update or how to use it. The forum is filled with people asking how to update emby because the truenas plugin isn't working for the updates i don't know if the truenas scale plugin works i'm not on scale yet still on core and the core plugin don't work for updating emby you have to use the shell code to update emby plugin and this confuses people. So please add this section on the main website and button on the header to go right to the update through shell information.. Because updating emby and installing is way different everyone doesn't want to have to install emby every single time an update is needed and that is what is being done with the download page information. Thank you So when your in the TrueNAS Core plug-in tab and you click on your Emby plug-in and press update it doesn't move to the newest version in the pkg manager? When was the last time you tried this? If it was recently I'll run a test plug-in this week as we should be seeing the pkg manager go from 4.7.6 to 4.7.8 in the next week. Link to comment Share on other sites More sharing options...
hjason7812 25 Posted October 5, 2022 Share Posted October 5, 2022 45 minutes ago, Baenwort said: So when your in the TrueNAS Core plug-in tab and you click on your Emby plug-in and press update it doesn't move to the newest version in the pkg manager? When was the last time you tried this? If it was recently I'll run a test plug-in this week as we should be seeing the pkg manager go from 4.7.6 to 4.7.8 in the next week. Nope it doesn't trued it for the new update lastnight was notified there was a new update clicked update and it ran through its stuff and I restarted the server and didn't update to the latest. I had to manually update to the latest emby update through shell code. 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