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

Renewing ACME cert gives "report_problem FAILED sequence item 0: expected str instance, list found"

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      Traceback occurs when creating an ACME cert, settings as below. Hitting Submit at this point will generate the error. 

       

       

      Error: 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/crypto.py", line 1698, in do_create
          data = await self.middleware.run_in_thread(
        File "/usr/local/lib/python3.8/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.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/crypto.py", line 1746, in __create_acme_certificate
          final_order = self.acme_issue_certificate(job, 25, data, csr_data)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 1343, in acme_issue_certificate
          normalised_san = ':'.join(self.middleware.call_sync('cryptokey.normalize_san', [domain]))
      TypeError: sequence item 0: expected str instance, list found

        Attachments

        1. crypto.py
          102 kB
          James Lambert
        2. debug-lyndon-20200930143219.tgz
          1.68 MB
          James Lambert

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Triage Team
                Reporter:
                jamlam James Lambert
                Watchers:
                Bonnie Follweiler, Erin Clark, Glenn E Buckholz, James Lambert, Lloyd Hazlett, Waqar Ahmed
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: