ERROR: No such jail! when deleting jail

Status
Not open for further replies.

Sonia Hamilton

Dabbler
Joined
Mar 17, 2014
Messages
10
From the web interface I'm trying to delete a jail, but get the error message ERROR: No such jail!. How do I delete the jail from the shell, so that it no longer appears in my web interface?

The storage for the jail has been deleted.

Build FreeNAS-9.2.1.3-RELEASE-x64 (dc0c46b)
Platform Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz
Memory 4071MB
System Time Fri Apr 18 17:54:49 EST 2014
Uptime 5:54PM up 1:20, 1 user
Load Average 0.58, 0.97, 0.87
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
First you upgrade to the minimum RAM.. 8GB. Then you hope your config file isn't damaged because you have less than the minimum. ;)
 

Sonia Hamilton

Dabbler
Joined
Mar 17, 2014
Messages
10
The memory on this system hasn't been a problem for the last year - I don't think upgrading the memory is going to suddenly remove this old jail...

I just want to know where the config file is so I can edit in manually, or the shell command for removing jails.
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
I think you have remove your jail dataset on the storage screen, isn't it?
The correct process is to use the delete button on the bottom of the jail screen GUI.
Try to create a dataset with the same name of your jail on the jail template root, and then try to remove your jail from the jail GUI.
 

Sonia Hamilton

Dabbler
Joined
Mar 17, 2014
Messages
10
> I think you have remove your jail dataset on the storage screen, isn't it?​

As I said in my post, I've already removed the storage.

> The correct process is to use the delete button on the bottom of the jail screen GUI.​
As I said in my post, the delete button on the GUI isn't working. I want a way to remove the jail from the shell.

> Try to create a dataset with the same name of your jail on the jail template root, and then try to remove your jail from the jail GUI.​
I wasn't able to remove the jail while it had storage attached. No reason it would start removing itself when I add back in an unrelated storage that happens to have the same name.
 
Joined
Apr 11, 2014
Messages
13
Did you get a resolution to this? I am experiencing the same problem currently, and would like to be able to remove a jail from the shell.
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
You come to expose your problem, don't explained what you have done before on your jail; I try to provide help (so bad is it), and you answer like you know better (A little bit arrogant to my eyes). So I ask myself why are you asking for help?
As you don't provide enough information, and my feeling is you have done something wrong with the CLI you omit to share, I agree you are on your own with the source Luke. ;)
I don't consider FreeNAS forum as hot line, I see it like a sharing space.
Good Luke!
 

Sonia Hamilton

Dabbler
Joined
Mar 17, 2014
Messages
10
Yeh that's my feeling, next step is "use the source Luke"...

I worked out how to do this, with some find-ing and grep-ing.

Find out where your jails are located; for example I have a volume called vol01 and my jails were kept in the jails directory. I had a jail named pear that I couldn't delete from the interface; doing a ls -al I found it's directory:

Code:
$ cd /mnt/vol01/jails
$ ls -al
$ .pear.meta


I removed the directory to completely remove the jail, and other web interface tools stopped complaining about the missing jail:

Code:
rm -f .pear.meta
 
Status
Not open for further replies.
Top