itsryan
Dabbler
- Joined
 - Jan 11, 2017
 
- Messages
 - 20
 
Hello All,
I have been messing around with iocage and I was able to get a new jail created no problem but now that in trying to destroy the jail I run into a error.
Keep in mind that this exact same error appears when im trying to stop the jail.
The error started after running this command
From what I can tell the dataset was not created when the jail was created.
This is the error
Also the command I used to create the jail was
The main thing I need help with is im looking to delete the jail. Can anyone help me please.
EDIT: I have confirmed that the 'MainStorage/iocage/jails/nzbget/data' was created and is located in the exact path.
	
		
			
		
		
	
			
			I have been messing around with iocage and I was able to get a new jail created no problem but now that in trying to destroy the jail I run into a error.
Keep in mind that this exact same error appears when im trying to stop the jail.
The error started after running this command
 iocage set jail_zfs=on nzbget without the quotes.From what I can tell the dataset was not created when the jail was created.
This is the error
Code:
[root@nitroxygen ~]# iocage destroy nzbget																						
																																	
This will destroy jail nzbget																									
																																	
Are you sure? [y/N]: y																											
Stopping nzbget																													
Destroying nzbget																												
cannot open 'MainStorage/iocage/jails/nzbget/data': dataset does not exist														
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/destroy.py", line 128, in cli											
	skip_jails=True).destroy_jail()																								
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/iocage.py", line 754, in destroy_jail									
	exit_on_error=self.exit_on_error).destroy_jail(path)																			
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_destroy.py", line 210, in destroy_jail								
	iocage.lib.ioc_stop.IOCStop(uuid, path, conf, silent=True)																	
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_stop.py", line 52, in __init__										
	self.__stop_jail__()																											
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_stop.py", line 165, in __stop_jail__								
	f"{self.pool}/{jdataset}"])																									
  File "/usr/local/lib/python3.6/site-packages/iocage/lib/ioc_common.py", line 451, in checkoutput								
	out = su.check_output(*args, **kwargs)																						
  File "/usr/local/lib/python3.6/subprocess.py", line 336, in check_output														
	**kwargs).stdout																												
  File "/usr/local/lib/python3.6/subprocess.py", line 418, in run																
	output=stdout, stderr=stderr)																								
subprocess.CalledProcessError: Command '['zfs', 'list', '-H', '-r', '-o', 'name', '-S', 'name', 'MainStorage/iocage/jails/nzbget/dat
a']' returned non-zero exit status 1.
Also the command I used to create the jail was
Code:
iocage create -n nzbget boot=on ip4_addr="igb0|192.168.1.10/24 -r 11.1-RELEASE
The main thing I need help with is im looking to delete the jail. Can anyone help me please.
EDIT: I have confirmed that the 'MainStorage/iocage/jails/nzbget/data' was created and is located in the exact path.
			
				Last edited by a moderator: