Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 21:52:48 -0400
From:      Rob Rati <lists@midsummerdream.org>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 10.2 freebsd-update returns cannot open files/.gz: No such file or directory
Message-ID:  <E58DC9B8-B46F-4FBE-997F-4154C11B1BA6@midsummerdream.org>
In-Reply-To: <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org>
References:  <A5A44F03-79CD-4D03-8702-96EAC3325B56@midsummerdream.org> <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 16, 2019, at 5:07 PM, Matthew Seaman wrote:

> On 16/05/2019 16:38, Rob Rati wrote:
>> I'm trying to upgrade my 10.4p13 server to 11.2, and I'm getting a =
weird set of errors from freebsd-update.  After updating to latest set =
of patches for 10.4, I run the usual:
>>=20
>> freebsd-update upgrade -r 11.2-RELEASE=20
>>=20
>> It goes through its process, downloads patches, etc but I get some =
errors I'm not sure about:
>> 0....10460....10470....10480....10490....10500....10510....10520.... =
done.
>> Applying patches... done.
>> Fetching 9604 files... done.
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
>> Attempting to automatically merge changes in files... done.
>>=20
>> The following file will be removed, as it no longer exists in
>> FreeBSD 11.2-RELEASE: /etc/autofs/include_nis
>> Does this look reasonable (y/n)? n
>>=20
>> I'm not sure what is causing those no such file or directory errors =
though.  I tried cleaning everything out of /var/db/freebsd-update, but =
they didn't solve it.  There's plenty of disk space in /var as well.
>>=20
>> Does anyone know what is causing those errors and how to resolve it?  =
Where does freebsd-update get the .gz files it could be looking for?
>>=20
>=20
> The .gz files being referenced are the files downloaded in the =
previous
> step 'Fetching 9604 files... ' step IIRC.
>=20
> freebsd-update is just a shell script.  The error you're seeing looks
> very much like an undefined variable.  You can try and debug exactly
> which variable is not being set properly by:
>=20
>   sh -x freebsd-update upgrade -r 11.2-RELEASE
>=20
> but be warned: there will be a lot of output.

Here are the lines from the script around the various errors I am =
seeing.  Does anyone know if these files are important?  What will =
freebsd-update do if the files are missing on my system?  Will the =
upgrade process place the 11.2-RELEASE version of the files on the =
system?

+ look '/etc/autofs/include_nis|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/autofs/include_nis|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/autofs/include_nis|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/autofs/include_nis_nullfs|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/autofs/include_nis_nullfs|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/autofs/include_nis_nullfs|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/blacklistd.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/blacklistd.conf|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/blacklistd.conf|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.dns|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/casper/system.dns|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.dns|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.grp|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/casper/system.grp|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.grp|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.pwd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/casper/system.pwd|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.pwd|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.random|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/casper/system.random|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.random|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.sysctl|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/casper/system.sysctl|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.sysctl|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/devd/ulpt.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/devd/ulpt.conf|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/devd/ulpt.conf|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/dma/dma.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ read F
+ look '/etc/mtree/BSD.lib32.dist|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/mtree/BSD.lib32.dist|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/mtree/BSD.lib32.dist|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/mtree/BSD.tests.dist|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ read F
+ look '/etc/periodic/daily/410.status-mfi|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/periodic/daily/410.status-mfi|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/periodic/daily/410.status-mfi|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/periodic/daily/430.status-uptime|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ read F
+ look '/etc/rc.d/blacklistd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/rc.d/blacklistd|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/blacklistd|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/iovctl|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/rc.d/iovctl|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/iovctl|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/ipfw_netflow|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/rc.d/ipfw_netflow|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/ipfw_netflow|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/ypldap|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory
+ look '/etc/rc.d/ypldap|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/ypldap|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/zfsd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=3D''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or =
directory

Rob




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E58DC9B8-B46F-4FBE-997F-4154C11B1BA6>