Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created July 25, 2020 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/df12b901e15d269e3a5e8f6367217dd2 to your computer and use it in GitHub Desktop.
Save dlangille/df12b901e15d269e3a5e8f6367217dd2 to your computer and use it in GitHub Desktop.
Messed up, removed most of jail
[dan@x8dtu:/iocage/jails/x8dtu-nginx01/root] $ sudo iocage restart x8dtu-nginx01
* Stopping x8dtu-nginx01
+ Executing prestop OK
+ Stopping services OK
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_stop.py", line 189, in __stop_jail__
child], stderr=su.STDOUT)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 612, in checkoutput
out = su.check_output(*args, **kwargs)
File "/usr/local/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['setfib', '0', 'jexec', 'ioc-x8dtu-nginx01', 'zfs', 'umount', 'main_tank/data/freshports/backend/cache/packages']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/iocage_cli/restart.py", line 41, in cli
ioc.IOCage(jail=jail).restart(soft)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 1541, in restart
self.stop()
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 1934, in stop
force=force, suppress_exception=ignore_exception
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_stop.py", line 62, in __init__
raise e
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_stop.py", line 59, in __init__
self.__stop_jail__()
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_stop.py", line 201, in __stop_jail__
err.output.decode("utf-8").rstrip()
RuntimeError: internal error: failed to initialize ZFS library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment