Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

iocage jails no longer working after update from 11.1-U2 to 11.1-U4

Status
Not open for further replies.

ManfredU

Member
Joined
Apr 18, 2017
Messages
26
After the update I noticed that the jails are no longer visible in the new GUI.

All iocage commands throw similiar errors:

$ iocage list
You need to be root to convert the configurations to the new format!

$ sudo iocage list
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage/cli/list.py", line 114, in cli
dataset_type, header, _long, _sort, plugin=plugins, quick=quick)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1199, in list
exit_on_error=self.exit_on_error).list_datasets()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_list.py", line 76, in list_datasets
_all = self.list_all(ds)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_list.py", line 154, in list_all
conf = iocage.lib.ioc_json.IOCJson(mountpoint).json_load()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 416, in json_load
conf = self.json_check_config(conf)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 893, in json_check_config
with open(freebsd_version, "r") as r:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/iocage/releases/11.1-RC3/root/bin/freebsd-version'


$ ls /mnt/iocage/releases/
11.0-RELEASE 11.1-RELEASE



$ sudo iocage start ALL
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage/cli/start.py", line 54, in cli
ioc.IOCage(exit_on_error=True, jail=jail, rc=rc).start()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1596, in start
self.__jail_order__("start")
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 172, in __jail_order__
path, exit_on_error=self.exit_on_error).json_load()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 416, in json_load
conf = self.json_check_config(conf)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 893, in json_check_config
with open(freebsd_version, "r") as r:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/iocage/releases/11.1-RC3/root/bin/freebsd-version'
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,346
There should be part of that message that you didn't include that say to run iocage -f list to convert it to the new format. Switch to root before running that command, su followed by the root password.
 

ManfredU

Member
Joined
Apr 18, 2017
Messages
26
Same error:

$ sudo iocage -f list
Password:
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/iocage/cli/list.py", line 114, in cli
dataset_type, header, _long, _sort, plugin=plugins, quick=quick)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 1199, in list
exit_on_error=self.exit_on_error).list_datasets()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_list.py", line 76, in list_datasets
_all = self.list_all(ds)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_list.py", line 154, in list_all
conf = iocage.lib.ioc_json.IOCJson(mountpoint).json_load()
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 416, in json_load
conf = self.json_check_config(conf)
File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_json.py", line 893, in json_check_config
with open(freebsd_version, "r") as r:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/iocage/releases/11.1-RC3/root/bin/freebsd-version'
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,346
Might want to file a bug report on that.
 
Status
Not open for further replies.
Top