From owner-freebsd-questions@freebsd.org Fri May 17 01:52:58 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E4B115ACC21 for ; Fri, 17 May 2019 01:52:58 +0000 (UTC) (envelope-from lists@midsummerdream.org) Received: from p3plsmtpa07-05.prod.phx3.secureserver.net (p3plsmtpa07-05.prod.phx3.secureserver.net [173.201.192.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtpout.secureserver.net", Issuer "Starfield Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 234FD85C79 for ; Fri, 17 May 2019 01:52:56 +0000 (UTC) (envelope-from lists@midsummerdream.org) Received: from titania.midsummerdream.org ([136.56.82.229]) by :SMTPAUTH: with ESMTPSA id RS3EhVpTwND9TRS3FhpvHS; Thu, 16 May 2019 18:52:49 -0700 X-Sender: oberon@midsummerdream.org Subject: Re: 10.2 freebsd-update returns cannot open files/.gz: No such file or directory Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Rob Rati In-Reply-To: <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org> Date: Thu, 16 May 2019 21:52:48 -0400 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org> To: Matthew Seaman X-Mailer: Apple Mail (2.1283) X-CMAE-Envelope: MS4wfElcBv6WtsUA9reSBBUyCVFZaNxbEs6C9pe+qoAoVB0kXEekE7FoSkNEk9W7+Ldmg3g4yKxdhJeYdAkVrdnUxqUam/al4+JYrkHWW387y2+K4tf+YX9Y R4UGcihdTzkdkSRNodNvmL514GdMYwOyZgxOIA7QPK6GJfdVyo7YuXZnP2fGUqn+wow7MgIWl+dx3rPTqL4Ezi37RndSeC3TmuBcZSfBvbRZlu9XI9pa8vyi X-Rspamd-Queue-Id: 234FD85C79 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.13 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(0.06)[ipnet: 173.201.192.0/22(0.17), asn: 26496(0.21), country: US(-0.06)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[midsummerdream.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.97)[0.970,0]; NEURAL_SPAM_SHORT(0.75)[0.755,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mailstore1.secureserver.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[234.192.201.173.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.95)[0.955,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26496, ipnet:173.201.192.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2019 01:52:58 -0000 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