Jump to content


Photo

New FreeNAS Package for testing


  • Please log in to reply
371 replies to this topic

#1 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 21 July 2018 - 10:18 AM

We're pleased to announce a brand new FreeNAS package for Emby Server. Here are the highlights and advantages over the current package:

  • Fewer installation steps
  • New releases will be immediately available
  • Beta builds will now also be immediately available just like other platforms !
  • Currently based on mono, but we'll be switching to .NET Core as soon as it's available for FreeBSD. Keep an eye on: https://github.com/d...efx/issues/1626

Installation

  • Requires FreeNAS 11.1+, but 11.1 users will need to use the new web UI that FreeNAS occasionally prompts you about.
  • There's no one click button in the freenas web interface that we could find (hopefully that'll get added in the final release). But it's fairly easy to install anyway via the shell in the web interface:
wget https://raw.githubusercontent.com/MediaBrowser/iocage-amd64/master/emby-server.json
iocage fetch -P --name emby-server.json ip4_addr="vtnet0|192.168.122.3/24" defaultrouter="192.168.0.1" dhcp="on" vnet="on" bpf="yes" allow_raw_sockets="1" boot="on"
  • Replace vtnet0 with your primary network interface (ifconfig will print them). vtnet0 should be set to a real network interface, like eth0. vtnet0 is just the name of the virtualized network interface in our test VM. 
  • Replace 192.168.122.3 and 24 with the IP and netmast you desire (should be different from that of your freenas box).  You can edit this afterwards in the jail configuration interface, but since the plugin needs internet access to install, the initial configuration should be valid.
  • After installation you can add mount points using the jail interface to access your media files.

Update 

iocage console emby-server
service emby-server stop
pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/3.6.0.FUTURE/emby-server-freebsd_3.6.0.FUTURE_amd64.txz
service emby-server start

Optional

  • Change the User and Group of emby-server to have no file ownership issues (here e.g. needs to be UID=GID=1101)
iocage console emby-server-beta
service emby-server stop
pw groupmod emby -n emby -g 1101
pw usermod emby -n emby -u 1101 -g 1101
chown -R emby:emby /var/db/emby(hit tab)
sysrc 'emby_server_user=emby'
service emby-server start

Video

 

Known Issues:

When mounting a folder to the jail via the freenas UI  folder creation fails, you have to create manually the mounting folders


  • Eddie, Kent, Baenwort and 4 others like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 21 July 2018 - 10:19 AM

@Vidman



#3 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 22 July 2018 - 07:45 AM

thanks


Edited by makarai, 22 July 2018 - 08:01 AM.


#4 Eddie OFFLINE  

Eddie

    Advanced Member

  • Members
  • 125 posts
  • Local time: 09:58 PM

Posted 22 July 2018 - 11:26 AM

This is excellent news... I was trying to decide about moving emby off of freenas and run it on a vm ubuntu server but this sounds excellent and makes my life easier.. thank you for the hard work

#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 22 July 2018 - 01:39 PM

Please let us know how you get on. Thanks.



#6 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 274 posts
  • Local time: 02:58 AM
  • LocationScotland

Posted 22 July 2018 - 02:16 PM

I don't think this will work on FreeNAS at the minute, as even the 11.2 Beta is based on FreeBSD 11.1 so 11.2 won't run in an iocage jail.

 

It might if you edit the .json file and change the release to 11.1.



#7 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:58 AM
  • LocationLille, France

Posted 22 July 2018 - 02:25 PM

It does, I'm using the 11.2 beta, iocage works fine.



#8 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 274 posts
  • Local time: 02:58 AM
  • LocationScotland

Posted 22 July 2018 - 03:25 PM

Using 11.2-RELEASE in the .json file?

 

From this thread, I was under the impression you couldn't run a version of FreeBSD newer than the one FreeNAS was using in an iocage jail.

 

Running FreeNAS over the last 12 months has been a challenge at times!  I managed to avoid the disaster that was 10/Corral, but switching from VirtualBox to bhyve and Warden to iocage hasn't been straightforward, and we're still not quite there.  



#9 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 23 July 2018 - 03:04 AM

Actually, i was trying to get this up and running, but ran into a problem.

 

When i initially created the jail and installed emby, it would run fine. However, once the jail is stopped in Freenas i cannot start it again, it stops with the error message below.

