Error: Jail: <jailname> has a missing configuration, please check that the dataset is mounted

ariyes

Cadet
Joined
Jun 24, 2021
Messages
5
Hi everyone

First of all thanks for this awesome open-source software and the community, this is my first post in this forum, but I am using FreeNAS for a few years now. A big fan of it.

Recently I moved my FreeNAS from Old hardware to new hardware. I had an "Emby" Jail in the old server that I moved in new hardware and working fine, I had to edit the fstab file in the emby root folder after importing the jail and match with the new pool/dataset name. All working fine till this point.

Today when I try to install the plugin transmission or nextcloud or any other plugin I get this error:

Screenshot 2021-06-25 at 02.40.02.png


I try to find a solution on the internet and failed. there are some solutions I found like trying DHCP server, fix gateway IP, check and edit datastore name if there is an empty "space" etc etc. none of it working for me. I am still getting this same message Jail: <jailname> has a missing configuration, please check that the dataset is mounted


Anybody suggest to me how can I fix it and install the ixsystems and community plugins from the freenas GUI.

My current config is:

Dell T420 Server
2 X E5-2420 0 @ 1.90GHz CPU
32 GB RAM
FreeNAS-11.3-U5

Any suggestion is appreciated.
Thanks in advance
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Do you find /mnt/<poolname>/iocage/.plugins ?

How about /mnt/<poolname>/iocage/jails/nextcloud/config.json ?
 

ariyes

Cadet
Joined
Jun 24, 2021
Messages
5
Do you find /mnt/<poolname>/iocage/.plugins ?

How about /mnt/<poolname>/iocage/jails/nextcloud/config.json ?


This is what i have in /mnt/<poolname>/iocage/.plugins

Code:
root@nas1[~]# cd /mnt/datastore1/iocage/.plugins
root@nas1[/mnt/datastore1/iocage/.plugins]# ls
github_com_freenas_iocage-ix-plugins_git        github_com_ix-plugin-hub_iocage-plugin-index_git
root@nas1[/mnt/datastore1/iocage/.plugins]#


And for the

Code:
root@nas1[~]# cd /mnt/datastore1/iocage/jails/emby/           
root@nas1[/mnt/datastore1/iocage/jails/emby]# cat config.json
{
    "basejail": 1,
    "boot": 1,
    "defaultrouter": "172.16.0.1",
    "host_hostname": "emby",
    "host_hostuuid": "emby",
    "ip4_addr": "vnet0|172.16.0.2/30",
    "jail_zfs_dataset": "iocage/jails/emby/data",
    "last_started": "2021-06-24 11:09:25",
    "nat": 1,
    "nat_forwards": "tcp(8096:8096)",
    "plugin_name": "emby",
    "plugin_repository": "https://github.com/freenas/iocage-ix-plugins.git",
    "release": "11.3-RELEASE-p14",
    "type": "pluginv2",
    "vnet": 1,
    "vnet0_mac": "0e9dc079aa5f 0e9dc079aa60"
}#                                                 


I dont have nextcloud jails or config.jason file and any other jails or config.jason files. Right now I have only one Jail which is Emby and that I was imported from the old server.


Thanks for your quick reply :)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I have only one Jail which is Emby and that I was imported from the old server
How did you do the import? create a new jail and copy the old one over the top? using iocage export/import?
 

ariyes

Cadet
Joined
Jun 24, 2021
Messages
5
N
How did you do the import? create a new jail and copy the old one over the top? using iocage export/import?

Yes I took the jail backup via export command then manually copy that zip file in the new server and import it from command line.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is your data and config inside or outside the jail?

If it's inside, now is the perfect time to fix that and make a new jail with data and config mounts so you don't have this problem in future.

(you can also read my implied comment that I don't like the idea of wasting time messing around with broken jails when a new jail should only take a few minutes to create and get your data and config mounted to).
 

ariyes

Cadet
Joined
Jun 24, 2021
Messages
5
Is your data and config inside or outside the jail?

If it's inside, now is the perfect time to fix that and make a new jail with data and config mounts so you don't have this problem in future.

(you can also read my implied comment that I don't like the idea of wasting time messing around with broken jails when a new jail should only take a few minutes to create and get your data and config mounted to).

well I am using free as for 2 years but I am not that expat on it. Will you be able to help me? I am willing to pay for your time :)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
No need for payment...

I'm assuming you have the data/media mount under control already as you mentioned the fstab before.

What you will probably look for first is where emby stores the config.

If your jail is a plugin and originally from an older version (FreeNAS 9.10), you may find it under /mnt/datastore1/iocage/jails/emby/root/var/db/emby

If it's a bit newer, it should be under /mnt/datastore1/iocage/jails/emby/root/var/db/emby-server/config

Make yourself a new dataset in a place where it makes sense (something like datastore1/apps/emby)

Copy your data from the old jail to that location:
rsync -auv /mnt/datastore1/iocage/jails/emby/root/var/db/emby-server/config /mnt/datastore1/apps/emby

do a bit of checking to make sure you have a good copy in that dataset (including permissions):
ls -l /mnt/datastore1/apps/emby

Then you're ready to make a brand new jail and mount that dataset location into it:

First, make your new jail... use the plugin or manual, whichever you like. for the examples below I'm calling it newemby

Then clean out the initial config put there as part of the new jail setup:
rmdir /mnt/datastore1/iocage/jails/newemby/root/var/db/emby-server/config

Make a fresh/empty directory there:
mkdir /mnt/datastore1/iocage/jails/newemby/root/var/db/emby-server/config

Then (making sure the jail is started first if you're using the CLI for this) add the mount:
iocage fstab newemby -a /mnt/datastore1/apps/emby /var/db/emby/server/config nullfs rw 0 0


You might need to assign the emby user permissions to that newly made directory too, so:
iocage exec newemby chown -R emby:emby /var/db/emby-server/config

Assuming your media/data is mounted to that new jail also in the same location, restart the new jail and all should be good.
 

ariyes

Cadet
Joined
Jun 24, 2021
Messages
5
Wow Sretalla, thanks for the detailed reply, I will give it a try tomorrow and let you know the update.

have a great day
 
Top