Can't delete 2 plugins

Status
Not open for further replies.

ninjai

Explorer
Joined
Apr 6, 2015
Messages
98
So I never really used the freenas CLI so everything I've done (outside of jails) has been from the GUI... until today. I've had these 2 plugins (that I used the GUI to install and attempt to delete) and they just will not delete.

So I tried the commandline route since I had no errors from the GUI:

Code:
[root@freenas /nonexistent]# warden list
ID                       AUTOSTART    STATUS       TYPE        
---------------------------------------------------------------------------
couchpotato_1            Enabled      Running      pluginjail  
couchpotato_2            Enabled      Stopped      pluginjail  
customplugin_1           Enabled      Stopped      pluginjail  
dns                      Enabled      Running      standard    
mineos_1                 Enabled      Running      pluginjail  
owncloud_2               Enabled      Running      pluginjail  
plex                     Enabled      Running      standard    
sickrage_1               Enabled      Running      pluginjail  
transmission_1           Enabled      Running      pluginjail  
unifi_controller         Enabled      Running      standard    
wiki                     Enabled      Running      standard    
[root@freenas /nonexistent]# warden delete couchpotato_2
ERROR: No such jail!
[root@freenas /nonexistent]# warden delete customplugin_1
ERROR: No such jail!
[root@freenas /nonexistent]# 


How can I get rid of these?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630

ninjai

Explorer
Joined
Apr 6, 2015
Messages
98
While I don't know how this happened, I did figure out how to fix it.

First, I listed my storage. I noticed the metadata for the 2 jails was there, but no other jail data like the rest of the jails had.

Then I moved the metadata up a directory (just in case removing it breaks freenas...)

Then I ran warden list again and the problem jails were gone. Shortly after this though I lost connection via SSH and web UI, however my jails still seem to be running so I might still be having some fun when I get home.

Code:
[root@freenas /mnt/Storage/Jails]# ls
.couchpotato_1.meta                             .warden-template-pluginjail--x64
.couchpotato_2.meta                             .warden-template-pluginjail--x64-20150730161051
.customplugin_1.meta                            .warden-template-standard--x64
.dns.meta                                       .warden-template-standard--x64-20150621081034
.mineos_1.meta                                  .wiki.meta
.owncloud_2.meta                                couchpotato_1
.plex.meta                                      dns
.plugins                                        mineos_1
.sickrage_1.meta                                owncloud_2
.transmission_1.meta                            plex
.unifi_controller.meta                          sickrage_1
.warden-files-cache                             transmission_1
.warden-template-VirtualBox-4.3.12              unifi_controller
.warden-template-pluginjail                     wiki
[root@freenas /mnt/Storage/Jails]# mv .couchpotato_2.meta/ ../
[root@freenas /mnt/Storage/Jails]# mv .customplugin_1.meta/ ../
[root@freenas /mnt/Storage/Jails]# jls
   JID  IP Address      Hostname                      Path
     1  -               couchpotato_1                 /mnt/Storage/Jails/couchpotato_1
     2  -               dns                           /mnt/Storage/Jails/dns
     3  -               mineos_1                      /mnt/Storage/Jails/mineos_1
     4  -               owncloud_2                    /mnt/Storage/Jails/owncloud_2
     5  -               plex                          /mnt/Storage/Jails/plex
     6  -               sickrage_1                    /mnt/Storage/Jails/sickrage_1
     7  -               transmission_1                /mnt/Storage/Jails/transmission_1
     8  -               unifi_controller              /mnt/Storage/Jails/unifi_controller
     9  -               wiki                          /mnt/Storage/Jails/wiki
[root@freenas /mnt/Storage/Jails]# warden list
ID                       AUTOSTART    STATUS       TYPE
---------------------------------------------------------------------------
couchpotato_1            Enabled      Running      pluginjail
dns                      Enabled      Running      standard
mineos_1                 Enabled      Running      pluginjail
owncloud_2               Enabled      Running      pluginjail
plex                     Enabled      Running      standard
sickrage_1               Enabled      Running      pluginjail
transmission_1           Enabled      Running      pluginjail
unifi_controller         Enabled      Running      standard
wiki                     Enabled      Running      standard
[root@freenas /mnt/Storage/Jails]#
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Ah, the old metadata bug. I've hit that in the past. As long as the jail is not running, the dataset doesn't exist, you can safely remove the .meta directory.
 
Status
Not open for further replies.
Top