Solved Problem with jail upgrade to 12.2 using iocage

I am upgrading all of our remain jails to 12.2 from 12.1. Things have gone well up until this morning. I attempted to upgrade a jail and this is what happened.
Code:
[root@vhost06 ~ (master)]# iocage upgrade webmail -r 12.2-RELEASE
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 12.1-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
src/src world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 12.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 12.1-RELEASE for merging... done.
Preparing to download files... done.
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory
/tmp/tmpx5nl0bzx: cannot open files/.gz: No such file or directory

There were anomalies in the merge comments with 12.2 showing in places that I expected to see current. I answered N to the reasonableness question following the manual edits and then restarted the upgrade.

What would cause this?
 
The second attempt failed in the same fashion as the first:
Code:
root@vhost06 ~ (master)]# iocage upgrade webmail -r 12.2-RELEASE
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 12.1-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
src/src world/base world/doc world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)? y

Fetching metadata signature for 12.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 12.1-RELEASE for merging... done.
Preparing to download files... done.
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
. . .
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
/tmp/tmp87w0zvwx: cannot open files/.gz: No such file or directory
Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/mtree/BSD.tests.dist
Press Enter to edit this file in /usr/bin/vi and resolve the conflicts
manually...

. . .
ipfixs          4740/udp   #ipfix protocol over DTLS
<<<<<<< current version
<<<<<<< current version
=======
ipfixs          4740/sctp  #ipfix protocol over DTLS
=======
ipfixs          4740/sctp  #ipfix protocol over DTLS
>>>>>>> 12.2-RELEASE
vxlan           4789/udp   #Virtual eXtensible Local Area Network (VXLAN)
>>>>>>> 12.2-RELEASE
commplex-main   5000/tcp
. . .
The following file will be removed, as it no longer exists in
FreeBSD 12.2-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? N
Command: /tmp/tmp87w0zvwx -b /zroot/iocage/jails/webmail/root
  -d /zroot/iocage/jails/webmail/root/var/db/freebsd-update/
  -f /zroot/iocage/jails/webmail/root/etc/freebsd-update.conf
  --not-running-from-cron --currently-running 12.1-RELEASE -r 12.2-RELEASE upgrade failed!

[/CODE}

This looks very broken to me.  How do I fix this?
 
This appears to be caused by me. Apparently I managed to start a second upgrade of the same jail while the first was still incomplete.
 
Do you remember how you solved it?
No. I do not recall the details. I checked my day book entries and cannot find anything that relates to this specific issue. However, I infer from my closing comment that the solution was to simply ensure that only one upgrade ran at a time for a specific jail.
 
Back
Top