[root@freenas ~]# iocage list
+-----+-------------+-------+--------------+---------------+
| JID |    NAME     | STATE |   RELEASE    |      IP4      |
+=====+=============+=======+==============+===============+
| 20  | emby        | up    | 11.1-RELEASE | DHCP          |
+-----+-------------+-------+--------------+---------------+
| -   | emby-server | down  | 11.2-RELEASE | 192.168.0.110 |
+-----+-------------+-------+--------------+---------------+
[root@freenas ~]# iocage start emby-server

Host: 11.1 is not greater than jail: 11.2
This is unsupported.


#10 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 23 July 2018 - 03:35 AM

So the solution to my problem was just changing the release to 11.1

wget https://raw.githubusercontent.com/MediaBrowser/iocage-amd64/master/emby-server.json

#change freenas release to 11.1 (texteditor)

#to get proper vnet going
iocage fetch -P --name emby-server.json ip4_addr="vnet0|192.168.0.110/24" vnet="on" allow_raw_sockets="1" boot="on" defaultrouter="192.168.0.1"

#typical change in UID and GID so no issues with storage 
iocage console emby-server
service emby-server onestop
pw groupmod emby -n emby -g 1000
pw usermod emby -n emby -u 1000 -g 1000
chown -R emby:emby /var/db/emby-server 
sysrc 'emby_server_user=emby'
service emby-server onestart

Edited by makarai, 27 July 2018 - 05:32 AM.


#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 23 July 2018 - 08:52 AM

Interesting, thanks for the info.

#12 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:58 AM
  • LocationLille, France

Posted 23 July 2018 - 01:20 PM

@makarai Thanks for the heads up, I changed the json to use 11.1 instead of 11.2.


Edited by alucryd, 23 July 2018 - 01:20 PM.


#13 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 274 posts
  • Local time: 02:58 AM
  • LocationScotland

Posted 23 July 2018 - 04:55 PM

There's a thread here and a link to a bug report as it shouldn't really let you create the jail in the first place.



#14 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 24 July 2018 - 02:28 AM

@Luke whats the benefit for running this jail with 11.2 instead of 11.1 ?

Also all the freenas plugins are now based on 11.2, i guess, the freenas team will release a fix quite soon otherwise all the jails will stop when people reboot. 



#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 24 July 2018 - 10:58 AM

Well the package is built based on the new procedures for 11.2, so take that into consideration. Other than that I'm not sure of any benefits.



#16 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:58 AM
  • LocationLille, France

Posted 24 July 2018 - 12:55 PM

Binaries and libraries in the package are built on freebsd 11.2, as long as there are no ABI differences between 11.1 and 11.2 it should be fine, but using 11.2 is the safer option.



#17 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 24 July 2018 - 01:10 PM

Binaries and libraries in the package are built on freebsd 11.2, as long as there are no ABI differences between 11.1 and 11.2 it should be fine, but using 11.2 is the safer option.

 

 

I guess that's the way to go then.



#18 eraser8 OFFLINE  

eraser8

    Advanced Member

  • Members
  • 144 posts
  • Local time: 09:58 PM

Posted 26 July 2018 - 10:51 PM

Hi Luke!

 

Great job to porting this to iocage! I installed it (3.5.0.0) yestarday and all working great with Freenas 11.2. I follow the simple steps above.

 

Now, when I log to my dashboard, it say that there is a newer version available (3.5.1.0). What is the steps to update the emby server in iocage?

 

Thanks



#19 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108347 posts
  • Local time: 09:58 PM

Posted 26 July 2018 - 10:59 PM

Ah yes i hadn't updated the script yet for 3.5.1. I just did that.

 

So to update you'll basically just go through the install steps again. Thanks.



#20 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 313 posts
  • Local time: 03:58 AM

Posted 27 July 2018 - 05:05 AM

Ah yes i hadn't updated the script yet for 3.5.1. I just did that.

 

So to update you'll basically just go through the install steps again. Thanks.

 

you sure about that? 

 

i have tried it here are my findings

new emby-server.json will be downloaded, since its already on your drive it will be named emby-server.json.1

- when you run the fetch command it will take the emby-server.json (old) file and this will fail as emby-server iocage already exists.

- if you delete the old json, it will still fail with the same result.

- if you jump into the jail, and update you'll overwrite your existent installation. so that's no good either. 


Edited by makarai, 30 July 2018 - 05:41 AM.





1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    wkellyo