Update failed from SCALE 24.04.1.1 to 24.04.2

Ticket has been created here, but posting in case the community has suggestions.


[EFAULT] Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/tmp/tmptol5c1hf/truenas_install/__main__.py", line 795, in main() File "/tmp/tmptol5c1hf/truenas_install/__main__.py", line 483, in main exclude_list_file.write("\n".join(exclude_list).encode("utf-8")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'utf-8' codec can't encode characters in position 558-560: surrogates not allowed
Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 511, in __run_body
    rv = await self.method(*args)
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 187, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/update.py", line 286, in update
    await self.middleware.call('update.install', job, os.path.join(location, 'update.sqsh'), options)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1321, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/update_/install_linux.py", line 32, in install
    self.middleware.call_sync("update.install_scale", mounted, progress_callback, options)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1600, in call_sync
    return methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/update_/install.py", line 52, in install_scale
    self._execute_truenas_install(mounted, command, progress_callback)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/update_/install.py", line 83, in _execute_truenas_install
    raise CallError(result or f"Abnormal installer process termination with code {p.returncode}")
middlewared.service_exception.CallError: [EFAULT] Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/tmp9anj2wdk/truenas_install/__main__.py", line 795, in <module>
    main()
  File "/tmp/tmp9anj2wdk/truenas_install/__main__.py", line 483, in main
    exclude_list_file.write("\n".join(exclude_list).encode("utf-8"))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 54-56: surrogates not allowed

Tried rebooting and updating again and no luck. No errors on boot pool with 20GB free.

Currently running 24.04.1.1.
SuperMicro X11SRM-F
Xeon W-2125
4X SuperMicro MEM-DR464L-CL02-LR26 64GB LRDIMM
Seasonic Focus 650W 80 Plus Gold
32X WDS200T2B0A 2TB SSD for storage
2x 32GB SATADOMs for boot
2x LSI 9400-16i

System was migrated from Core 13-U6.1 about a month ago to SCALE.

1 Like

I run into the same error. your JIRA ticket is not accessible by me, and I assume also not by others…
I also migrated from TrueNAS Core but over a year ago.

Report a Bug with all your details and then post the link like MikeyG did.

1 Like

Are you logged into JIRA? All bugs should be publicly accessible.

After a few days, I ended up wiping my install and restoring my config. I still have not seen a fix for the issue that I could apply immediately. However, they did resolve the ticket I sent in with a fix to be applied in 24.10.

The github link is here: NAS-129983 / 24.10 / Do not crash if non-UTF-8 filenames are present in the upgraded BE by themylogin · Pull Request #669 · truenas/scale-build · GitHub

1 Like

Yes I am logged into JIRA, I filed an issue myself, and then they referred me to your inaccessible one :person_shrugging: I told the TrueNAS team about this access problem too, no response yet.
thanks for the github link, at least I can track the issue this way!

1 Like

That particular ticket appears to have been marked private because it has a publicly attached debug file instead of one using the linked private file upload. We mark tickets with public debugs private to prevent anyone other than our devs from accessing them.

I don’t appear to have the permissions to remove the debug for you at the moment, but if you go ahead and delete it the file (the issue is closed so we don’t need it anymore) I can make the ticket public again.

1 Like

Oops, I guess that’s my mistake for not uploading the debug correctly. I have removed the debug file from the ticket.

1 Like

It’s public now

1 Like