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

middlewared_truenas/plugins/enclosure.py AttributeError line 342

    XMLWordPrintable

    Details

    • Impact:
      Low

      Description

      Fresh install of TrueNAS 12.0-BETA, seeing lots of these errors:

      [2020/07/29 15:12:07] (ERROR) middlewared.job.run():373 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.disk_.sync.DiskService object at 0x81af6a040>> failed
      Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
          await self.future
        File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 397, in __run_body
          rv = await self.method(*([self] + args))
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/disk_/sync.py", line 142, in sync_all
          await self.middleware.call('enclosure.sync_disk', disk['disk_identifier'])
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1229, in call
          return await self._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1198, 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 1102, 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/middlewared_truenas/plugins/enclosure.py", line 201, in sync_disk
          enclosure, element = self._get_slot_for_disk(disk["name"])
        File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 149, in _get_slot_for_disk
          return self._get_slot(lambda element: element["data"]["Device"] == disk)
        File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 137, in _get_slot
          for enclosure in self.middleware.call_sync("enclosure.query", enclosure_query or []):
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1256, in call_sync
          return methodobj(*prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
          return f(*args, **kwargs)
        File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 65, in query
          for enc in self.__get_enclosures():
        File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 330, in __get_enclosures
          return Enclosures(self.middleware.call_sync("enclosure.get_ses_enclosures"), {
        File "/usr/local/lib/middlewared_truenas/plugins/enclosure.py", line 342, in __init__
          if system_info["system_product"].startswith("TRUENAS-"):
      AttributeError: 'NoneType' object has no attribute 'startswith'

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                vladimirv Vladimir Vinogradenko
                Reporter:
                gibmat Mathias Gibbens
                Watchers:
                Bug Clerk, Mathias Gibbens, William Grzybowski
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: