Last night i was trying to install and learn how to use the Transmission plugin. In itself it went fairly smoothly until i got to a point where when giving a torrent to Transmission in it's web interface i didn't have permissions (even though i had looked it up and fixed that after, still no succes). So i figured you know i may aswell start over from scratch to avoid any faults lingering in there. Here's where things went wrong.
So i went to plugins to uninstall Transmission, have to put in the jailname so it can delete everything, click confirm. And then i went to do something else because why wait for an uninstall of a plugin that i had done a few times already with other plugins. But when i came back i had lost connection to my Nas. The other machine that was hooked on the same power socket & switch was still reachable. So i went to look and sure enough the freenas box had shutdown for some reason. I don't know how to look for a reason on how that happened so any help on that would be amazing (I see an alert that there was an unplanned reboot but nothing else). But also when i finally logged back in, the plugin was gone but the jail now showed CORRUPT in the state section, when i try to delete that jail i get an error and the following info.
So i went to plugins to uninstall Transmission, have to put in the jailname so it can delete everything, click confirm. And then i went to do something else because why wait for an uninstall of a plugin that i had done a few times already with other plugins. But when i came back i had lost connection to my Nas. The other machine that was hooked on the same power socket & switch was still reachable. So i went to look and sure enough the freenas box had shutdown for some reason. I don't know how to look for a reason on how that happened so any help on that would be amazing (I see an alert that there was an unplanned reboot but nothing else). But also when i finally logged back in, the plugin was gone but the jail now showed CORRUPT in the state section, when i try to delete that jail i get an error and the following info.
Code:
Error: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1509, in json_load with open(self.location + "/config.json", "r") as conf: FileNotFoundError: [Errno 2] No such file or directory: '/mnt/ssd/iocage/jails/Transmission/config.json' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1525, 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.7/site-packages/middlewared/main.py", line 130, in call_method io_thread=False) File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call return await methodobj(*args) File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 409, in delete f'{self._config.namespace}.delete', self, self.do_delete, [id] + list(args) File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1098, in _call return await run_method(methodobj, *args) File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs)) File "/usr/local/lib/python3.7/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.7/site-packages/middlewared/schema.py", line 965, in nf return f(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 888, in do_delete iocage.destroy_jail(force=options.get('force')) File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 721, in destroy_jail ioc_destroy.IOCDestroy().destroy_jail(path) File "/usr/local/lib/python3.7/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.7/site-packages/iocage_lib/ioc_stop.py", line 62, in __init__ raise e File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_stop.py", line 55, in __init__ path, suppress_log=True).json_get_value('all') File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1717, in json_get_value return self.get_full_config() File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1366, in get_full_config conf, write = self.json_load() File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1541, in json_load exception=ioc_exceptions.JailMissingConfiguration) File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 103, in logit callback(content, exception) File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 76, in callback raise callback_exception(message) iocage_lib.ioc_exceptions.JailMissingConfiguration: Transmission is missing it's configuration, please destroy this jail and recreate it.