Can't delete some jails?

Status
Not open for further replies.

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
https://forums.freenas.org/index.ph...onger-exists-from-the-list.20441/#post-118454

Found this post
Found the file
Got the tool to edit the file.
Be damned if I can figure out where the actual database entry for the jails are. I found 3 entries which do NOT seem to contain a reference to my Plex DB

jails_jailtemplate
jails_jailsconfiguration
jails_jailmountpoint

Any idea? I don't know how to search with this SQLite manager - the entire DB for the term "plex"
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Anyone? I'm half way there.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I don't think jails are stored in the configuration database. I'm pretty sure everything related to your jails is written to disk. I'll caveat here that I'm not 100% in my recollection, but I know I've cleaned up some jail issues by just deleting files from the jail root.

Try deleting the relevant ".meta" directories from your jail root. Not all of them, just the ones you're trying to delete. Reboot for good measure.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I don't think jails are stored in the configuration database. I'm pretty sure everything related to your jails is written to disk. I'll caveat here that I'm not 100% in my recollection, but I know I've cleaned up some jail issues by just deleting files from the jail root.

Try deleting the relevant ".meta" directories from your jail root. Not all of them, just the ones you're trying to delete. Reboot for good measure.

Code:
root@freenas /mnt/ARRAY]# cd jails/											
[root@freenas /mnt/ARRAY/jails]# ls -l										
total 628																	  
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 Aug 18 12:38 .qBittorrent_3.meta				
drwxrwxrwx   2 root  wheel  17 Sep 11 16:06 .sabnzbd_2.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 Sep 11 16:00 .warden-template-pluginjail		
drwxr-xr-x  18 root  wheel  22 Aug 26  2015 .warden-template-Pluginjail		
drwxr-xr-x  18 root  wheel  22 Apr 26  2015 .warden-template-pluginjail--x64	
drwxr-xr-x  18 root  wheel  22 Sep 30  2016 .warden-template-pluginjail-10.3-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 Apr 27  2015 .warden-template-standard--x64	
drwxr-xr-x  17 root  wheel  21 Sep 16  2016 .warden-template-standard-10.3-x64
drwxr-xr-x  18 root  wheel  22 Feb 11  2016 couchpotato_2					  
drwxr-xr-x  20 root  wheel  25 Aug 24 11:16 qBittorrent_3					  
drwxr-xr-x  18 root  wheel  22 Sep 11 16:00 sabnzbd_2						  
drwxr-xr-x  18 root  wheel  22 Sep 30  2016 sickrage_1						
[root@freenas /mnt/ARRAY/jails]#		



So maybe just removing these 2 files, nothing in the database then?
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
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Took the risk, seems to have worked to be honest - thank you, hope the thread helps others.
 
Status
Not open for further replies.
Top