Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-107346

Problems with listing and deleting jails and plugins

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      Issue arised when trying to figure out why showing jails or plugins in the webgui is _TERRIBLY_ slow, it takes 3-5 minutes to list them, then when you try to edit it is 3-5 more minutes of waiting before editing is possible.

      Tried cleaning up some test and old jails, and was not able to destroy jails

      just get the following :

      mirai% sudo iocage destroy Octoprint2
      
      This will destroy jail Octoprint2
      
      Are you sure? [y/N]: y
      Destroying Octoprint2
      Traceback (most recent call last):
        File "/usr/local/bin/iocage", line 10, in <module>
          sys.exit(cli())
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
          return self.main(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
          rv = self.invoke(ctx)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
          return _process_result(sub_ctx.command.invoke(sub_ctx))
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
          return ctx.invoke(self.callback, **ctx.params)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
          return callback(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/iocage_cli/destroy.py", line 131, in cli
          iocage.destroy_jail(force=force)
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 750, in destroy_jail
          ioc_destroy.IOCDestroy().destroy_jail(path)
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_destroy.py", line 46, in __init__
          self.iocroot_datasets = [
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_destroy.py", line 46, in <listcomp>
          self.iocroot_datasets = [
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 84, in get_dependents
          if ds.locked:
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 90, in locked
          return not self.mounted or (
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/dataset.py", line 79, in mounted
          return self.properties['mounted'] == 'yes'
      KeyError: 'mounted'
      mirai%
      

      Same error from the webui, just less detailed.

      Did a delete on the dataset of another jail, it then vanished fine from the webui and iocage list, however _ALL_ other jails became _DOWN_ and had to be started

       

      Generated a debug log for this issue, then FreeNAS crashed hard upon creating it

        Attachments

        1. debug-mirai-20200825141243.tgz
          1.08 MB
          Eirik Zakariassen
        2. TrueNAS - 192.168.1.11 - Mozilla Firefox 2020-08-27 08-24-11.mp4
          46.34 MB
          Eirik Zakariassen
        3. zfsgetall
          1.63 MB
          Eirik Zakariassen

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                atxbyea Eirik Zakariassen
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: