Upgrade Error: [EFAULT] Unable to activate clone environment

freenarb

Cadet
Joined
Feb 11, 2015
Messages
9
Hi

When I try to upgrade from 13.0U5.3 to 13.0U6.1 I get the error in the GUI "Error: [EFAULT] Unable to activate clone environment 13.0-U6.1"

I installed a SSD in my microserver and installed TrueNAS onto it, instead of the USB stick. That was great, so then I wanted to put my pihole VM onto the SSD as well, to stop the logs from constantly rattling my hard disks. So now I've got an additional pool like boot-pool/ROOT/vm/pihole-qi17j

The error log contains:
(DEBUG) freenasOS.Update.RunCommand():262 - RunCommand(/usr/local/sbin/beadm, ['activate', '13.0-U6.1'])
(ERROR) freenasOS.Update.modified_call():95 - cannot set property for 'boot-pool/ROOT/vm/pihole-qi17j': 'canmount' does not apply to datasets of this type
(ERROR) freenasOS.Update.ApplyUpdate():1584 - Unable to activate clone environment 13.0-U6.1

What would my next steps be, to make sure that (a) I've not broken anything with a half-installed update (don't want it to fail during reboot!), and (b) to successfully update. Happy to hack around with python if necessary.


The traceback is:
[2024/03/08 09:56:11] (ERROR) freenasOS.Update.ApplyUpdate():1602 - Update got exception during update: Unable to activate clone environment 13.0-U6.1
Traceback (most recent call last):
File "/usr/local/lib/freenasOS/Update.py", line 1585, in ApplyUpdate
raise UpdateBootEnvironmentException(s)
freenasOS.Exceptions.UpdateBootEnvironmentException: Unable to activate clone environment 13.0-U6.1
(DEBUG) freenasOS.Update.RunCommand():262 - RunCommand(/usr/local/sbin/beadm, ['destroy', '-F', '13.0-U6.1'])
(DEBUG) freenasOS.Update.modified_call():95 - ERROR: Cannot destroy active boot environment
(ERROR) middlewared.job.run():367 - Job <bound method UpdateService.install_impl_job of <middlewared.plugins.update_.install_freebsd.UpdateService object at 0x819d695e0>> failed
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/process.py", line 246, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 111, in main_worker
res = MIDDLEWARE._run(*call_args)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 45, in _run
return self._call(name, serviceobj, methodobj, args, job=job)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 39, in _call
return methodobj(*params)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 39, in _call
return methodobj(*params)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/update_/install_freebsd.py", line 48, in install_impl_job
return Update.ApplyUpdate(
File "/usr/local/lib/freenasOS/Update.py", line 1635, in ApplyUpdate
raise e
File "/usr/local/lib/freenasOS/Update.py", line 1585, in ApplyUpdate
raise UpdateBootEnvironmentException(s)
freenasOS.Exceptions.UpdateBootEnvironmentException: Unable to activate clone environment 13.0-U6.1
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 386, in __run_body
rv = await self.middleware._call_worker(self.method_name, *self.args, job={'id': self.id})
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1250, in _call_worker
return await self.run_in_proc(main_worker, name, args, job)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1169, in run_in_proc
return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1152, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
freenasOS.Exceptions.UpdateBootEnvironmentException: Unable to activate clone environment 13.0-U6.1
(ERROR) middlewared.job.run():367 - Job <bound method accepts.<locals>.wrap.<locals>.nf of <middlewared.plugins.update.UpdateService object at 0x819d69580>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 391, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 981, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/update.py", line 295, in update
await self.middleware.call('update.install_impl', job, location)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1279, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1247, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1152, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/update_/install_freebsd.py", line 39, in install_impl
return self.middleware.call_sync('update.install_impl_job', job.id, location).wait_sync(raise_error=True)
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 326, in wait_sync
raise CallError(self.error)
middlewared.service_exception.CallError: [EFAULT] Unable to activate clone environment 13.0-U6.1
 
Top