From owner-freebsd-questions@freebsd.org Thu Sep 12 01:10:08 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8B3B0E5B93 for ; Thu, 12 Sep 2019 01:10:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46TLKV4fZbz4cd5 for ; Thu, 12 Sep 2019 01:10:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.27.241]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1MpD39-1iTGYZ323L-00qmHg; Thu, 12 Sep 2019 03:10:00 +0200 Date: Thu, 12 Sep 2019 03:09:59 +0200 From: Polytropon To: tech-lists Cc: freebsd-questions@freebsd.org Subject: Re: Fetching 2 metadata files... failed (freebsd-update) Message-Id: <20190912030959.9e0389bc.freebsd@edvax.de> In-Reply-To: <20190911211927.GI41568@bastion.zyxst.net> References: <20190911211927.GI41568@bastion.zyxst.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:YiBaqqBxyOic+MQgbWKcGK0kdK9V7i5zf+2Lk4aH4AN3dFaXSrB jydWqV0XxSGBOOO2IFfkZc32jUeKC5wL/TG4he8M+ER0tDnuAOysgNwTKfj3ZNd5gLK/8rl uhl31O3wsPoUMdmzLHqtC4amgBTgZ3zt9iHpstTf6JS9lLdUe1naRUChyjUBIYTD2OcqFUZ qf7irpHYXSMrKIjlr5How== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iitymizTULU=:QHzQsA+iXZArILAtCYiUNk C28HNVpotxHZilgosTnX/mPk9TyuXumDr3uNSKkYE6GMTEjw9cB2HG3SSKrjjzh0fGBOhqnXa ZwxKatLKUoxc+9Wq8NCJrFvXcBtTjudLOlBjj2qkgLvajoXq+G+cO8ScPANnEXbHosgz+u5nh u6pt3Y8Kiz7gXaaSSfelT8VeixxK8TfF+RxD+RWoPChp0dvO4vnVijZlb2Sdf37jJbHPYzHaX rhVN5xAO06Q0bDVaNULZsvvFWEXFjc6lKTydlu9b64vGvSLUddcWtD1Vq2BLcZRM13/Owe/Tf XTP32Wv1AmMpzXeAiVECnP3R2/aSKEtoXRPYRZ+X59lC/NE2J0Gg7JyeEOZnOYZbLNaFjE3NI 7XdRCPOkvJfwN4WupkTn2sRsHnj7LGu0tRCNvBZdSDCmshZDkk59dDE6Trc8ZRme78zfcf89H 5gYJmfqqT3rqUupYT7MvbS/eBgxkSWgYvR5Rkh6BOhH7SfcXg313Abvg6W1qaDszTsqRIVU41 EWqFozp+TqgrIGkLsuzHCDIRo8DHGFsvv3fOiYefYF798NduRXaAGDwddswelAkpL8SB2lN+h KeZl0FPUHxEQJm8GXrzUEonCRU7y89hSBQjHc1UVvvc5/rsrlekprFYmfoBAgF5MV2bZCd6mE LkOXM+zk3FI1mE+1zG9+gynIinHWky0DeGKwI4gGyutLlPAfqqBbARspnlYQhCqpYl46Su+Nc cVYk4NYB/G8VVybDey3U4nLQDrJp1UVilrWg7hAMto6ud1uXhNzpJuQ2rsbSbHJZAh9yt5ySc Qe5D87VtjNyiFokiTENx9m7WU0MAynrh37RmKf6FePmIHUn6vc= X-Rspamd-Queue-Id: 46TLKV4fZbz4cd5 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.135) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.08 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[241.27.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.43)[0.434,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.96)[0.959,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[135.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.28)[ip: (0.65), ipnet: 212.227.0.0/16(-1.37), asn: 8560(2.14), country: DE(-0.01)] 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: Thu, 12 Sep 2019 01:10:08 -0000 On Wed, 11 Sep 2019 22:19:27 +0100, tech-lists wrote: > Hi, > > â—™ontext: > > I upgraded a 12-stable system @r349995 to 12-release-p10 @r352201. > > Before upgrading, I checked to make sure FREEBSD_UPDATE was not present in > /etc/src.conf. Then downloaded sources, make cleanworld buildworld buildkernel > installkernel mergemaster -p installworld mergemaster -Ui reboot then make > check-old delete-old delete-old-libs reboot again That order sounds a bit off. Have a look at /usr/src/Makefile, at the comment header, which states: # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `mergemaster' (you may wish to use -i, along with -U or -F). # 9. `make delete-old' # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) The world is to be installed in single-user mode. > Found that freebsd-update still not installed, so cd into > /usr/src/usr.sbin/freebsd-update && make && make install > > freebsd-update was found but couldn't find any servers so copied > /var/db/etcupdate/current/etc/freebsd-update.conf into /etc Do you also have /etc/freebsd-update.conf present? > Now it finds the server to update from but it fails to get the metadata like > this: > > # freebsd-update fetch > Looking up update.FreeBSD.org mirrors... 3 mirrors found. > Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... done. > Fetching metadata index... done. > Fetching 2 metadata files... failed. Looks like the correct server. > files and perms in /var/db/freebsd-update look like this: > > drwxr-xr-x 18 root wheel 512B Sep 11 21:52 .. > -rw-r--r-- 1 root wheel 225B Aug 20 18:36 > cae42a89f90be555b530a759cd400925bce03ed73ee78e665bef3fe5293e872f On my system, that entry is a symlink: f465c3739385890c221dff1a05e578c6cae0d0430e46996d319db7439f884336-rollback -> install.oDEqit Not sure if it's an automatically generated one. It does point to a directory with drwx------ permissions, there are several ones named install.. > -rw-r--r-- 1 root wheel 130B Sep 11 21:52 filelist > drwxr-xr-x 2 root wheel 512B Sep 11 21:52 files > -rw-r--r-- 1 root wheel 0B Sep 11 21:52 patchlist > -rw-r--r-- 1 root wheel 800B Aug 20 18:36 pub.ssl > -rw-r--r-- 1 root wheel 75B Sep 11 21:52 serverlist > -rw-r--r-- 1 root wheel 75B Sep 11 21:52 serverlist_full > -rw-r--r-- 1 root wheel 25B Sep 11 21:52 serverlist_tried > -rw-r--r-- 1 root wheel 150B Sep 11 21:52 tINDEX.new > -rw-r--r-- 1 root wheel 0B Sep 11 21:52 tINDEX.present > -rw-r--r-- 1 root wheel 113B Sep 11 21:52 tag.new Looks correct. > What am I doing wrong? There's plenty of space on the system. It's not a matter of free disk space. Something has gone wrong with your OS installation. I assume you didn't follow the correct order of steps, and somehow (I cannot imagine why), freebsd-update didn't get installed properly. You can verify correct structure and permissions with the mtree file at /etc/mtree/BSD.var.dist - freebsd-update has an entry there, which suggests that after a clean install, that directory (/var/db/freebsd-update) is empty, and will be populated by the freebsd-update program itself. You could try this: # cd /var/db # mv freebsd-update freebsd-update.old # mkdir freebsd-update # chmod -R 0700 freebsd-update That should initialize the directory entry as if it was a clean installation. Also check that you have the configuration file in /etc as mentioned above. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...