Unable to delete a corrupt jail

Description

By means I'm unsure of, I somehow ended up with a jail in a corrupt state. I'm stuck in a loop where trying to delete the jail gets me an error telling me to delete the jail. I select delete from the jail page menu and get:

JailMissingConfiguration

qbittorrent is missing it's configuration, please destroy this jail and recreate it.

I have attached the details from the popup.

-Evan

P.S. What is the correct "component" for jails?

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Evan Hillman April 6, 2021 at 7:45 PM

I have uploaded the debug log, the pop-up and the expanded pop-up.  The full text of the pop-up is below.

 

I am the only one using this server.  I could run the debug kernel or test kernels, if that would help.  I spent a few years writing Linux device drivers back in the day, so system troubleshooting isn't new to me.  Plus I feel like I have been alpha testing Windows 10 since it forced itself on me a few years back, so what is one more project?

 

 

The text of the pop-up:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_json.py", line 1515, in json_load
with open(self.location + "/config.json", "r") as conf:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/SasPool/iocage/jails/qbittorrent/config.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_json.py", line 1531, in json_load
jail_dataset.properties["org.freebsd.iocage:host_hostuuid"]
KeyError: 'org.freebsd.iocage:host_hostuuid'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 471, in delete
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1206, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1110, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/jail_freebsd.py", line 1013, in do_delete
iocage.destroy_jail(force=options.get('force'))
File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 751, in destroy_jail
ioc_destroy.IOCDestroy().destroy_jail(path)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_destroy.py", line 272, in destroy_jail
iocage_lib.ioc_stop.IOCStop(uuid, path, silent=True)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_stop.py", line 62, in _init_
raise e
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_stop.py", line 54, in _init_
self.conf = iocage_lib.ioc_json.IOCJson(
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_json.py", line 1723, in json_get_value
return self.get_full_config()
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_json.py", line 1386, in get_full_config
conf, write = self.json_load()
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_json.py", line 1537, in json_load
iocage_lib.ioc_common.logit(
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_common.py", line 107, in logit
callback(content, exception)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_common.py", line 80, in callback
raise callback_exception(message)
iocage_lib.ioc_exceptions.JailMissingConfiguration: qbittorrent is missing it's configuration, please destroy this jail and recreate it.

Bonnie Follweiler April 6, 2021 at 1:16 PM

Thank you for the report . 

Can you please provide a debug (navigate to System -> Advanced, click save debug), a screenshot of the error message, and upload the files to the Attachments:Private area in this ticket?

 

Files uploaded into the private area in Attachments are only accessible by the developers.

Duplicate

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

More fields

Katalon Platform

Created March 12, 2021 at 6:37 AM
Updated July 1, 2022 at 5:13 PM
Resolved April 15, 2021 at 5:12 AM