From owner-freebsd-questions@freebsd.org Fri Mar 13 13:05:55 2020 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 83F5425FE64 for ; Fri, 13 Mar 2020 13:05:55 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48f5Xx6Fbyz4JVm for ; Fri, 13 Mar 2020 13:05:53 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 02DD5lYW003504; Fri, 13 Mar 2020 07:05:48 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: "directory not empty", "no such file or directory" errors on upgrade To: Polytropon Cc: FreeBSD Mailing List References: <20200312235749.5e10fb02.freebsd@edvax.de> From: Gary Aitken Message-ID: <38fde868-7d2b-d396-449b-973ac9c39963@dreamchaser.org> Date: Fri, 13 Mar 2020 07:04:24 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200312235749.5e10fb02.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Fri, 13 Mar 2020 07:05:48 -0600 (MDT) X-Rspamd-Queue-Id: 48f5Xx6Fbyz4JVm X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-5.49 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.20)[ip: (-8.38), ipnet: 66.109.128.0/19(-4.19), asn: 21947(-3.35), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(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, 13 Mar 2020 13:05:55 -0000 On 3/12/20 4:57 PM, Polytropon wrote: > On Thu, 12 Mar 2020 13:03:27 -0600, Gary Aitken wrote: >> Upgrading from 11.2-RELEASE to 11.3-RELEASE >> >> The final invoke of freebsd-update install completed with the following >> messages: >> >> ///usr/src/sys/pc98/include/acpica_machdep.h no such file or directory >> rmdir: ///usr/src/contrib/ofed/usr.lib directory not empty >> rmdir: ///usr/src/contrib/ofed/usr.bin directory not empty >> rmdir: ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer directory not empty >> rmdir: ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer directory not empty >> >> The upgraded system has no >> /usr/src/sys/pc98/ directory >> >> The files in >> /usr/src/contrib/ofed/usr.lib >> /usr/src/contrib/ofed/usr.bin >> /usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer >> /usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer >> >> appear to be old versions left over from the original 11.2 install >> >> Hints on the proper way to fix this? > > When I read such messages, the first thing that comes to mind > is filesystem inconsistency. Reboot into single-user mode and > run a forced (!) fsck on all file systems, maybe repeat it if > needed. fsck reported all clean. > You probably don't have > > background_fsck="NO" > > in your /etc/rc.conf which in my opinion should be the default > setting (instead of YES). See "man 8 fsck" for further options > that might be needed. Thanks for the reminder; I used to have it set but on this rebuilt- after-a-crash system lost it. > Things like "directory not empty" can also be due to files that > haven't been removed. This is possible if the schg (immutable) > flag has been set for a file; use "chflags noschg "; see > "man 1 chflags" for details. > > First step: Always rule out the obvious. ;-) The remaining question is: Are those directories supposed to be repopulated with more recent versions? Or should they simply be removed? If they need to be repopulated, how does one repopulate them? Thanks, Gary