Can't delete some jails?

Status
Not open for further replies.

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I can't delete my Plex jail
I've even gone in to the storage section in jails and deleted all storage mappings (I'm sure there used to be a bug, disallowing jail deletion if storage still existed?)
Still no luck, highlight it, hit delete - prompt comes up, hit yes, it remains.

Anyone else seeing this?

Also the delete icon is ENTIRLY missing for my crashplan jail, so I can't remove that at all?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Also my crashplan jail is missing even the delete icon.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
FreeNAS version, hardware specs and error messages required for all posts. Please read the rules before responding.

Sent from my Nexus 5X using Tapatalk
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Do you get any errors in the console "window" at the bottom? They're rather hard to see before they disappear.
 
D

dlavigne

Guest
Also, can you delete the dataset for the plugin in Storage -> View Volumes?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Do you get any errors in the console "window" at the bottom? They're rather hard to see before they disappear.

Unfortunately, I do not, just a "jail successfully deleted" up the top.
FreeNAS-9.10.2-U6 (561f0d7a1) (latest) as per my signature, hardware, as per my signature.

Is there something else I can do?

Obviously, I can't even produce an error log or message for crashplan, it literally is lacking the delete icon, so I can't fault it - I simply can't delete it at all.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Also, can you delete the dataset for the plugin in Storage -> View Volumes?
Interestingly, just noticed both, do not have storage datasets.
Yeah, I've rebooted.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Anyone?
 

Phil2112

Dabbler
Joined
Jun 13, 2016
Messages
16
Is your crashplan jail a standard or plugin jail? If it is a plugin jail (created by adding the plugin), then there isn't typically a delete icon for the jail. You delete the jail by deleting the plugin.

I'm not sure why you can't delete your plex jail if you delete the jail under storage and in the jail section?

Do you have other jails that you want to maintain? If not, you could try to delete all by destroying the jails dataset under storage. That should also destroy your warden, and you can start again if you want.

If there are other jails you want to keep, though, I wouldn't do that. And before doing anything radical always backup your data.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Plex plugin is standard.
Crashplan is pluginjail


I have 4 other jails I quite like and want.

Can I turn on some kind of logging and try again?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I guess, arguably, they aren't really consuming much space, right?
I don't see snapshots for them.
There's no storage for them on the drive
There's no storage mappings


Here's the contents of /mnt/ARRAY/jails/
Code:
[root@freenas ~]# cd /mnt/ARRAY/jails/										
[root@freenas /mnt/ARRAY/jails]# ls -l										
total 595																	  
drwxr-xr-x   2 root  wheel  17 Mar 31  2016 .couchpotato_2.meta				
drwxr-xr-x   2 root  wheel  16 Mar 24  2016 .crashplan_1.meta				  
drwxr-xr-x   2 root  wheel  16 Sep 16  2016 .plex_1.meta					   
drwxr-xr-x   3 www   www	 3 Jul 23  2014 .plugins						   
drwxr-xr-x   2 root  wheel  17 Mar 31  2016 .qBittorrent_1.meta				
drwxr-xr-x   2 root  wheel  17 Mar 31  2016 .sabnzbd_1.meta					
drwxr-xr-x   2 root  wheel  17 Jan  5  2017 .sickrage_1.meta				   
drwxr-xr-x   5 root  wheel   5 Apr 26  2015 .warden-files-cache				
drwxr-xr-x  18 root  wheel  22 Aug 26  2015 .warden-template-Pluginjail		
drwxr-xr-x  18 root  wheel  22 Sep 30  2016 .warden-template-pluginjail		
drwxr-xr-x  18 root  wheel  22 Apr 26  2015 .warden-template-pluginjail--x64   
drwxr-xr-x  18 root  wheel  22 Jul 23  2014 .warden-template-pluginjail-9.2-x64
drwxr-xr-x  18 root  wheel  22 Feb 11  2016 .warden-template-pluginjail-9.3-x64
drwxr-xr-x  17 root  wheel  21 Sep 16  2016 .warden-template-standard		  
drwxr-xr-x  17 root  wheel  21 Apr 27  2015 .warden-template-standard--x64	
drwxr-xr-x  18 root  wheel  22 Feb 11  2016 couchpotato_2					  
drwxr-xr-x  18 root  wheel  23 Aug 26  2015 qBittorrent_1					  
drwxr-xr-x  18 root  wheel  22 Jul 23  2014 sabnzbd_1						  
drwxr-xr-x  18 root  wheel  22 Sep 30  2016 sickrage_1						
[root@freenas /mnt/ARRAY/jails]#
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Oh wait, I thought those were just single files, nope, folders.

