Migrate Emby configuration

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
Hi,

I've manually installed Emby, using a jail created by me. Now I would like to migrate to the FreeNAS official Emby plugin, in order to have the jail updated.

Is it possible to create the jail from the GUI using the plugin, then migrate both jail and Emby configuration in order to have everything ready?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Why can't you update Emby inside your jail via the usual Emby update channels?
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
Why can't you update Emby inside your jail via the usual Emby update channels?
I update Emby via Emby channels, but I would like to update the release, now my jail is on 11.3-RELEASE-p7, while another jail (that I've update just pressing the "update" button), is on 11.3-RELEASE-p11. If I try to update emby plugin, I got the error: "Error: A plugin manifest matching emby-server could not be found!"
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, to update the release to 11.3-RELEASE-p11, you should run iocage update <name of jail>.
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
OK, to update the release to 11.3-RELEASE-p11, you should run iocage update <name of jail>.
Code:
root@captain:/mnt/rossi-data/home # iocage list
+-----+-------------+-------+--------------+--------------+
| JID |    NAME     | STATE |   RELEASE    |     IP4      |
+=====+=============+=======+==============+==============+
| 1   | emby-server | up    | 11.3-RELEASE | DHCP         |
+-----+-------------+-------+--------------+--------------+
| 3   | jdownloader | up    | 11.3-RELEASE | 192.168.1.25 |
+-----+-------------+-------+--------------+--------------+
root@captain:/mnt/rossi-data/home # iocage update emby-server
Snapshot: rossi-data/iocage/jails/emby-server@ioc_update_11.3-RELEASE-p7_2020-07-11_21-23-28 created.
Updating plugin...
Snapshotting emby-server...
Snapshot already exists
Updating plugin INDEX...
A plugin manifest matching emby-server could not be found!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
What do you have set for iocage get plugin_name emby-server and iocage get plugin_repository emby-server?
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
Code:
root@captain:/mnt/rossi-data/home # iocage get plugin_name emby-server
emby-server
root@captain:/mnt/rossi-data/home # iocage get plugin_repository emby-server
https://github.com/freenas/iocage-ix-plugins.git
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
That's the problem. You faked your jail into thinking it's an official plugin. You'll need to iocage set plugin_name=none plugin_repository=none emby-server, and restart the jail before trying an update again.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
For the record, https://github.com/freenas/iocage-ix-plugins.git shows these plugins:

1594506045442.png


If you want to keep using the plugin name property for your jail, it should be just emby, not emby-server.
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
That's the problem. You faked your jail into thinking it's an official plugin. You'll need to iocage set plugin_name=none plugin_repository=none emby-server, and restart the jail before trying an update again.
Code:
root@captain:/mnt/rossi-data/home # iocage set plugin_name=none plugin_repository=none emby-server
plugin_name: emby-server -> none
plugin_repository: https://github.com/freenas/iocage-ix-plugins.git -> none
root@captain:/mnt/rossi-data/home # iocage list
+-----+-------------+-------+--------------+--------------+
| JID |    NAME     | STATE |   RELEASE    |     IP4      |
+=====+=============+=======+==============+==============+
| 6   | emby-server | up    | 11.3-RELEASE | DHCP         |
+-----+-------------+-------+--------------+--------------+
| 3   | jdownloader | up    | 11.3-RELEASE | 192.168.1.25 |
+-----+-------------+-------+--------------+--------------+
root@captain:/mnt/rossi-data/home # iocage restart emby-server
* Stopping emby-server
  + Executing prestop OK
  + Stopping services OK
  + Tearing down VNET OK
  + Removing devfs_ruleset: 5 OK
  + Removing jail process OK
  + Executing poststop OK
No default gateway found for ipv6.
* Starting emby-server
  + Started OK
  + Using devfs_ruleset: 5
  + Configuring VNET OK
  + Using IP options: vnet
  + Starting services OK
  + Executing poststart OK
  + DHCP Address: 192.168.1.116/24
root@captain:/mnt/rossi-data/home # iocage update emby-server
Snapshot: rossi-data/iocage/jails/emby-server@ioc_update_11.3-RELEASE-p7_2020-07-12_00-53-58 created.
Updating plugin...
Snapshotting emby-server...
Snapshot already exists
Updating plugin INDEX...
A plugin manifest matching emby-server could not be found!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, what's the output of iocage get type emby-server? It should be just jail, not plugin or pluginv2. You can use a similar iocage set command to change the type. Also, when you restart the jail, use iocage stop to fully stop it, and then iocage start to bring it back up.
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
You can use a similar iocage set command to change the type.
I stopped the jail, and I verified that the type is not correct:
Code:
root@captain:/mnt/rossi-data/home # iocage get type emby
pluginv2


I tried to understand the
Code:
iocage set
command, but I cannot figure out how to change the type from pluginv2 to jail. Can you help me?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
iocage set type=jail emby-server.
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
Neverending story:

Code:
root@captain:/mnt/rossi-data/home # iocage set type=jail emby-server
type cannot be changed by the user.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, then you'll need to try to make the jail look more like an official plugin.
Code:
iocage set plugin_name=emby emby-server
iocage set plugin_repository=https://github.com/freenas/iocage-ix-plugins.git emby-server


The only other option is to delete and recreate the jail as a generic jail.
 

giacombum

Explorer
Joined
Jul 18, 2017
Messages
61
OK, then you'll need to try to make the jail look more like an official plugin.
Code:
iocage set plugin_name=emby emby-server
iocage set plugin_repository=https://github.com/freenas/iocage-ix-plugins.git emby-server


The only other option is to delete and recreate the jail as a generic jail.
Now it works, thank you! So now my Emby jail is as the official Emby plugin? I don't need to update it anymore using Emby resources but only via FreeNAS GUI?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
I don't know, as I don't use Emby myself. (I'm a Plex guy.) Try watching it over a few updates to see if it behaves correctly.
 

William Bravin

Contributor
Joined
Mar 16, 2016
Messages
194
hello all

I am in a pickle

Due top power fluctuation that corrupted my boot driver, i had to reinstall freenas 11.3 U5. I had to install emby server again. I configured it and started the jail. It started fine and gave an ip address for the jail. In this case 192.168.1.42

If look at my network map on my aus rt t87U and the map confirms the ip address Kool

now i go to my browser and type that ip address. and i get the site can't be reached 192.168.1.142 refuse to connect

I rebooted the router
I rebooted the pc
I uninstalled and re installed the network adapter of the pc
all to no avail
DHCP
Vnet
Berkeley are all ticked
vnet default is set to auto

on both of my server i have the same issue

please what am i missing

thank you in advance for reading and responding t5o this post
 
Top