Error when updating a Jail 11.3-RELEASE-p6 to 11.3-RELEASE-p612

Description

When updating the Jail in the UI (screenshot 1)
the error message "Error: b'" is shown in a message box (screenshot 2)

in the middleware.log this error is logged:

[2020/08/14 22:15:12] (ERROR) middlewared.job.run():361 - Job .wrap. .nf of <middlewared
.plugins.jail.JailService object at 0x82a10a390>> failed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_fetch.py", line 908, in fetch_update
_exec, callback=self.callback)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 903, in consume_and_log
for output in filter(lambda o: any(v for v in o), exec_gen):
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_exec.py", line 260, in exec_jail
list(stderr_queue)
iocage_lib.ioc_exceptions.CommandFailed: [b'', b'']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
await self.future
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 387, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.7/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.7/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.7/site-packages/middlewared/schema.py", line 965, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 1409, in update_to_latest_patch
iocage.update(update_pkgs)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 1944, in update
).fetch_update(*params)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_fetch.py", line 917, in fetch_update
silent=self.silent
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 103, in logit
callback(content, exception)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 76, in callback
raise callback_exception(message)
RuntimeError: b''

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk August 26, 2020 at 2:32 PM

Bug Clerk August 26, 2020 at 2:18 PM

Waqar August 26, 2020 at 12:06 PM

we do not control the freebsd upgrade process itself and just initiate it. You must have had merge conflicts or some thing similar which resulted in getting an empty file.

Florian Lederer August 21, 2020 at 9:49 PM
Edited

After upgrading freenas from 11.2 to 11.3  I upgraded all jails using following script

so using "iocage upgrade -r 11.3-RELEASE jail_name" for all active jails
This successfully updated all jails to 11.3-RELEASE-p6

Florian Lederer August 21, 2020 at 9:37 PM
Edited

The file is empty in all failed jails

In the jail with an successfull update the content of /etc/freebsd-update.conf looks like:

Complete

Details

Assignee

Reporter

Components

Affects versions

Priority

More fields

Katalon Platform

Created August 14, 2020 at 9:02 PM
Updated July 1, 2022 at 4:55 PM
Resolved August 26, 2020 at 2:32 PM