Code:
[root@freenas /mnt/ARRAY/jails/.plex_1.meta]# ls -l							 
total 14																		
-rw-r--r--  1 root  wheel   0 Aug  7 13:59 fstab								
-rw-r--r--  1 root  wheel   7 Sep 16  2016 host								 
-rw-r--r--  1 root  wheel   3 Sep 16  2016 id								   
-rw-r--r--  1 root  wheel  17 Sep 16  2016 ipv4								 
-rw-r--r--  1 root  wheel  23 Sep 16  2016 jail-flags						   
-r-xr-xr-x  1 root  wheel  61 Sep 16  2016 jail-post-delete					 
-r-xr-xr-x  1 root  wheel  60 Sep 16  2016 jail-post-start					 
-r-xr-xr-x  1 root  wheel  59 Sep 16  2016 jail-post-stop					   
-r-xr-xr-x  1 root  wheel  60 Sep 16  2016 jail-pre-delete					 
-r-xr-xr-x  1 root  wheel  59 Sep 16  2016 jail-pre-start					   
-r-xr-xr-x  1 root  wheel  58 Sep 16  2016 jail-pre-stop						
-rw-r--r--  1 root  wheel   9 Sep 16  2016 jailtype							 
-rw-r--r--  1 root  wheel  18 Sep 16  2016 mac								 
-rw-r--r--  1 root  wheel   0 Sep 16  2016 vnet								 
[root@freenas /mnt/ARRAY/jails/.plex_1.meta]#		   
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Plex plugin is standard.
Crashplan is pluginjail


I have 4 other jails I quite like and want.

Can I turn on some kind of logging and try again?
Screen shots would be nice so we can actually see what you are talking about. A debug file could help also, I have a feeling there are lots of hidden problems with your system.

Sent from my Nexus 5X using Tapatalk
 

Phil2112

Dabbler
Joined
Jun 13, 2016
Messages
16
Forgot to add above -- make sure the jail is turned off when you try to delete its dataset. I don't think you can delete the dataset if the jail is running.

OK, good, that would explain the issue with the crashplan jail. You should be able to destroy that jail simply by deleting the crashplan plugin.
 
Last edited:

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
"warden_exception('ERROR: No such jail!\n',)"

On attempt to delete the plex jail. It's listed in the jail listing but the actual jail store for it has been nuked (by me, manually perhaps? I'm not sure)

So it looks like the jails section of the UI simply has an entry that shoudln't be there.
(Upgraded to 11 and it's still doing this btw)
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
You'll probably need to fix that before updating to 11.1, as I can see the upgrader grinding to a halt on that error.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
"warden_exception('ERROR: No such jail!\n',)"

On attempt to delete the plex jail. It's listed in the jail listing but the actual jail store for it has been nuked (by me, manually perhaps? I'm not sure)

So it looks like the jails section of the UI simply has an entry that shoudln't be there.
(Upgraded to 11 and it's still doing this btw)
Open up the SQL lite database and edit the jails. You like using the cli so this should be simple.

Sent from my XT1096 using Tapatalk
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
You'll probably need to fix that before updating to 11.1, as I can see the upgrader grinding to a halt on that error.

Thanks Eric, that sounds bad - any tips on how to clean it up?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Short of editing the database by hand, not really.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Short of editing the database by hand, not really.
I've used MySQL console, briefly with Kodi - I know how to drop a table but.... I assume this is a row (?) that needs to be dumped?
 
Status
Not open for further replies.
Top