constrict 6 Posted May 12, 2018 Share Posted May 12, 2018 (edited) Updating has become much easier for FreeBSD with the new package. Any update can be installed by running the following command. Using this method will also allow you to install beta packages. pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/X.X.X.X/emby-server-freebsd_X.X.X.X_amd64.txz service emby-server restart Note that if your updating from a much older version of emby the database location has changed from /var/db/emby-server to /var/db/emby *Thanks BurntTech mv /var/db/emby-server /var/db/emby Changed to reflect new FreeBSD package. Edited July 31, 2018 by constrict 1 Link to comment Share on other sites More sharing options...
Luke 37046 Posted May 12, 2018 Share Posted May 12, 2018 Great info, thanks ! Link to comment Share on other sites More sharing options...
MRobi 159 Posted May 17, 2018 Share Posted May 17, 2018 That seems more complicated than it needs to be. I've manually updated my Emby server on FreeNAS since I switched to iocage and I use a much simpler process than that. 1: putty(or similar) into your freenas server 2: iocage console emby 3: service emby-server stop 4: cd /tmp 5: fetch https://github.com/MediaBrowser/Emby/releases/download/3.4.1.5/Emby.Mono.zip (swap with address of latest file found here: https://github.com/MediaBrowser/Emby/releases) 6: unzip -d /tmp/emby Emby.Mono.zip 7: cp -Rfp /tmp/emby/ /usr/local/lib/emby-server 8: rm -r /tmp/emby 9: rm /tmp/Emby.Mono.zip 10: service emby-server start 6 Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 24, 2018 Share Posted May 24, 2018 Trying to manually upgrade to 3.4.1.0 and I am good up to point of make makeplist command and I get... make: "/usr/ports/Mk/bsd.port.mk" line 1173: Unable to determine OS version. Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. Link to comment Share on other sites More sharing options...
Luke 37046 Posted May 25, 2018 Share Posted May 25, 2018 What are you trying to build? Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 25, 2018 Share Posted May 25, 2018 (edited) Was trying to upgrade emby to 3.4.1.0 following 'constrict' instructions from first post. Edited May 25, 2018 by nuttyclarks Link to comment Share on other sites More sharing options...
adrianwi 237 Posted May 25, 2018 Share Posted May 25, 2018 That seems more complicated than it needs to be. I've manually updated my Emby server on FreeNAS since I switched to iocage and I use a much simpler process than that. 1: putty(or similar) into your freenas server 2: iocage console emby 3: service emby-server stop 4: cd /tmp 5: fetch https://github.com/MediaBrowser/Emby/releases/download/3.4.1.5/Emby.Mono.zip (swap with address of latest file found here: https://github.com/MediaBrowser/Emby/releases) 6: unzip -d /tmp/emby Emby.Mono.zip 7: cp -Rfp /tmp/emby/ /usr/local/lib/emby-server 8: rm -r /tmp/emby 9: rm /tmp/Emby.Mono.zip 10: service emby-server start This works perfectly and is also a great way of playing with the beta versions which are never available through the ports. Link to comment Share on other sites More sharing options...
bpbenich 10 Posted May 25, 2018 Share Posted May 25, 2018 Trying to manually upgrade to 3.4.1.0 and I am good up to point of make makeplist command and I get... make: "/usr/ports/Mk/bsd.port.mk" line 1173: Unable to determine OS version. Ei ther define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. This occurs when your jail was created by an older version of FreeNAS than your current version. I assume you updated trains from 9.10 to 11.1 Run this command and try again: setenv UNAME_r 10.3-RELEASE Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 25, 2018 Share Posted May 25, 2018 It was a fresh install using 11.1. Running this command : setenv UNAME_r 10.3-RELEASE and get command not found. Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 25, 2018 Share Posted May 25, 2018 Running the other method and running this command: iocage console emby Says jail not found. Then realizing the jail name is emby_1 however the same result. Link to comment Share on other sites More sharing options...
Luke 37046 Posted May 25, 2018 Share Posted May 25, 2018 Do you really need to build anything? You should just be able to replace files in your existing install. Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 25, 2018 Share Posted May 25, 2018 Makes sense, but you are talking to a newbie for freenas. Obviously, by following this I have downloaded the 3.4.1.0 to the tmp directory: cd /tmp fetch https://github.com/MediaBrowser/Emby/archive/3.4.1.0.tar.gz Next is, where do I extract or move the files to? Link to comment Share on other sites More sharing options...
MRobi 159 Posted May 25, 2018 Share Posted May 25, 2018 Running the other method and running this command: iocage console emby Says jail not found. Then realizing the jail name is emby_1 however the same result. my method is assuming the jails were done in iocage. If you're using 11.1 you should pretty much be using all iocage at this point as that is the direction FreeNAS is moving with future updates. Using the old warden jails (older versions of freenas) do the following 1: putty(or similar) into your freenas server 2: jls (find the jail # that corresponds to emby from the list generated, in this example we will assume 5) 3: jexec 5 4: service emby-server stop 5: cd /tmp 6: fetch https://github.com/MediaBrowser/Emby/releases/download/3.4.1.5/Emby.Mono.zip (swap with address of latest file found here: https://github.com/MediaBrowser/Emby/releases) 7: unzip -d /tmp/emby Emby.Mono.zip 8: cp -Rfp /tmp/emby/ /usr/local/lib/emby-server 9: rm -r /tmp/emby 10: rm /tmp/Emby.Mono.zip 11: service emby-server start Link to comment Share on other sites More sharing options...
bpbenich 10 Posted May 26, 2018 Share Posted May 26, 2018 my method is assuming the jails were done in iocage. If you're using 11.1 you should pretty much be using all iocage at this point as that is the direction FreeNAS is moving with future updates. Using the old warden jails (older versions of freenas) do the following 1: putty(or similar) into your freenas server 2: jls (find the jail # that corresponds to emby from the list generated, in this example we will assume 5) 3: jexec 5 4: service emby-server stop 5: cd /tmp 6: fetch https://github.com/MediaBrowser/Emby/releases/download/3.4.1.5/Emby.Mono.zip (swap with address of latest file found here: https://github.com/MediaBrowser/Emby/releases) 7: unzip -d /tmp/emby Emby.Mono.zip 8: cp -Rfp /tmp/emby/ /usr/local/lib/emby-server 9: rm -r /tmp/emby 10: rm /tmp/Emby.Mono.zip 11: service emby-server start If you are attempting this on a FreeNAS plugin of Emby, then the folder structure is a little different. Just replace line 8 with: cp -Rfp /tmp/emby/ /usr/pbi/emby-amd64/lib/emby-server 3 Link to comment Share on other sites More sharing options...
nuttyclarks 1 Posted May 26, 2018 Share Posted May 26, 2018 Worked like a charm... thank you! Link to comment Share on other sites More sharing options...
Luke 37046 Posted May 26, 2018 Share Posted May 26, 2018 Since you're updating to beta, what version of the mono runtime are you guys on? Beta 3.4.1.8 will now require mono 5.2+ so that's going to be a problem if you're still on 4.8.1. And truthfully I would like to require 5.4+. Link to comment Share on other sites More sharing options...
makarai 108 Posted May 27, 2018 Share Posted May 27, 2018 Since you're updating to beta, what version of the mono runtime are you guys on? Beta 3.4.1.8 will now require mono 5.2+ so that's going to be a problem if you're still on 4.8.1. And truthfully I would like to require 5.4+. maybe the fresh port will come at some point Link to comment Share on other sites More sharing options...
constrict 6 Posted June 1, 2018 Author Share Posted June 1, 2018 Since you're updating to beta, what version of the mono runtime are you guys on? Beta 3.4.1.8 will now require mono 5.2+ so that's going to be a problem if you're still on 4.8.1. And truthfully I would like to require 5.4+. FreeBSD currently has mono 5.2.0.215 as port. There is a build error on the port since version 3.4.1.9 so my version of instructions will not work until the port makefile is update (as stated before I do not know how to do this). However, the method of extracting the update works. This is the tracker for the progress on the next revision of mono upgrading it to 5.8.0.108 on FreeBSD https://reviews.freebsd.org/D14006. There have not been updates made to it for quite a while so it is unknown if or when it will be released. 1 Link to comment Share on other sites More sharing options...
Luke 37046 Posted June 1, 2018 Share Posted June 1, 2018 Thanks for the info. Link to comment Share on other sites More sharing options...
BurntTech 6 Posted July 31, 2018 Share Posted July 31, 2018 (edited) Will this still work with the freebsd package. There isn't a mono package for the lastest release of 3.5.2.0. I noticed it extracts /usr/loca/opt instead of lib based ones in the previous posts https://github.com/MediaBrowser/Emby.Releases/releases/tag/3.5.2.0 Edited July 31, 2018 by BurntTech Link to comment Share on other sites More sharing options...
BurntTech 6 Posted July 31, 2018 Share Posted July 31, 2018 (edited) Well I guess I decided to make a mess and go for it Console into emby jail iocage console emby Enable FreeBSD Packages vi /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { url: "https://pkg.freebsd.org/FreeBSD:11:amd64/latest", signature_type: "fingerprints", fingerprints: "/usr/local/etc/pkg/fingerprints/FreeBSD", enabled: true } Install Packages pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvorbis webp libx264 libzvbi Install Emby in jail pkg add --force https://github.com/MediaBrowser/Emby.Releases/releases/download/3.5.2.0/emby-server-freebsd_3.5.2.0_amd64.txz The bad news is it wiped my config. The second bad news is backup plugin isn't working from 3.3.1.0 to 3.5.2.0 and just has a spinning wheel. This process looks close but would need to leverage the internal upgrade process to keep the config since applying the backup isn't an option right now. Update Move old config data into location where new install will be expecting it. I'm not sure what version this changed in but for my testing it was 3.3.1.0 to 3.5.2.0 mv /var/db/emby /var/db/embyfreshinstall cp -R /var/db/emby-server /var/db/emby Edited July 31, 2018 by BurntTech 1 Link to comment Share on other sites More sharing options...
constrict 6 Posted July 31, 2018 Author Share Posted July 31, 2018 (edited) Once you have it installed you can just change pkg add --force https://github.com/MediaBrowser/Emby.Releases/releases/download/X.X.X.X/emby-server-freebsd_X.X.X.X_amd64.txz to the current version and restart emby making updates much easier. You can override the location of the database in the rc.conf (how I set mine is shown below), or as you did, just move it to the new location. sysrc emby_server_data_dir="/config/emby-server" The defaults are found in /usr/local/etc/rc.d/emby-server Edited July 31, 2018 by constrict 1 Link to comment Share on other sites More sharing options...
embeathome 7 Posted November 3, 2018 Share Posted November 3, 2018 (edited) post deleted since I completely removed Emby plugin from Freenas GUI and deleted all jails. Edited November 5, 2018 by embeathome Link to comment Share on other sites More sharing options...
Luke 37046 Posted November 5, 2018 Share Posted November 5, 2018 @@embeathome did you do anything after that? Link to comment Share on other sites More sharing options...
embeathome 7 Posted November 5, 2018 Share Posted November 5, 2018 (edited) Hello Luke. Well...beeing very honest I am lost. I haven't been with FreeNas for more than 3 years and before I was rookie. I have started digging into Emby also after 2-3 years +/- when we, me and my wife had finally a chance to watch some movie through Emby. But it was a catastrophe. Such lagging I never seen before. So I decided to have a look and update Emby. But there was no possibility to update plugin in Freenas GUI/plugins installed. Freenas also changed since then so I updated to 11.1., aksed the question here yesterday, and in between searching for solution how to update. And then realized that it is so complicated for newbie like me... I love Emby, I am also premium user of it. In the past (approx 2012-3) I dediced to go for FreeNas because I didn't like Windows Server, I wanted Freenas just for Media, nothing else. So I have almost no idea about commands in shell, jails, iocage etc. And without that it is very difficult. But I don't want Windows. So I am now trying hard to get it running, the worse thing is that I don't know where to start. Yesterday, after I submitted post, I tried something, and I was even almost able to install Emby to Freenas 11.1., but...I eneded up with some error saying something about checking DNS, something like there is no connection or connection needs to be checked. I was able to ping google from puty on the other hand. I tried the installation again (based on this https://emby.media/community/index.php?/topic/60971-new-freenas-package-for-testing/ but it failed very quickly - jail already existed. Then I gave it up. Now, using user manual, I was able to 'destroy' all datasets in iocage (simple delete dataset didn't work). I started again after deleting stuff in iocage by updating FreeNas to 11.2-RC1 and will try again install Emby with the method descibed in above link. But I am not sure if I have correct version of FreeNas for that, I am not sure if I have to use that method exactly as it is described, I am not sure if I have to make some changes in my LAN setting, also not sure about tunables etc etc. But now I will make a note for every error I get. And I will then ask a question here if you guys don't mind. Now I know how to delete stuff from iocage so I can try to install over and over again until it works Hopefully. Update: So following the installation descibed in above link I was able to go through 1st step (wget https://raw.githubusercontent.com/MediaBrowser/iocage-amd64/master/emby-server.json) Then second step, adjusted command: iocage fetch -P --name emby-server.json ip4_addr="em0|192.168.1.220/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on" I got info/reply: Release 11.1-Release missing, will attempt to fetch it. Fetching: 11.1-Release. And then Dwonloading Manifest, base.txz....etc. Don't know if message about missing 11.1-release is important. Same behavior yesterday. That's for now....Update 2: and I ended up with pkg.freebsd.org could not be reached via DNS, check your network. Attached complete process how it ran, what else should be done and once done do I have to again destroy all datasets in jail and repeat whole process again? installation.txt Edited November 5, 2018 by embeathome 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