TrueNAS 12.0 Stable update failing

gbrakcounty

Cadet
Joined
Nov 13, 2019
Messages
6
I can see updates are available but when I click download update I get "Error: base-os". Below is the detailed error message. The More info option is available when I uncheck install update after downloading. If I check that option it fails with "Error: base-os" and there isn't an option for more info.
Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 367, in run
    await self.future
  File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 405, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  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/update.py", line 320, in download
    return self.middleware.call_sync('update.download_update', job, train, location, 100)
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1254, in call_sync
    return self.run_coroutine(methodobj(*prepared_call.args))
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1294, in run_coroutine
    return fut.result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/update.py", line 324, in download_update
    success = await self.middleware.call('update.download_impl', *args)
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1238, in call
    return await self._call(
  File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1206, 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 1110, 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/python3.8/site-packages/middlewared/plugins/update_/download_freebsd.py", line 30, in download_impl
    Update.DownloadUpdate(
  File "/usr/local/lib/freenasOS/Update.py", line 1106, in DownloadUpdate
    pkg_file = conf.FindPackageFile(
  File "/usr/local/lib/freenasOS/Configuration.py", line 1274, in FindPackageFile
    raise Exceptions.UpdatePackageNotFound(package.Name())
freenasOS.Exceptions.UpdatePackageNotFound: base-os
 

Attachments

  • Screenshot from 2021-08-19 09-38-30.png
    Screenshot from 2021-08-19 09-38-30.png
    75.4 KB · Views: 213
Joined
Oct 22, 2019
Messages
3,641
Just to rule something out, is your System Dataset set as not executable?

zfs list -o name,exec poolname/.system
 
Joined
Oct 22, 2019
Messages
3,641
It might be on your boot-pool if you moved it back? You can check under System > System Dataset

I doubt it's the issue, but there have been others who accidentally set it to "no exec" which breaks the update process.
 

gbrakcounty

Cadet
Joined
Nov 13, 2019
Messages
6
Screenshot from 2021-08-24 15-58-01.png

Not sure what happened to be honest. I even tried setting the system dataset pool to my storage pool and the update failed. I was trying to update to see if it would fix an issue I was having with my SMB share. The listing of files and file transfers would have a huge delay. Disabling LDAP fixed it for me.
 
Joined
Oct 22, 2019
Messages
3,641
What about,

zfs list -o name,exec freenas-boot/.system

If an update is not an option, an alternative would be to export your config, install the latest version from scratch, and them re-import your config.
 
Top