From nobody Mon Feb 10 06:54:45 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YrwLR6tH5z5nSxK for ; Mon, 10 Feb 2025 06:54:55 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (mailserver.netfence.it [78.134.96.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YrwLR3G3xz3p9r for ; Mon, 10 Feb 2025 06:54:55 +0000 (UTC) (envelope-from ml@netfence.it) Authentication-Results: mx1.freebsd.org; none Received: from [10.1.2.18] (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.18.1/8.17.2) with ESMTPSA id 51A6sjDB096645 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 10 Feb 2025 07:54:45 +0100 (CET) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=202501; t=1739170485; bh=7W7oRzrP6+c9fkT+DK5F5RTJmnSPWvjJgTBlRfIeb5w=; h=Date:Subject:To:References:From:In-Reply-To; b=I2lGD5sIoM2hbcMVgaO7s+nm1S0PdsbrFyen2THt5Yf0ikuZGhz5oiKzJ3FMDoTev LHUYQomyk0Yz6yx213L3A+wAWeiU2KkPWmRqW1MPBa8iMFL5YMczIMpYpysO1FNmOU iuc6j2EngKab2Zb9Fg4zO0LP4cUrnd3/aPxXkL6o= X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be [10.1.2.18] Message-ID: <274e09ec-49d4-4140-a3cb-19050336b0cc@netfence.it> Date: Mon, 10 Feb 2025 07:54:45 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ada drive numbering Content-Language: en-US To: Dewayne Geraghty , questions@freebsd.org References: <8c08b579-da5a-4da3-b026-f43f6132c830@netfence.it> From: Andrea Venturoli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4YrwLR3G3xz3p9r X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:35612, ipnet:78.134.0.0/17, country:IT] On 2/9/25 23:54, Dewayne Geraghty wrote: Hello. > the key issue that you > have, is that nagios isn't configured sensibly Possible. However, Nagios is configured automatically via Salt, which enumerates HDDs/SSDs and populates the config file. Modifying this would be no little task and, after all, it works for 99% of machines; currently the only downside is that, on the rare occasions where I have to reboot this specific server, I might even more rarely need to do it twice. > I'd advise against hard-coding device names Does "Advise against" means it's possible somehow? :) > using some form of label is adventurous during disk > failure/remediation. Agreed. However I might evaluate this and decide... if it's just a matter of temporarily disabling such a map, it might be acceptable. bye & Thanks av. From nobody Tue Feb 11 21:24:05 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YsvmM5D0Bz5mmG6 for ; Tue, 11 Feb 2025 21:32:19 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YsvmM0Hk3z3NdT for ; Tue, 11 Feb 2025 21:32:19 +0000 (UTC) (envelope-from jerry@seibercom.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=seibercom.net header.s=google header.b=VXfKDiqj; spf=pass (mx1.freebsd.org: domain of jerry@seibercom.net designates 2607:f8b0:4864:20::c2a as permitted sender) smtp.mailfrom=jerry@seibercom.net; dmarc=none Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5fc016cbbe8so4698979eaf.0 for ; Tue, 11 Feb 2025 13:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; t=1739309537; x=1739914337; darn=freebsd.org; h=content-transfer-encoding:mime-version:organization:reply-to :message-id:subject:to:from:date:from:to:cc:subject:date:message-id :reply-to; bh=hdpeZ/4lD8IbHikWWiaXBLZSCToX9QjytdUS1Z1kiFo=; b=VXfKDiqjElR1M212mzPIV7HlGxtc80jA6Z6D+tsah/hhomtZt3ViRw0FihFhTVSaNU H1J2FnBwaxxN3b0LONK7X1+R0iefYFogUi1cUD54ohzkQEofVLINO9sjdZXLgd5E+GK9 A+42s0jswyTpO8CrbE6/055uKGyZc0ZbFEwv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739309537; x=1739914337; h=content-transfer-encoding:mime-version:organization:reply-to :message-id:subject:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hdpeZ/4lD8IbHikWWiaXBLZSCToX9QjytdUS1Z1kiFo=; b=gOVJNuiurlXX1i2u/69FESJVvvqR/TBFNPhG7Xim18Nu2CLzikZHO+mBPjKzvV8Oin x4mOpd4kWYupAz6V5FVW7ktWVSJ2bx1cDvF786gUK+EZKf37sAHQItnM0NErVHf6n0b5 Bi1pQpWAzaCxlbzDlCZ+Gd8nJ4ygnvScgVtYtYZt+UwuzYoYkNFg44xNXugRn0caIo94 ge0KSGyaF9Q1kj9G1JkfVXIaLtdoHjmlo26ixcnfqVnXx/YqhP6di/AH9MonVU2wnst/ AjH+FNx0z9J5BENmaoNNmfPyYwftZ0JIlI2Q8GKKN//PZsbdbctZMZ5CiKeJzQukib78 Sehw== X-Gm-Message-State: AOJu0YxeVCFZF/U8vn8Io7barTCnsvHdbP3uA3KBngye2tp3JcKl3/FB /tolkPky6i9fiJHYRYpi4fXrinX3KyjrNJ4BH46TQCN6AhQbfV7Jes3kjT2vNR/HTxzpjJdKWef q X-Gm-Gg: ASbGncubHVdigK7hRC/P0xiamzX6DmLNzHFfS4cvUSbc0tLtzPjJmrtpX6Ve23hPMoz ffUStJPaF8wMdpn0Txjg3c84MrA982LArToJgNjSsH2TwMrKYOoizZBG12K49fnIDX1mgdR0EI5 fqhbg74rKbY22/cpX/oEWu66i+RBWfvS59MQGJNDRqbdYXEHGQNimceWLJVOvPndjsiniA3Vphh 6XI2uU4avWpvk3Vzlo0IUgE8Wyrdb8GtLEU+TeO3YbYAb7XhwI1MWm02HIXDxhtQKdfgc/jR+VR tEi8jAsWQShq+TYiT5dn9oARbmccvngMCCwQaHiG/NYgxwOTO3DWyUOcatT52Z95Zg== X-Google-Smtp-Source: AGHT+IH8K0XmADLGVN2Mz/SfMPJlDOoNF9gd8fAquLkzDg2AWomOTbs3wTzACM6fBf9K8dbSUvpICA== X-Received: by 2002:a05:690c:4903:b0:6f6:cc1d:a6d with SMTP id 00721157ae682-6fb1f1c85d1mr15300117b3.18.1739309068253; Tue, 11 Feb 2025 13:24:28 -0800 (PST) Received: from mystic.seibercom.net (syn-174-109-232-113.res.spectrum.com. [174.109.232.113]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6f99fce1f03sm23313347b3.14.2025.02.11.13.24.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2025 13:24:27 -0800 (PST) Received: from localhost (zeus.seibercom.net [192.168.1.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by mystic.seibercom.net (Postfix) with ESMTPSA id 4YsvbG23Szz1kN9 for ; Tue, 11 Feb 2025 16:24:26 -0500 (EST) Date: Tue, 11 Feb 2025 16:24:05 -0500 From: Jerry To: questions@freebsd.org Subject: Running "certbot" ffom cron Message-ID: <20250211162405.00007342@seibercom.net> Reply-To: questions@freebsd.org Organization: seibercom NET X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [1.50 / 15.00]; REPLYTO_EQ_TO_ADDR(5.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[seibercom.net:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[seibercom.net]; RCVD_COUNT_THREE(0.00)[3]; RECEIVED_HELO_LOCALHOST(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; GREYLIST(0.00)[pass,body]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[seibercom.net:+]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c2a:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; HAS_REPLYTO(0.00)[questions@freebsd.org] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YsvmM0Hk3z3NdT FreeBSD 14.2-RELEASE-p1 certbot 3.1.0 Apache/2.4.63 (FreeBSD) I have the following command in my cron file: /usr/local/bin/certbot --apache renew --pre-hook "service dovecot stop" --post-hook "service dovecot start" I have added this to the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1. I also put itI cannot at the top of my cron file. The command works perfectly from the command line; however, from cron it crashes and produces this error message. Traceback (most recent call last): File "/usr/local/bin/certbot", line 5, in from certbot.main import main File "/usr/local/lib/python3.11/site-packages/certbot/main.py", line 6, in from certbot._internal import main as internal_main File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py", line 20, in import josepy as jose File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", line 41, in from josepy.json_util import ( File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", line 25, in from OpenSSL import crypto File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8, in from OpenSSL import SSL, crypto File "/usr/local/lib/python3.11/site-packages/OpenSSL/SSL.py", line 10, in from OpenSSL._util import ( File "/usr/local/lib/python3.11/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 15, in from cryptography.exceptions import InternalError File "/usr/local/lib/python3.11/site-packages/cryptography/exceptions.py", line 9, in from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration. I cannot figure out why it works on the command line but not from within cron. -- Jerry From nobody Tue Feb 11 21:37:51 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ysvv06tq4z5mmG8 for ; Tue, 11 Feb 2025 21:38:04 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ysvtz759Lz3Rrt for ; Tue, 11 Feb 2025 21:38:03 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-851c4ee2a37so474999939f.3 for ; Tue, 11 Feb 2025 13:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739309883; x=1739914683; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=IzzaiD2KFgmA68+GHBuuwi5KWDqVrxtr0B6HRV1Rt2I=; b=fNacaIyuvEznclvDXBVIH9zn75/8HKRyA/VNLCjiy1sl8j5iA39Uyfh+dUOU7SU9UG e7m81cwKQppaw7fLa3tcImUG0ZtoWjgOow4HlDV/D8E1REfhrfebAnOQ7CQ6RYiMP80+ 6cqAjoA6L7gy40NLBJzFx2YpStn87yEfk4GGbNoiC5oRKO1vHGhjvm93wCOGu6iZrFwc 1I7NAo8DGcHYSSxdst0GgrHI/WRfwSzLMz0xD9SKtPXPyGAgdi6u6FJ3PpXdbnW3xOQp CzRnzIn+JIh7Tu4q4lizjRdYHGBh+wUBHbO/pNZDl4Jcs51AmTGx8VSEI4I+heA3XfL1 PpUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739309883; x=1739914683; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IzzaiD2KFgmA68+GHBuuwi5KWDqVrxtr0B6HRV1Rt2I=; b=ftqD5plgpIwBs8Mht6Ndk26cY2yM7o5ALPLfDXisoYT6sAiOs/k9Q532nHD4dxZWA5 8tXo12fIvNv6T3o+C9GqnTV+P5ixHgGTdffZiBFSBKFME3gU65YyN1Kvi5Ebu/NWP6Gb eHE15O0cPXoq1ckW8WkKqRSbTLgLUqpNqr4EhTgMMSdpB4XmCnvaC9e5fa2SUAwm/R75 KT/F+UECpkCkFiJxTePLxjh9cWcFnYsSacWNDTaKEJ+ZMnxHgLyM1KKCGoTHVn5U+Imr VYxkueXdBoDz1fjgn9uVPMDYkkJ5Y5IFLiHjCZObV1CNu6kaqQkjt+BeX9x4WwLJIwJN 4oDg== X-Gm-Message-State: AOJu0YwDZ/rx/YRjYHnJz+HIr9aF0UW/x/YmHDBB6sQ5BF0b5bKJxFXa WIhzbDRBotGDnGc8Lq1uonUqQVr42xUWpgMOLPPBDOO2+AW1rJ96ieYI+gaQGcVkuuYg6qOOPU5 NqjxG1z9bbXANTk2JqDuieKZsxiMG5g== X-Gm-Gg: ASbGncvOVRJ2EUgl18lzsBUjtUEZWsjCkf4rgLOeAkUk+kVKC9HTBYHhXybzUY59wzt fOB4lgCStc8Dm6HylqXzU1WP7EGRFW1+ryx0o+6870LA7ePlTb5OwGntOTq+SQjrbTv9olMo= X-Google-Smtp-Source: AGHT+IHZdSjeIGjlsuxNBr6t0Xyw2UBFOvBmld6Juk+uIa8CksIY1QH7gZ+vDDOv2/Nlxleccqe+LM8ZuVB5blRPmD0= X-Received: by 2002:a05:6602:6d0c:b0:855:2f41:f85a with SMTP id ca18e2360f4ac-85555da80d4mr94436439f.9.1739309882818; Tue, 11 Feb 2025 13:38:02 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <20250211162405.00007342@seibercom.net> In-Reply-To: <20250211162405.00007342@seibercom.net> From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Tue, 11 Feb 2025 22:37:51 +0100 X-Gm-Features: AWEUYZmn35D3WLbvi4-DfFQ51SOn0CHrhgLsc4NvZRbwIVo5mCP1dzNcvu0z3Yk Message-ID: Subject: Re: Running "certbot" ffom cron To: questions Content-Type: multipart/alternative; boundary="000000000000b8476e062de4a3a4" X-Rspamd-Queue-Id: 4Ysvtz759Lz3Rrt X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] --000000000000b8476e062de4a3a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mar, 11 feb 2025, 22:32, Jerry escribi=C3=B3: > FreeBSD 14.2-RELEASE-p1 > certbot 3.1.0 > Apache/2.4.63 (FreeBSD) > > I have the following command in my cron file: > > /usr/local/bin/certbot --apache renew --pre-hook "service dovecot stop" > --post-hook "service dovecot start" > > I have added this to the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3D1.= I > also put itI cannot at the top of my cron file. > > The command works perfectly from the command line; however, from cron it > crashes and produces this error message. > > Traceback (most recent call last): > File "/usr/local/bin/certbot", line 5, in from certbot.main > import main > File "/usr/local/lib/python3.11/site-packages/certbot/main.py", line 6, i= n > from certbot._internal import main as internal_main > File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py", > line 20, in import josepy as jose > File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", line > 41, in from josepy.json_util import ( > File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", line > 25, in from OpenSSL import crypto > File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", line > 8, in from OpenSSL import SSL, crypto > File "/usr/local/lib/python3.11/site-packages/OpenSSL/SSL.py", line 10, i= n > from OpenSSL._util import ( > File "/usr/local/lib/python3.11/site-packages/OpenSSL/_util.py", line 6, > in from cryptography.hazmat.bindings.openssl.binding import Bind= ing > File > "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/bindings/ope= nssl/binding.py", > line 15, in from cryptography.exceptions import InternalError > File "/usr/local/lib/python3.11/site-packages/cryptography/exceptions.py"= , > line 9, in from cryptography.hazmat.bindings._rust import > exceptions as rust_exceptions > RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a > fatal error by default, but cryptography supports running without legacy > algorithms by setting the environment variable > CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you hav= e > likely made a mistake with your OpenSSL configuration. > > I cannot figure out why it works on the command line but not from within > cron. > Different environment? > -- > Jerry > > --000000000000b8476e062de4a3a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


El mar, 11 feb 2025, 22:32, Jerr= y <jerry@seibercom.net> es= cribi=C3=B3:
FreeBSD 14.2-RELEASE-p= 1
certbot 3.1.0
Apache/2.4.63 (FreeBSD)

I have the following command in my cron file:

=C2=A0/usr/local/bin/certbot --apache renew --pre-hook "service doveco= t stop" --post-hook "service dovecot start"

I have added this to the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3D1. I= also put itI cannot=C2=A0 at the top of my cron file.

The command works perfectly from the command line; however, from cron it cr= ashes and produces this error message.

Traceback (most recent call last):
File "/usr/local/bin/certbot", line 5, in <module>=C2=A0 fr= om certbot.main import main
File "/usr/local/lib/python3.11/site-packages/certbot/main.py", l= ine 6, in <module> from certbot._internal import main as internal_mai= n
File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.p= y", line 20, in <module> import josepy as jose
File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py"= , line 41, in <module> from josepy.json_util import (
File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py"= ;, line 25, in <module> from OpenSSL import crypto
File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py"= ;, line 8, in <module> from OpenSSL import SSL, crypto
File "/usr/local/lib/python3.11/site-packages/OpenSSL/SSL.py", li= ne 10, in <module> from OpenSSL._util import (
File "/usr/local/lib/python3.11/site-packages/OpenSSL/_util.py", = line 6, in <module> from cryptography.hazmat.bindings.openssl.binding= import Binding
File "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/bind= ings/openssl/binding.py", line 15, in <module> from cryptography= .exceptions import InternalError
File "/usr/local/lib/python3.11/site-packages/cryptography/exceptions.= py", line 9, in <module> from cryptography.hazmat.bindings._rust= import exceptions as rust_exceptions
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a f= atal error by default, but cryptography supports running without legacy alg= orithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY.= If you did not expect this error, you have likely made a mistake with your= OpenSSL configuration.

I cannot figure out why it works on the command line but not from within cr= on.

Different environment?



--
Jerry

--000000000000b8476e062de4a3a4-- From nobody Tue Feb 11 21:53:09 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YswF63BZrz5mnqj for ; Tue, 11 Feb 2025 21:53:46 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YswF61SNdz3cpP for ; Tue, 11 Feb 2025 21:53:46 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-2b199bb8af9so126456fac.1 for ; Tue, 11 Feb 2025 13:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739310824; x=1739915624; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=li3XeSeIIeoJJxLnC9JJYIJSNxdXriEX2pg4MkRGQHI=; b=FgcILOyurqKDQZ4FhDUjAW7ni/aNY9U8ylTVDbCmkl+jEpZxAYPAvJbDYirepoq31Q qjXWNEOvfiVnuKbfRbUL0ndHZQ9r0IuYZxGeNdTNmG+E38PTKmAkEr4YnFOUjzDNT96q bbJ8cqhPJsRUzT28b9Y/bN3aSpH/1NMEJRPVRUKaqeR0RF7Ik8BLGYaGluPiBIHgbTon mF5aVZemZUVSHgCLGZ5YrW10Ai4SxQJX6uqUDGeQb6gOKk5rfe1mLz0Hi8JR0J9TUkCN 74c40vq+fm9hMH/8Su3z+9+p0HA8YuIZmxHcsC70/Mdd2Ge6pspK7hMczXAeT23bXvQ2 ecXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739310824; x=1739915624; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=li3XeSeIIeoJJxLnC9JJYIJSNxdXriEX2pg4MkRGQHI=; b=R92vCmGvZzha7bMlu2rR3PvagyDWT5rgKRjW+Rh/25W9hL+5+OSRc6utu6cPJ7a50s V6xpRr8XBrKMU+glDtdN0yXm2L3wKG3YHG6o/JOw8WdGVzUuwvPNOIyVHEQdMUMKFnRY e/1T73p/0yRDxh0TEtMMYpimB/cjVh6qtJnt6rFoLkA7CrY6a+QU0xUpPqYd7r+5WCBA yH6wqEJfnKI9d0SkUrRkn8resxPl/TLmGPf4uiM81uCGwB3512zBakFB1YFWoPIsNRlO QW/Az7fRWHZ0SjXtztn/N6aXyJD5t81M99YksV0bNvHTzhv6sgGpxyUusFAybVRYIbXK lAkQ== X-Gm-Message-State: AOJu0Yxm9K3shnDWWpR6qrJKSGUa0C5cD8e28V4FOgerz3IKoNFwGJP5 HP0hAZcCgjGilHJkYyCM6hczRWDDy8v0pM2n+NAYBcenayHl9KaZuNN+tfS9B2LxrWXWxQicL8A +3LfJRiBpQ0ngg8PphAoE7wrtnHxcp7CJCao= X-Gm-Gg: ASbGncu2C7XLeKOtzSe78VPt1aIod+MvcyjaSeHALHqiKA8EV39VvUYd0ndTARhHFBj zWdb2Bja9wfjaYgldvZ3Zz4KEQynHo4LtSs85jPyzmqFwbD4XPfGd0upVC2pobyuWfNfEaKxoxY U= X-Google-Smtp-Source: AGHT+IGB85TLs6rS2VvAIAyW4Q7zFXic19IOcJB9e8MmcRXdYxm5LWbxDXec7OzOPjGn0KN16YldqFK8462gP3d5EGc= X-Received: by 2002:a05:6870:ad06:b0:2b8:8194:72b6 with SMTP id 586e51a60fabf-2b8b6dbb3d2mr3746175fac.7.1739310824511; Tue, 11 Feb 2025 13:53:44 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <20250211162405.00007342@seibercom.net> In-Reply-To: <20250211162405.00007342@seibercom.net> From: Odhiambo Washington Date: Wed, 12 Feb 2025 00:53:09 +0300 X-Gm-Features: AWEUYZmGATDThLStz8lq3l_gqXSqy9KxlvMDBux28QLKrf4B3R4Q7Cj11Z2zzJI Message-ID: Subject: Re: Running "certbot" ffom cron To: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d960cf062de4db23" X-Rspamd-Queue-Id: 4YswF61SNdz3cpP X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US] --000000000000d960cf062de4db23 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 12, 2025 at 12:32=E2=80=AFAM Jerry wrote: > FreeBSD 14.2-RELEASE-p1 > certbot 3.1.0 > Apache/2.4.63 (FreeBSD) > > I have the following command in my cron file: > > /usr/local/bin/certbot --apache renew --pre-hook "service dovecot stop" > --post-hook "service dovecot start" > > I have added this to the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3D1.= I > also put itI cannot at the top of my cron file. > > The command works perfectly from the command line; however, from cron it > crashes and produces this error message. > If you generated the certificates using certbot --apache, then running certbot --apache renew is redundant. I also don't see the need to stop dovecot then start it during this process. Dovecot reads the certificate, but I doubt it keeps the validity period in memory. So simplify life and just run "certbot -q renew". --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000d960cf062de4db23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Feb 12,= 2025 at 12:32=E2=80=AFAM Jerry <= jerry@seibercom.net> wrote:
FreeBSD 14.2-RELEASE-p1
certbot 3.1.0
Apache/2.4.63 (FreeBSD)

I have the following command in my cron file:

=C2=A0/usr/local/bin/certbot --apache renew --pre-hook "service doveco= t stop" --post-hook "service dovecot start"

I have added this to the environment: CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3D1. I= also put itI cannot=C2=A0 at the top of my cron file.

The command works perfectly from the command line; however, from cron it cr= ashes and produces this error message.

= If you generated the certificates using certbot --apache, then running cert= bot --apache=C2=A0 renew is redundant.=C2=A0
I also don't see= the need to stop dovecot then start it during this process. Dovecot reads = the certificate, but I doubt it keeps the validity period in memory.
<= div>So simplify=C2=A0life and just run "certbot -q renew".
<= /div>


--
Best regards,
Odhiambo WASHINGTON,
= Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
&qu= ot;Oh, the cruft.",=C2=A0egrep -= v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2= =AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questi= ons.html]
--000000000000d960cf062de4db23-- From nobody Wed Feb 12 01:18:24 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yt0nN1mdqz5n613 for ; Wed, 12 Feb 2025 01:18:32 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yt0nM323Cz3dBq for ; Wed, 12 Feb 2025 01:18:31 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Authentication-Results: mx1.freebsd.org; none Received: from [::1] (helo=beesty ident=itz) by beesty.loosely.org with esmtp (Exim 4.98-4-9cb179d48) (envelope-from ) id 1ti1OS-000000004hG-1bUL for questions@freebsd.org; Tue, 11 Feb 2025 17:18:24 -0800 Date: Tue, 11 Feb 2025 17:18:24 -0800 From: fatty.merchandise677@aceecat.org To: questions@freebsd.org Subject: Re: Running "certbot" ffom cron Message-ID: Mail-Followup-To: questions@freebsd.org References: <20250211162405.00007342@seibercom.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250211162405.00007342@seibercom.net> X-Rspamd-Queue-Id: 4Yt0nM323Cz3dBq X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG] On Tue, Feb 11, 2025 at 04:24:05PM -0500, Jerry wrote: > I have added this to the environment: > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1. I also put it at the top of my > cron file. I am not sure if the FreeBSD cron supports setting environment like this, although I have until now believed it does. Just in case and for curiosity's sake, I would try setting it explicitly within the command line, i.e. env CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 certbot ... Hope this helps a little. -- Ian From nobody Wed Feb 12 06:22:39 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yt7Yn2NKdz5nTKs for ; Wed, 12 Feb 2025 06:23:57 +0000 (UTC) (envelope-from vogelke@pobox.com) Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yt7Ym1bd9z468G for ; Wed, 12 Feb 2025 06:23:56 +0000 (UTC) (envelope-from vogelke@pobox.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pobox.com header.s=fm2 header.b="M P/+Xb5"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=YFN8NLHM; spf=pass (mx1.freebsd.org: domain of vogelke@pobox.com designates 103.168.172.152 as permitted sender) smtp.mailfrom=vogelke@pobox.com; dmarc=pass (policy=none) header.from=pobox.com Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6E1D81140247; Wed, 12 Feb 2025 01:23:55 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-03.internal (MEProxy); Wed, 12 Feb 2025 01:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to :reply-to:subject:subject:to:to; s=fm2; t=1739341435; x= 1739427835; bh=zMnTCeBOUHbL3bedOG5GfadGvgEBqkxNCmYHbt1LDsk=; b=M P/+Xb547pE/pZDqOV6yF4XUAFDpGp81NrmIYabWJ+HfrtnjseU8XPjjkPj/mZ75M 304DhHZPWTt2B2v48AMpU6wFnNKAPA83Z5DQJ0H4OD8gMk9C/CVCy1FqHC2JN+uM +zO4DDGTo3Bdc/CF5b7HZShAqInYYP1Nh3e7d4oUGwf5BDjzvZWxdvUjSFD6VNR9 tY1x6q+jSEHYJRSbiCEnjfIOZdOX2ED00xriP63jo8zF+Eny3W4kVYcEX3iYZCUC yld+hAoyaT0iwVTP9XHGyQbR6byPrQspclVKhiNYm/w2MaOQ0UftxF6mr4Qqos4T IJH86pVHf7rLBPWCmB+PQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1739341435; x=1739427835; bh=zMnTCeBOUHbL3bedOG5GfadGvgEB qkxNCmYHbt1LDsk=; b=YFN8NLHMk55XtuPapxx4nOMB7DLc8pMVOGpG5+EZZMjg +aZjhLT0QA3GKNTQkS/xfUoarYIdBvEO++BG5YJh7pM4I7ZM/dfdMnfIBSma+F0J QqfFf3eZsDMrIK9bW7BsQLN1O2yCTawadqpM4s7SbbzKk8Q8Pai+fyPShiash30q 5dG+VTBI4DMZffg33aQ4G6j5Yk+qsaMmR6l7sdlFocBPIsUS3xohCRdLf1/6yzel O/GWC9DrxE0yXhQRYPk4DbIqS9ITPU7tjd0KE26+KdL6PerN94h1snNC0CQsfqJz I46yTLqt8sKSsj5OvHn9VMGlqw1XZVThYrkQUQMwYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegfeduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fukfhrfhggtggujgesthdtredttddtvdenucfhrhhomhepmfgrrhhlucggohhgvghluceo vhhoghgvlhhkvgesphhosghogidrtghomheqnecuggftrfgrthhtvghrnhepleevkeevtd eihfekgefguedtheetvdeifeevvdegleeivefhveelffdutedtffeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhhoghgvlhhkvgesphhosg hogidrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepqhhuvghsthhiohhnshesfhhrvggvsghsugdrohhrghdprhgtphhtthhopehvoh hgvghlkhgvodhhvggruggvrhesphhosghogidrtghomh X-ME-Proxy: Feedback-ID: i89e94709:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Feb 2025 01:23:54 -0500 (EST) Date: Wed, 12 Feb 2025 01:22:39 -0500 From: Karl Vogel To: questions@freebsd.org Subject: Re: Running "certbot" ffom cron Message-ID: Reply-To: vogelke@pobox.com References: <20250211162405.00007342@seibercom.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Fingerprint: B9B0 D8CF 0413 515D BED4 B507 C123 B01E C8AE 08E9 X-PGP-URL: X-Spamd-Result: default: False [-4.67 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RBL_SENDERSCORE_REPUT_9(-1.00)[103.168.172.152:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.57)[-0.572]; DMARC_POLICY_ALLOW(-0.50)[pobox.com,none]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; R_DKIM_ALLOW(-0.20)[pobox.com:s=fm2,messagingengine.com:s=fm3]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.152:from]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim,pobox.com:dkim]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[pobox.com:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; HAS_REPLYTO(0.00)[vogelke@pobox.com] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Yt7Ym1bd9z468G >> On Tue 11 Feb 2025 at 20:18:49 (-0500), >> fatty.merchandise677@aceecat.org wrote: > On Tue, Feb 11, 2025 at 04:24:05PM -0500, Jerry wrote: > > I have added this to the environment: > > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1. I also put it at the top of my > > cron file. > > I am not sure if the FreeBSD cron supports setting environment like > this, although I have until now believed it does. You can set environment variables with 'NAME=value' syntax in FreeBSD; it's worked as far back as FreeBSD 6.4 or so. I generally set a longer PATH in my crontab files, and I set CRON so scripts know when they're not being run interactively: CRON=yes PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec I run this in a crontab file when installing a new system: * * * * * /bin/env > /tmp/env$$ Results for my userid: CRON=yes HOME=/home/vogelke LOGNAME=vogelke PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec PWD=/home/vogelke SHELL=/bin/sh USER=vogelke Running "tty" under cron gives me "not a tty" written to stderr and a return code of 1. -- Karl Vogel I don't speak for anyone but myself Q: What's a good Christmas gift for a sysadmin? A1: Bourbon and a no-contact week. A2: A goat farm or cyanide capsule. --seen on Reddit, 8 Dec 2024 From nobody Wed Feb 12 10:55:31 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtFbK0HBDz5mZbV for ; Wed, 12 Feb 2025 10:55:41 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YtFbH6Hf6z3d2D for ; Wed, 12 Feb 2025 10:55:39 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51CAtU9l054440 for ; Wed, 12 Feb 2025 10:55:30 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> Date: Wed, 12 Feb 2025 10:55:31 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Frank Leonhardt Content-Language: en-GB To: freebsd-questions@freebsd.org Subject: ZFS missing space Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [2.83 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.83)[0.825]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196]; ONCE_RECEIVED(0.20)[]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[fjl.co.uk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4YtFbH6Hf6z3d2D I've noticed space "go missing" on ZFS before, but not conclusively. This time it's happened on a brand new setup I'm doing some testing on. This is a clean install of 14.2. The machine rebooted (not sure why) while a large dataset was being received (zfs receive...). The dataset isn't there. There should be about 6Tb in the pool (depending on how you count a Tb). This is what I'm seeing as varying estimates of free space: root@zfs2:/home/fjl # zfs list -t all NAME              USED  AVAIL  REFER  MOUNTPOINT zr               30.6G  5.12T   140K  /zr zr/ROOT          5.12G  5.12T   140K  none zr/ROOT/default  5.12G  5.12T  5.12G  / zr/data           140K  5.12T   140K  /data zr/francis       23.3G  5.12T  23.3G  /zr/francis zr/home           343K  5.12T   140K  /home zr/home/fjl       203K  5.12T   203K  /home/fjl zr/tmp            140K  5.12T   140K  /tmp zr/usr           2.19G  5.12T   140K  /usr zr/usr/ports     1.16G  5.12T  1.16G  /usr/ports zr/usr/src       1.03G  5.12T  1.03G  /usr/src zr/var           1.11M  5.12T   140K  /var zr/var/audit      140K  5.12T   140K  /var/audit zr/var/crash      140K  5.12T   140K  /var/crash zr/var/log        401K  5.12T   401K  /var/log zr/var/mail       180K  5.12T   180K  /var/mail zr/var/tmp        140K  5.12T   140K  /var/tmp root@zfs2:/home/fjl # zpool iostat               capacity     operations     bandwidth pool        alloc   free   read  write   read  write ----------  -----  -----  -----  -----  -----  ----- zr          42.8G  7.22T      7      8   417K  1.16M As this is a "clean" system I can't figure out where the discrepancy could possibly be coming from. This is beyond the slop value. Any ideas anyone? (Incidentally, I'm testing failure modes using some flaky hard drives I acquired on eBay - no errors logged prior to reboot). Thanks, Frank. From nobody Wed Feb 12 11:05:37 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtFpp0rXvz5mbjR for ; Wed, 12 Feb 2025 11:05:38 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YtFpn2VBFz3dwR for ; Wed, 12 Feb 2025 11:05:37 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51CB5ZbP057306 for ; Wed, 12 Feb 2025 11:05:36 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <24414b4d-5ab1-4d9b-b83a-cb26f2f20761@fjl.co.uk> Date: Wed, 12 Feb 2025 11:05:37 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ZFS missing space Content-Language: en-GB To: questions@freebsd.org References: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> From: Frank Leonhardt In-Reply-To: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [2.85 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.85)[0.848]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[fjl.co.uk]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4YtFpn2VBFz3dwR On 12/02/2025 10:55, Frank Leonhardt wrote: > I've noticed space "go missing" on ZFS before, but not conclusively. > This time it's happened on a brand new setup I'm doing some testing on. > > This is a clean install of 14.2. The machine rebooted (not sure why) > while a large dataset was being received (zfs receive...). The dataset > isn't there. > > There should be about 6Tb in the pool (depending on how you count a Tb). > > This is what I'm seeing as varying estimates of free space: > > root@zfs2:/home/fjl # zfs list -t all > NAME              USED  AVAIL  REFER  MOUNTPOINT > zr               30.6G  5.12T   140K  /zr > zr/ROOT          5.12G  5.12T   140K  none > zr/ROOT/default  5.12G  5.12T  5.12G  / > zr/data           140K  5.12T   140K  /data > zr/francis       23.3G  5.12T  23.3G  /zr/francis > zr/home           343K  5.12T   140K  /home > zr/home/fjl       203K  5.12T   203K  /home/fjl > zr/tmp            140K  5.12T   140K  /tmp > zr/usr           2.19G  5.12T   140K  /usr > zr/usr/ports     1.16G  5.12T  1.16G  /usr/ports > zr/usr/src       1.03G  5.12T  1.03G  /usr/src > zr/var           1.11M  5.12T   140K  /var > zr/var/audit      140K  5.12T   140K  /var/audit > zr/var/crash      140K  5.12T   140K  /var/crash > zr/var/log        401K  5.12T   401K  /var/log > zr/var/mail       180K  5.12T   180K  /var/mail > zr/var/tmp        140K  5.12T   140K  /var/tmp > root@zfs2:/home/fjl # zpool iostat >               capacity     operations     bandwidth > pool        alloc   free   read  write   read  write > ----------  -----  -----  -----  -----  -----  ----- > zr          42.8G  7.22T      7      8   417K  1.16M > > As this is a "clean" system I can't figure out where the discrepancy > could possibly be coming from. This is beyond the slop value. > > Any ideas anyone? > > (Incidentally, I'm testing failure modes using some flaky hard drives > I acquired on eBay - no errors logged prior to reboot). > > Thanks, Frank. Further: Before the system rebooted itself I had IOstat running:               capacity     operations     bandwidth pool        alloc   free   read  write   read  write ----------  -----  -----  -----  -----  -----  ----- zr          2.13T  5.14T      0    980      0   142M   raidz1-0  2.13T  5.14T      0    980      0   142M     da0p3       -      -      0    254      0  35.3M     da1p3       -      -      0    351      0  35.6M     da2p3       -      -      0     80      0  35.5M     da3p3       -      -      0    293      0  35.6M ----------  -----  -----  -----  -----  -----  ----- As you can see it has 2.13T allocated, which is what I'd have expected a few hours into the receive. After the reboot this 2.13Tb allocated has disappeared, but not been added back to the free pool! From nobody Wed Feb 12 12:42:12 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtHyH5L2zz5mk8d for ; Wed, 12 Feb 2025 12:42:15 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YtHyG18Hvz3mNF for ; Wed, 12 Feb 2025 12:42:14 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51CCgBbH085251 for ; Wed, 12 Feb 2025 12:42:11 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: Date: Wed, 12 Feb 2025 12:42:12 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: natd problem -- pass specific IP to internal machine To: freebsd-questions@freebsd.org References: <32257deb-4ef3-4d7f-bb15-94cc8743dcd5@dreamchaser.org> From: Frank Leonhardt Content-Language: en-GB In-Reply-To: <32257deb-4ef3-4d7f-bb15-94cc8743dcd5@dreamchaser.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [1.53 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_SHORT(-0.47)[-0.470]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; DMARC_NA(0.00)[fjl.co.uk]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YtHyG18Hvz3mNF On 09/02/2025 17:28, Gary Aitken wrote: > my natd has been translating fine using: > > interface xl0 > use_sockets yes > same_ports yes > unregistered_only yes > > However, I am having an issue with a particular internal system (solar > inverter) > and I would like to be able to tcpdump it on the external interface. > As no one experienced with natd has replied, an observation: After a decade or more of struggling with ipfw+natd, because it was the "FreeBSD" solution, I discovered PF and have never never looked back after fifteen years. I just wish someone had told me earlier. The FreeBSD documentation gives equal weight to multiple solutions in various places and would be better if it said "this is the old system that hardly anyone uses" more often, so you knew which to pick first. The final straw for me was to do with NAT loopback, and it required a custom kernel build to get it to work. I can't remember the details. PF, on the other hand, just works and there is at least one excellent book explaining how to use it in plain English. I use it as a NAT gateway in all sorts of places and it's really easy to configure it to do what you want. The configuration file is simple and it does what you expect (and NAT etc is built in). If anyone feels I'm missing something great I simply haven't understood about ipfw+natd I'd love to hear it. Regards, Frank. From nobody Wed Feb 12 14:03:34 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtKmN6PHWz5mqyq for ; Wed, 12 Feb 2025 14:03:48 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtKmN0z7Tz3vHS for ; Wed, 12 Feb 2025 14:03:48 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5deb1266031so1208347a12.2 for ; Wed, 12 Feb 2025 06:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739369025; x=1739973825; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cJLC1jobGhO7nq62A3YRiEW2Ilc6BWBD4FHlfDlRWRs=; b=PQvq7FfBL0LNBf/hrxLvmPHprsmF+m4jidxEnmno1TJJv6SDjP7a4J1SAqgsFXjowt PHRpf6wSTJx0Uy0juy7Jy+OJijTy0+s4N7LPKQUkLdZ0hpUjbAyt8Tn23DWsLS1JAyna RAdrSIIMEBd3cgaTLO0u4MjAUKxnUp2ZH9DVkKRVlld9/eoULQ8x9l8jRNi1UDBwWc3a CsL4af11F7LH5fKhoZsKlWAwviatstsImsFJlnq98O6HT3Dw0aPfnsvSLG2G3EnXbweK rkMAdLtXm+YWsYGKz1RnMrIse44Q5CjmO2tWw8NWWqQYXk7iUOUPqvwoXg/b5CFblLXa WXzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739369025; x=1739973825; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cJLC1jobGhO7nq62A3YRiEW2Ilc6BWBD4FHlfDlRWRs=; b=RealGk0oy7N8HoeWeZS9M/4s2TZ/XkpVka8hEDg9eoGxEFQS88q3zG09YcWZDft1om ZXOXp6E8TnIxH8ET7A+0qXhaJMx1A6KtexmZHb4X8AnyLgIwQ59ZlUlcgypTiAJ8771C ctL3WL77Moax/oHl2J94t6b4SIL4nE2SfRy+KvvUSzx5KhdCkGMp7A/RBqOTxnzlpb47 a5iZCNwnQrIwAdO5VPuKd/gU/DkYOTxrI35SWXBWVgjz6sv+0khmtKA10tozyiDDz31k oHVMpZPs1kQgHETEqLNfx5GzXygwvK8+BAuj55IH60j+wNWtxBpe2Gc49dF1aDOmpsh2 8VDA== X-Gm-Message-State: AOJu0Yz+frcl4RDCxkZx2MgyLhomhq8COwOxKYQgHv0UDsWX1jXccuNx CjfHfLeSMKIBmWMXkwhdRGUsnZkO2nFK1+799kOABUVSho/6yUqKNu1TRQj1KOFUrTKPNLhDEPE ug3lhNhftHUu04fIWlhBHv2FPFzRt X-Gm-Gg: ASbGncuBMDArwIvYzICP2WIuCPoayxJyJ4ghCVgg3v53A0SisLO8wDktTdC/7FrXWxf VFdnayw6RjMuO+bZcXrTIJCm0C0pgKZ7IE6FPlHvJuU98zJDwUz8xZuzj/uBQKQKjOnBwSTM= X-Google-Smtp-Source: AGHT+IHiHLBwIXbxONTbYLGFugwXkC/fJVKhSzd7/K3ngObYRSR5q13YfDNaxvf/5Qn7IZgLdEFFVLgc6wsiUEehFik= X-Received: by 2002:a05:6402:5253:b0:5de:3747:cddf with SMTP id 4fb4d7f45d1cf-5deadd7b8e9mr2988104a12.7.1739369024824; Wed, 12 Feb 2025 06:03:44 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> <24414b4d-5ab1-4d9b-b83a-cb26f2f20761@fjl.co.uk> In-Reply-To: <24414b4d-5ab1-4d9b-b83a-cb26f2f20761@fjl.co.uk> From: Paul Procacci Date: Wed, 12 Feb 2025 09:03:34 -0500 X-Gm-Features: AWEUYZmlh8q-UrliMHsN7fqv6yXntOdCdn4lR8wcaWiajBEYeiby5o3sYOCy2bU Message-ID: Subject: Re: ZFS missing space To: Frank Leonhardt Cc: questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YtKmN0z7Tz3vHS X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Wed, Feb 12, 2025 at 6:06=E2=80=AFAM Frank Leonhardt wrote: > > On 12/02/2025 10:55, Frank Leonhardt wrote: > > I've noticed space "go missing" on ZFS before, but not conclusively. > > This time it's happened on a brand new setup I'm doing some testing on. > > > > This is a clean install of 14.2. The machine rebooted (not sure why) > > while a large dataset was being received (zfs receive...). The dataset > > isn't there. > > > > There should be about 6Tb in the pool (depending on how you count a Tb)= . > > > > This is what I'm seeing as varying estimates of free space: > > > > root@zfs2:/home/fjl # zfs list -t all > > NAME USED AVAIL REFER MOUNTPOINT > > zr 30.6G 5.12T 140K /zr > > zr/ROOT 5.12G 5.12T 140K none > > zr/ROOT/default 5.12G 5.12T 5.12G / > > zr/data 140K 5.12T 140K /data > > zr/francis 23.3G 5.12T 23.3G /zr/francis > > zr/home 343K 5.12T 140K /home > > zr/home/fjl 203K 5.12T 203K /home/fjl > > zr/tmp 140K 5.12T 140K /tmp > > zr/usr 2.19G 5.12T 140K /usr > > zr/usr/ports 1.16G 5.12T 1.16G /usr/ports > > zr/usr/src 1.03G 5.12T 1.03G /usr/src > > zr/var 1.11M 5.12T 140K /var > > zr/var/audit 140K 5.12T 140K /var/audit > > zr/var/crash 140K 5.12T 140K /var/crash > > zr/var/log 401K 5.12T 401K /var/log > > zr/var/mail 180K 5.12T 180K /var/mail > > zr/var/tmp 140K 5.12T 140K /var/tmp > > root@zfs2:/home/fjl # zpool iostat > > capacity operations bandwidth > > pool alloc free read write read write > > ---------- ----- ----- ----- ----- ----- ----- > > zr 42.8G 7.22T 7 8 417K 1.16M > > > > As this is a "clean" system I can't figure out where the discrepancy > > could possibly be coming from. This is beyond the slop value. > > > > Any ideas anyone? > > > > (Incidentally, I'm testing failure modes using some flaky hard drives > > I acquired on eBay - no errors logged prior to reboot). > > > > Thanks, Frank. > > > Further: Before the system rebooted itself I had IOstat running: > > capacity operations bandwidth > pool alloc free read write read write > ---------- ----- ----- ----- ----- ----- ----- > zr 2.13T 5.14T 0 980 0 142M > raidz1-0 2.13T 5.14T 0 980 0 142M > da0p3 - - 0 254 0 35.3M > da1p3 - - 0 351 0 35.6M > da2p3 - - 0 80 0 35.5M > da3p3 - - 0 293 0 35.6M > ---------- ----- ----- ----- ----- ----- ----- > > As you can see it has 2.13T allocated, which is what I'd have expected a > few hours into the receive. After the reboot this 2.13Tb allocated has > disappeared, but not been added back to the free pool! > > > Have you scrub'd? --=20 __________________ :(){ :|:& };: From nobody Wed Feb 12 14:14:26 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtL0m0yRXz5mrTx for ; Wed, 12 Feb 2025 14:14:32 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smarthost1.sentex.ca", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtL0l5P8Pz40qM for ; Wed, 12 Feb 2025 14:14:31 +0000 (UTC) (envelope-from mike@sentex.net) Authentication-Results: mx1.freebsd.org; none Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.18.1/8.18.1) with ESMTPS id 51CEERHQ039016 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Wed, 12 Feb 2025 09:14:27 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:f480:f0b2:1361:14e1] ([IPv6:2607:f3e0:0:4:f480:f0b2:1361:14e1]) by pyroxene2a.sentex.ca (8.18.1/8.15.2) with ESMTPS id 51CEEPGn023198 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 12 Feb 2025 09:14:26 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: Date: Wed, 12 Feb 2025 09:14:26 -0500 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ZFS missing space To: Frank Leonhardt , freebsd-questions@freebsd.org References: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> Content-Language: en-US From: mike tancsa Autocrypt: addr=mike@sentex.net; keydata= xsBNBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAHNHW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+wsCOBBMBCAA4FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAl+pQfkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQeVOEFl5W rMiN6ggAk3H5vk8QnbvGbb4sinxZt/wDetgk0AOR9NRmtTnPaW+sIJEfGBOz47Xih+f7uWJS j+uvc9Ewn2Z7n8z3ZHJlLAByLVLtcNXGoRIGJ27tevfOaNqgJHBPbFOcXCBBFTx4MYMM4iAZ cDT5vsBTSaM36JZFtHZBKkuFEItbA/N8ZQSHKdTYMIA7A3OCLGbJBqloQ8SlW4MkTzKX4u7R yefAYQ0h20x9IqC5Ju8IsYRFacVZconT16KS81IBceO42vXTN0VexbVF2rZIx3v/NT75r6Vw 0FlXVB1lXOHKydRA2NeleS4NEG2vWqy/9Boj0itMfNDlOhkrA/0DcCurMpnpbM7ATQRcsMzk AQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4axtKRSG1 t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1qzAJweEt RdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6cLm0EiHPO l5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5o9KKu4O7 gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQABwsB2BBgB CAAgFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAl+pQfkCGwwACgkQeVOEFl5WrMiVqwf9GwU8 c6cylknZX8QwlsVudTC8xr/L17JA84wf03k3d4wxP7bqy5AYy7jboZMbgWXngAE/HPQU95NM aukysSnknzoIpC96XZJ0okLBXVS6Y0ylZQ+HrbIhMpuQPoDweoF5F9wKrsHRoDaUK1VR706X rwm4HUzh7Jk+auuMYfuCh0FVlFBEuiJWMLhg/5WCmcRfiuB6F59ZcUQrwLEZeNhF2XJV4KwB Tlg7HCWO/sy1foE5noaMyACjAtAQE9p5kGYaj+DuRhPdWUTsHNuqrhikzIZd2rrcMid+ktb0 NvtvswzMO059z1YGMtGSqQ4srCArju+XHIdTFdiIYbd7+jeehg== In-Reply-To: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.86 X-Rspamd-Queue-Id: 4YtL0l5P8Pz40qM X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA] On 2/12/2025 5:55 AM, Frank Leonhardt wrote: > I've noticed space "go missing" on ZFS before, but not conclusively. > This time it's happened on a brand new setup I'm doing some testing on. > As this is a "clean" system I can't figure out where the discrepancy > could possibly be coming from. This is beyond the slop value. > > Any ideas anyone? > What do zfs list -t snapshot -sused -r zr zpool get all show ? does fstat show any open files at the time ?     ---Mike From nobody Wed Feb 12 21:48:45 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtX4v5Zfvz5nQ4N for ; Wed, 12 Feb 2025 21:48:47 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YtX4t2KPfz3R90 for ; Wed, 12 Feb 2025 21:48:46 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51CLmipo069883 for ; Wed, 12 Feb 2025 21:48:44 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <5a3888dc-80bd-4397-9f79-67115a034d5d@fjl.co.uk> Date: Wed, 12 Feb 2025 21:48:45 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ZFS missing space Content-Language: en-GB To: freebsd-questions@freebsd.org References: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> From: Frank Leonhardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [2.83 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.83)[0.830]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_NA(0.00)[fjl.co.uk]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4YtX4t2KPfz3R90 On 12/02/2025 14:14, mike tancsa wrote: > On 2/12/2025 5:55 AM, Frank Leonhardt wrote: >> I've noticed space "go missing" on ZFS before, but not conclusively. >> This time it's happened on a brand new setup I'm doing some testing on. >> As this is a "clean" system I can't figure out where the discrepancy >> could possibly be coming from. This is beyond the slop value. >> >> Any ideas anyone? >> > What do > > zfs list -t snapshot -sused -r zr > zpool get all > > show ? > > does > fstat > show any open files at the time ? > >     ---Mike There are no snapshots. zfs list -t all would have shown them and anything else. I see where you're going with fstat, but it's been restarted (several times) and there's nothing hanging. But when it rebooted itself it was creating a dataset of about the same size as the black hole. And yes, I did try a scrub :-) Since then I've tested all the drives by reading every block and I'm running memory soak tests. It's ECC RAM anyway. ----- root@zfs2:/ #  zpool list NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP    HEALTH  ALTROOT zr    7.27T  10.1G  7.26T        -         -     0%     0% 1.00x    ONLINE  - ------ root@zfs2:/ # zpool status   pool: zr  state: ONLINE   scan: scrub repaired 0B in 00:00:36 with 0 errors on Wed Feb 12 10:36:17 2025 config:         NAME        STATE     READ WRITE CKSUM         zr          ONLINE       0     0     0           raidz1-0  ONLINE       0     0     0             da0p3   ONLINE       0     0     0             da1p3   ONLINE       0     0     0             da2p3   ONLINE       0     0     0             da3p3   ONLINE       0     0     0 errors: No known data errors ------- root@zfs2:/ # zfs list NAME              USED  AVAIL  REFER  MOUNTPOINT zr               7.33G  5.15T   140K  /zr zr/ROOT          5.12G  5.15T   140K  none zr/ROOT/default  5.12G  5.15T  5.12G  / zr/data           140K  5.15T   140K  /data zr/home           343K  5.15T   140K  /home zr/home/fjl       203K  5.15T   203K  /home/fjl zr/tmp            140K  5.15T   140K  /tmp zr/usr           2.19G  5.15T   140K  /usr zr/usr/ports     1.16G  5.15T  1.16G  /usr/ports zr/usr/src       1.03G  5.15T  1.03G  /usr/src zr/var           1.12M  5.15T   140K  /var zr/var/audit      140K  5.15T   140K  /var/audit zr/var/crash      140K  5.15T   140K  /var/crash zr/var/log        407K  5.15T   407K  /var/log zr/var/mail       180K  5.15T   180K  /var/mail zr/var/tmp        140K  5.15T   140K  /var/tmp ----------- zfs list and zpool list agree on what's used, just not what's free. It's like there's a hidden broken dataset that's allocated space but isn't listed. Thanks, Frank. From nobody Wed Feb 12 22:26:40 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtXwg403Gz5nRwX for ; Wed, 12 Feb 2025 22:26:43 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YtXwd6GTBz3kqV for ; Wed, 12 Feb 2025 22:26:41 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51CMQedo084946 for ; Wed, 12 Feb 2025 22:26:40 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <88dda1b4-3d83-4b89-b05d-e579ad253da8@fjl.co.uk> Date: Wed, 12 Feb 2025 22:26:40 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ZFS missing space Content-Language: en-GB From: Frank Leonhardt To: freebsd-questions@FreeBSD.org References: <78dc7b6a-8e87-4f5e-a560-c7b939b0f47f@fjl.co.uk> <5a3888dc-80bd-4397-9f79-67115a034d5d@fjl.co.uk> In-Reply-To: <5a3888dc-80bd-4397-9f79-67115a034d5d@fjl.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [2.81 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.81)[0.814]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[fjl.co.uk]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4YtXwd6GTBz3kqV On 12/02/2025 21:48, Frank Leonhardt wrote: > On 12/02/2025 14:14, mike tancsa wrote: >> On 2/12/2025 5:55 AM, Frank Leonhardt wrote: >>> I've noticed space "go missing" on ZFS before, but not conclusively. >>> This time it's happened on a brand new setup I'm doing some testing on. >>> As this is a "clean" system I can't figure out where the discrepancy >>> could possibly be coming from. This is beyond the slop value. >>> >>> Any ideas anyone? >>> >> What do >> >> zfs list -t snapshot -sused -r zr >> zpool get all >> >> show ? >> >> does >> fstat >> show any open files at the time ? >> >>     ---Mike > > There are no snapshots. zfs list -t all would have shown them and > anything else. > > I see where you're going with fstat, but it's been restarted (several > times) and there's nothing hanging. But when it rebooted itself it was > creating a dataset of about the same size as the black hole. > > And yes, I did try a scrub :-) > > Since then I've tested all the drives by reading every block and I'm > running memory soak tests. It's ECC RAM anyway. > > ----- > > root@zfs2:/ #  zpool list > NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP    > HEALTH  ALTROOT > zr    7.27T  10.1G  7.26T        -         -     0%     0% 1.00x    > ONLINE  - > > ------ > > root@zfs2:/ # zpool status >   pool: zr >  state: ONLINE >   scan: scrub repaired 0B in 00:00:36 with 0 errors on Wed Feb 12 > 10:36:17 2025 > config: > >         NAME        STATE     READ WRITE CKSUM >         zr          ONLINE       0     0     0 >           raidz1-0  ONLINE       0     0     0 >             da0p3   ONLINE       0     0     0 >             da1p3   ONLINE       0     0     0 >             da2p3   ONLINE       0     0     0 >             da3p3   ONLINE       0     0     0 > > errors: No known data errors > > ------- > > root@zfs2:/ # zfs list > NAME              USED  AVAIL  REFER  MOUNTPOINT > zr               7.33G  5.15T   140K  /zr > zr/ROOT          5.12G  5.15T   140K  none > zr/ROOT/default  5.12G  5.15T  5.12G  / > zr/data           140K  5.15T   140K  /data > zr/home           343K  5.15T   140K  /home > zr/home/fjl       203K  5.15T   203K  /home/fjl > zr/tmp            140K  5.15T   140K  /tmp > zr/usr           2.19G  5.15T   140K  /usr > zr/usr/ports     1.16G  5.15T  1.16G  /usr/ports > zr/usr/src       1.03G  5.15T  1.03G  /usr/src > zr/var           1.12M  5.15T   140K  /var > zr/var/audit      140K  5.15T   140K  /var/audit > zr/var/crash      140K  5.15T   140K  /var/crash > zr/var/log        407K  5.15T   407K  /var/log > zr/var/mail       180K  5.15T   180K  /var/mail > zr/var/tmp        140K  5.15T   140K  /var/tmp > > ----------- > > zfs list and zpool list agree on what's used, just not what's free. > > It's like there's a hidden broken dataset that's allocated space but > isn't listed. > > Thanks, Frank. > Okay - I had a missed something important. It's zpool list that's wrong here cos to have that much space on a RAIDZ1 with 4x2Tb drives would be impossible. As I had several drive failures during installation (I replaced three!) I decided to reinstall. # zpool list NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP    HEALTH  ALTROOT zr    7.27T   951M  7.26T        -         -     0%     0% 1.00x    ONLINE  - # zfs list zr NAME   USED  AVAIL  REFER  MOUNTPOINT zr     691M  5.15T   140K  /zr I'd say both are wrong. There's certainly not that much space in the zpool unless you're taking a guess about block compression. Likewise there's a bit more than the 5.15T suggested by zfs list. df gives similar results to zfs list. So why the discrepancy? Has it always been there? Er, no. Here's FreeBSD 10: NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT zroot   920G   543G   377G    59%  1.00x  ONLINE  - fjl@fjl3:~ % zfs list zroot NAME    USED  AVAIL  REFER  MOUNTPOINT zroot   543G   363G   144K  none Allowing for the slop, these add up! FreeBSD 12: root@bs2:~ # zfs list zr NAME   USED  AVAIL  REFER  MOUNTPOINT zr    1.29T   474G  3.79M  /zr root@bs2:~ # zpool list NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP DEDUP  HEALTH  ALTROOT zr    1.81T  1.29T   532G        -         -    18%    71% 1.00x  ONLINE  - Something's going on if anyone has any bright ideas! Thanks, Frank. P.S. Now to figure out why the dam thing's rebooting :-( From nobody Thu Feb 13 08:35:33 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtpRW4P0Jz5nB82 for ; Thu, 13 Feb 2025 08:35:51 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtpRV16Kbz3mHB for ; Thu, 13 Feb 2025 08:35:49 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 47.181.130.121 as permitted sender) smtp.mailfrom=bc979@lafn.org; dmarc=none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4YtpRM1hB2z2gGKs for ; Thu, 13 Feb 2025 00:35:43 -0800 (PST) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Loss of default route Message-Id: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> Date: Thu, 13 Feb 2025 00:35:33 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Virus-Scanned: clamav-milter 1.4.2 at mail X-Virus-Status: Clean X-Spamd-Result: default: False [1.42 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(1.00)[0.998]; NEURAL_HAM_SHORT(-0.98)[-0.978]; MV_CASE(0.50)[]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; RCVD_TLS_ALL(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YtpRV16Kbz3mHB I am setting up a new server and anytime that "service" is run, it = deletes the default route. I don't have this problem on any other = server. Using 14.2-RELEASE. The network interface has a fixed IP = address. There are no indications in messages of issues with the = network interface. Even a service xxx stop where xxx does not exist = removes the default route. root@checkout:/home/doug # netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire default 10.0.1.1 UGS ue0 10.0.0.0/16 link#2 U ue0 10.0.1.212 link#1 UHS lo0 127.0.0.1 link#1 UH lo0 root@checkout:/home/doug # service ntp stop ntp does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable root@checkout:/home/doug # !net netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire 10.0.0.0/16 link#2 U ue0 10.0.1.212 link#1 UHS lo0 127.0.0.1 link#1 UH lo0 /etc/rc.conf includes: defaultrouter=3D"10.0.1.1" If I kill ntpd manually and then start it manually without service, the = default route remains and ntpd finds its peers. -- Doug From nobody Thu Feb 13 10:08:29 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtrVf5ns5z5nHJJ for ; Thu, 13 Feb 2025 10:08:42 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtrVf3sh4z3SPD for ; Thu, 13 Feb 2025 10:08:42 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5de3c29e9b3so1066798a12.3 for ; Thu, 13 Feb 2025 02:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739441321; x=1740046121; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7/YRUUF4/vN6IWGNudVUOGpFSzQmka8nBIMUuHxL6zc=; b=Ix8WhFww6co6AtGeqniWS1u9DZimetAUvwyp+Dn0osc1pwIlNq4hg90Pm/sQsO53rL vQSLp+wA6GvgySCM8A7xX2VBIKbFNaNwudRnx6ffPrw/IBW7XXTMRUeLXpFlYaDbWjuf XwRjIt/480wy6seXFihy1razrAU4TgdZugSZetYYVU2PODM2nytRAkc2QLeNps4cL4LK NiJphShBL78PCsz4UohflJ7ihgZVFPhUq3F6PgBx6ja8gaV5PbyqkFNao9kITuAWv0nH fzgqZ8hUoHbHDB+lpdpRqIFK0njSd82Tqral9rx42ljy0lxUF3XmKDgXUuFi+oYhdAJF T0GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739441321; x=1740046121; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7/YRUUF4/vN6IWGNudVUOGpFSzQmka8nBIMUuHxL6zc=; b=ZfIBXiZmM0u+PmdlGoGyaFQJcrj81cTxqUIvWLj7+emsXvsuM8/l/FZAk9xfNR1hv6 pMsHPgKsxh2J9niVIC69ZCVtdOUBqixOFtDgDYyrV4HNW4BL0gUPNY8LDtEA3ichDmbz fPDitviAAqcRztXoyPDTE8hOvG1fZzv7KQxKn17lFODo7OnDdgaiwkMfo928w6XFswTn y3ScLeInh6zc0WUrKufp+xtmYHL9sELn9zoUDVEA9Thh4ezEuNRZy23BoOiqlOWdBxIY uzIRPhT9gaJkwUT+UxUo81l7sv5izgqmxaDouhWQdJhoBORZN3mbXlsxn40oOF5XiEEH qogA== X-Gm-Message-State: AOJu0YzGc51hoq8Dusc/ylv04f4YFbyGEI+S0eZx+PQVAIuazMax1OiH ixPqMEvyxh5I2gh2pqM2A02mYOikfFjjm6vK4cXpI5OavDHWvLA9BsoCzUgU32CW2jvSBFHN99o 3X8WM7Wyw6VVpDRf+q+M7v0LQMjLOTFw= X-Gm-Gg: ASbGnct7V9mwjxztC7WVOFZy58nZMq8zD18LRuQy/f3ko7V5PUgMzgXgXioj58fgXJJ GjnSnm0vzr9UjTT5pwAZqynR6gcheI10MJ74OdJuYv2E9oD6Nit6OZp3xCdO3twvtluuT1Zo= X-Google-Smtp-Source: AGHT+IGHQCXawTAxVni3Sz66xg0wkZZ1yZikXIajTWvRgjafvJjN1cYapL5Cq4R26VbU6vwemHP7vxO+tnG9v5EjbbE= X-Received: by 2002:a05:6402:5253:b0:5dc:1f35:56a with SMTP id 4fb4d7f45d1cf-5dec9d66e44mr1840494a12.5.1739441320743; Thu, 13 Feb 2025 02:08:40 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> In-Reply-To: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> From: Paul Procacci Date: Thu, 13 Feb 2025 05:08:29 -0500 X-Gm-Features: AWEUYZk6mxj6gMKuA1t0htWWV_OqR8wyaA_IN7A1_NA8z_oMi2jmw3myYtc6NY8 Message-ID: Subject: Re: Loss of default route To: Doug Hardie Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YtrVf3sh4z3SPD X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Thu, Feb 13, 2025 at 3:36=E2=80=AFAM Doug Hardie wrote: > > I am setting up a new server and anytime that "service" is run, it delete= s the default route. I don't have this problem on any other server. Using= 14.2-RELEASE. The network interface has a fixed IP address. There are no= indications in messages of issues with the network interface. Even a servi= ce xxx stop where xxx does not exist removes the default route. > > root@checkout:/home/doug # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > default 10.0.1.1 UGS ue0 > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > root@checkout:/home/doug # service ntp stop > ntp does not exist in /etc/rc.d or the local startup > directories (/usr/local/etc/rc.d), or is not executable > root@checkout:/home/doug # !net > netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > > /etc/rc.conf includes: > defaultrouter=3D"10.0.1.1" > > If I kill ntpd manually and then start it manually without service, the d= efault route remains and ntpd finds its peers. > > -- Doug > > Anything in your logs or the kernel buffer? The default route disappearing is akin to an interface disappearing and reappearing. Outside of that, /usr/sbin/service is a shell script. You can add a '-x' to the shebang and record its output to see specifically what it's doing. ~Paul --=20 __________________ :(){ :|:& };: From nobody Thu Feb 13 11:18:16 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ytt354fLSz5nM5y for ; Thu, 13 Feb 2025 11:18:25 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4Ytt340M6Pz432M for ; Thu, 13 Feb 2025 11:18:23 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-173-104-202.range86-173.btcentralplus.com [86.173.104.202]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51DBIH3L007202 for ; Thu, 13 Feb 2025 11:18:17 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <169267fe-68f5-42d4-a669-ed3e417c3c79@fjl.co.uk> Date: Thu, 13 Feb 2025 11:18:16 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Loss of default route Content-Language: en-GB To: freebsd-questions@freebsd.org References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> From: Frank Leonhardt In-Reply-To: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [2.39 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_SHORT(0.39)[0.386]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196]; ONCE_RECEIVED(0.20)[]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[fjl.co.uk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4Ytt340M6Pz432M On 13/02/2025 08:35, Doug Hardie wrote: > I am setting up a new server and anytime that "service" is run, it deletes the default route. I don't have this problem on any other server. Using 14.2-RELEASE. The network interface has a fixed IP address. There are no indications in messages of issues with the network interface. Even a service xxx stop where xxx does not exist removes the default route. > > root@checkout:/home/doug # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > default 10.0.1.1 UGS ue0 > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > root@checkout:/home/doug # service ntp stop > ntp does not exist in /etc/rc.d or the local startup > directories (/usr/local/etc/rc.d), or is not executable > root@checkout:/home/doug # !net > netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > > /etc/rc.conf includes: > defaultrouter="10.0.1.1" > > If I kill ntpd manually and then start it manually without service, the default route remains and ntpd finds its peers. > > -- Doug I have a clean install of 14.2-RELEASE I'm using for testing ZFS, so I've just tried to recreate this and couldn't. And I tried quite hard! You know defaultroute is kind of like a service in rc.d ? (Not that this helps but it might be relevant). If you post some key files I can try those for you. Anything varying from a clean install. My bet is on something in rc.conf is a bit off and triggering a bug. Regards, Frank. From nobody Thu Feb 13 17:03:47 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yv1jp1CyFz5n0Z5 for ; Thu, 13 Feb 2025 17:03:58 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from ns.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "discoveriesinwood.com", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yv1jl3llJz3Ybh for ; Thu, 13 Feb 2025 17:03:55 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org; dmarc=none Received: from [192.168.151.122] (breakaway.dreamchaser.org [192.168.151.122]) by ns.dreamchaser.org (8.18.1/8.18.1) with ESMTP id 51DH3lvp053459 for ; Thu, 13 Feb 2025 10:03:48 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: Date: Thu, 13 Feb 2025 10:03:47 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: natd problem -- pass specific IP to internal machine To: questions@freebsd.org References: <32257deb-4ef3-4d7f-bb15-94cc8743dcd5@dreamchaser.org> Content-Language: en-US From: Gary Aitken Reply-To: freebsd@dreamchaser.org, freebsd-doc@fjl.co.uk In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: inspected by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Thu, 13 Feb 2025 10:03:48 -0700 (MST) for IP:'192.168.151.122' DOMAIN:'breakaway.dreamchaser.org' HELO:'[192.168.151.122]' FROM:'freebsd@dreamchaser.org' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Thu, 13 Feb 2025 10:03:48 -0700 (MST) X-Spamd-Result: default: False [1.90 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; RBL_SENDERSCORE_REPUT_9(-1.00)[66.109.141.57:from]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_SHORT(1.00)[0.997]; R_SPF_ALLOW(-0.20)[+mx]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; RCVD_TLS_LAST(0.00)[]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4Yv1jl3llJz3Ybh On 2/12/25 05:42, Frank Leonhardt wrote: > On 09/02/2025 17:28, Gary Aitken wrote: >> my natd has been translating fine using: >> >> interface xl0 use_sockets yes same_ports yes unregistered_only yes >> >> However, I am having an issue with a particular internal system >> (solar inverter) and I would like to be able to tcpdump it on the >> external interface. >> > As no one experienced with natd has replied, an observation: After a > decade or more of struggling with ipfw+natd, because it was the > "FreeBSD" solution, I discovered PF and have never never looked back > after fifteen years. I just wish someone had told me earlier. The > FreeBSD documentation gives equal weight to multiple solutions in > various places and would be better if it said "this is the old > system that hardly anyone uses" more often, so you knew which to > pick first. Thanks, will think about moving to PF on my next major upgrade. I think I started that a while ago but it got pushed aside. I was about to post I finally found the issue; I had limited ICMP to specific types quite a while ago and had mistakenly left off type 0, echo reply. The old inverter I was replacing didn't use ICMP, but the new one probes 8.8.8.8 (google) as a crude mechanism to determine if the "internet" is connected. Getting no reply, it assumed the internet was unavailable and wouldn't even attempt to communicate, even though it could ping its gateway just fine. Bad design. Most of my testing was from the internal network; ipfw wasn't involved in those so everything appeared to work; and pinging *from* an external system also worked. Once I realized the 8.8.8.8 response was arriving but not being passed on I could track it down. Gary From nobody Thu Feb 13 18:46:43 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yv40b3dr6z5n7LX for ; Thu, 13 Feb 2025 18:46:55 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yv40b0bF5z3WnK for ; Thu, 13 Feb 2025 18:46:54 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4Yv40Y2sjfz2fjSh; Thu, 13 Feb 2025 10:46:53 -0800 (PST) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: Loss of default route From: Doug Hardie In-Reply-To: <169267fe-68f5-42d4-a669-ed3e417c3c79@fjl.co.uk> Date: Thu, 13 Feb 2025 10:46:43 -0800 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> <169267fe-68f5-42d4-a669-ed3e417c3c79@fjl.co.uk> To: Frank Leonhardt X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Virus-Scanned: clamav-milter 1.4.2 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Yv40b0bF5z3WnK X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] > On Feb 13, 2025, at 03:18, Frank Leonhardt = wrote: >=20 > On 13/02/2025 08:35, Doug Hardie wrote: >> I am setting up a new server and anytime that "service" is run, it = deletes the default route. I don't have this problem on any other = server. Using 14.2-RELEASE. The network interface has a fixed IP = address. There are no indications in messages of issues with the = network interface. Even a service xxx stop where xxx does not exist = removes the default route. >>=20 >> root@checkout:/home/doug # netstat -rn >> Routing tables >>=20 >> Internet: >> Destination Gateway Flags Netif Expire >> default 10.0.1.1 UGS ue0 >> 10.0.0.0/16 link#2 U ue0 >> 10.0.1.212 link#1 UHS lo0 >> 127.0.0.1 link#1 UH lo0 >>=20 >> root@checkout:/home/doug # service ntp stop >> ntp does not exist in /etc/rc.d or the local startup >> directories (/usr/local/etc/rc.d), or is not executable >> root@checkout:/home/doug # !net >> netstat -rn >> Routing tables >>=20 >> Internet: >> Destination Gateway Flags Netif Expire >> 10.0.0.0/16 link#2 U ue0 >> 10.0.1.212 link#1 UHS lo0 >> 127.0.0.1 link#1 UH lo0 >>=20 >>=20 >> /etc/rc.conf includes: >> defaultrouter=3D"10.0.1.1" >>=20 >> If I kill ntpd manually and then start it manually without service, = the default route remains and ntpd finds its peers. >>=20 >> -- Doug >=20 > I have a clean install of 14.2-RELEASE I'm using for testing ZFS, so = I've just tried to recreate this and couldn't. And I tried quite hard! >=20 > You know defaultroute is kind of like a service in rc.d ? (Not that = this helps but it might be relevant). >=20 > If you post some key files I can try those for you. Anything varying = from a clean install. My bet is on something in rc.conf is a bit off and = triggering a bug. >=20 > Regards, Frank. >=20 It gets even more interesting. I only need to run service with no = arguments to delete the default route: root@checkout:/home/doug # !net netstat -rn4 Routing tables Internet: Destination Gateway Flags Netif Expire default 10.0.1.1 UGS ue0 10.0.0.0/16 link#2 U ue0 10.0.1.212 link#1 UHS lo0 127.0.0.1 link#1 UH lo0 root@checkout:/home/doug # service Usage: service [-j ] -e service [-j ] -R service [-j ] [-v] -l | -r service [-j ] [-v] [-E var=3Dvalue] = start|stop|etc. service -h -j Perform actions within the named jail -E n=3Dval Set variable n to val before executing the rc.d script -e Show services that are enabled -R Stop and start enabled /usr/local/etc/rc.d services -l List all scripts in /etc/rc.d and /usr/local/etc/rc.d -r Show the results of boot time rcorder -v Verbose root@checkout:/home/doug # !net netstat -rn4 Routing tables Internet: Destination Gateway Flags Netif Expire 10.0.0.0/16 link#2 U ue0 10.0.1.212 link#1 UHS lo0 127.0.0.1 link#1 UH lo0 root@checkout:/home/doug #=20 Here is /etc/rc.conf. My first thought was there had to be a problem = there, but I am not finding one. Running service -v shows that it finds = the proper default route. ### FSCK Options ### fsck_y_enable=3D"YES" background_fsck=3D"NO" clear_tmp_enable=3D"YES" ### Basic Network Options ### hostname=3D"checkout" ### IPv4 Setup ### ifconfig ue0 inet 10.0.1.212/16 defaultrouter=3D"10.0.1.1" ### Network Daemon Options ### sshd_enable=3D"YES" ### Network Time Services Options ### ntpd_enable=3D"YES" ntpd_config=3D"/etc/ntp.conf" ntpd_sync_on_start=3D"YES" ############################################################### ### Miscellaneous administrative options ###################### ############################################################### # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable growfs_enable=3D"YES" dumpdev=3D"AUTO" powerd_enable=3D"YES" ############################################################### ### Port and Package optionw ################################## ############################################################### sendmail_enable=3D"NONE" sendmail_submit_enable=3D"NO" sendmail_outbound_enable=3D"NO" sendmail_msp_queue_enable=3D"NO" -- Doug From nobody Thu Feb 13 18:57:26 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yv4Ds0SSFz5n87k for ; Thu, 13 Feb 2025 18:57:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smarthost1.sentex.ca", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yv4Dr3dBHz3flX for ; Thu, 13 Feb 2025 18:57:32 +0000 (UTC) (envelope-from mike@sentex.net) Authentication-Results: mx1.freebsd.org; none Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.18.1/8.18.1) with ESMTPS id 51DIvRKG001005 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Thu, 13 Feb 2025 13:57:27 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:a088:4824:158e:cdd8] ([IPv6:2607:f3e0:0:4:a088:4824:158e:cdd8]) by pyroxene2a.sentex.ca (8.18.1/8.15.2) with ESMTPS id 51DIvQTn040978 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 13 Feb 2025 13:57:26 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <64bd6da9-4960-4ff4-8298-5fb21b06c738@sentex.net> Date: Thu, 13 Feb 2025 13:57:26 -0500 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Loss of default route To: Doug Hardie , Frank Leonhardt Cc: freebsd-questions@freebsd.org References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> <169267fe-68f5-42d4-a669-ed3e417c3c79@fjl.co.uk> Content-Language: en-US From: mike tancsa Autocrypt: addr=mike@sentex.net; keydata= xsBNBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAHNHW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+wsCOBBMBCAA4FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAl+pQfkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQeVOEFl5W rMiN6ggAk3H5vk8QnbvGbb4sinxZt/wDetgk0AOR9NRmtTnPaW+sIJEfGBOz47Xih+f7uWJS j+uvc9Ewn2Z7n8z3ZHJlLAByLVLtcNXGoRIGJ27tevfOaNqgJHBPbFOcXCBBFTx4MYMM4iAZ cDT5vsBTSaM36JZFtHZBKkuFEItbA/N8ZQSHKdTYMIA7A3OCLGbJBqloQ8SlW4MkTzKX4u7R yefAYQ0h20x9IqC5Ju8IsYRFacVZconT16KS81IBceO42vXTN0VexbVF2rZIx3v/NT75r6Vw 0FlXVB1lXOHKydRA2NeleS4NEG2vWqy/9Boj0itMfNDlOhkrA/0DcCurMpnpbM7ATQRcsMzk AQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4axtKRSG1 t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1qzAJweEt RdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6cLm0EiHPO l5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5o9KKu4O7 gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQABwsB2BBgB CAAgFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAl+pQfkCGwwACgkQeVOEFl5WrMiVqwf9GwU8 c6cylknZX8QwlsVudTC8xr/L17JA84wf03k3d4wxP7bqy5AYy7jboZMbgWXngAE/HPQU95NM aukysSnknzoIpC96XZJ0okLBXVS6Y0ylZQ+HrbIhMpuQPoDweoF5F9wKrsHRoDaUK1VR706X rwm4HUzh7Jk+auuMYfuCh0FVlFBEuiJWMLhg/5WCmcRfiuB6F59ZcUQrwLEZeNhF2XJV4KwB Tlg7HCWO/sy1foE5noaMyACjAtAQE9p5kGYaj+DuRhPdWUTsHNuqrhikzIZd2rrcMid+ktb0 NvtvswzMO059z1YGMtGSqQ4srCArju+XHIdTFdiIYbd7+jeehg== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.86 X-Rspamd-Queue-Id: 4Yv4Dr3dBHz3flX X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA] On 2/13/2025 1:46 PM, Doug Hardie wrote: > ### IPv4 Setup ### > ifconfig ue0 inet 10.0.1.212/16 > defaultrouter="10.0.1.1" Are there really no quotes around ifconfig_ue0="inet 10.0.1.212/16"  ?     ---Mike From nobody Thu Feb 13 19:35:55 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yv55L60FSz5nBBF for ; Thu, 13 Feb 2025 19:36:06 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yv55L3wBjz40yL for ; Thu, 13 Feb 2025 19:36:06 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4Yv55K2BqCz2fjSh; Thu, 13 Feb 2025 11:36:05 -0800 (PST) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: Loss of default route From: Doug Hardie In-Reply-To: <64bd6da9-4960-4ff4-8298-5fb21b06c738@sentex.net> Date: Thu, 13 Feb 2025 11:35:55 -0800 Cc: Doug Hardie , Frank Leonhardt , freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <276858D1-422D-4415-8A58-40019B5FF630@sermon-archive.info> References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> <169267fe-68f5-42d4-a669-ed3e417c3c79@fjl.co.uk> <64bd6da9-4960-4ff4-8298-5fb21b06c738@sentex.net> To: mike tancsa X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Virus-Scanned: clamav-milter 1.4.2 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Yv55L3wBjz40yL X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] > On Feb 13, 2025, at 10:57, mike tancsa wrote: >=20 > On 2/13/2025 1:46 PM, Doug Hardie wrote: >> ### IPv4 Setup ### >> ifconfig ue0 inet 10.0.1.212/16 >> defaultrouter=3D"10.0.1.1" >=20 >=20 > Are there really no quotes around ifconfig_ue0=3D"inet 10.0.1.212/16" = ? >=20 >=20 Good catch. Note that there was no _ between ifconfig and ue0 either. = rc didn't see any issues with the original entry. It configured the = port properly and all worked except for the service command. However, = the /16 had to be converted to a netmask 255.255.0.0 before rc would not = throw an error on boot and fail to configure the interface. Thanks to all, it now works. =20 -- Doug From nobody Fri Feb 14 08:32:44 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvQKW03QJz5p1TT for ; Fri, 14 Feb 2025 08:32:47 +0000 (UTC) (envelope-from mayuresh@sdf.org) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx.sdf.org", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvQKV1QvBz3HkJ for ; Fri, 14 Feb 2025 08:32:46 +0000 (UTC) (envelope-from mayuresh@sdf.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of mayuresh@sdf.org designates 205.166.94.24 as permitted sender) smtp.mailfrom=mayuresh@sdf.org; dmarc=pass (policy=quarantine) header.from=sdf.org Received: from sdf.org (sdf.org [205.166.94.16]) by mx.sdf.org (8.18.1/8.14.3) with ESMTPS id 51E8Wihf023326 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Fri, 14 Feb 2025 08:32:44 GMT Received: (from mayuresh@localhost) by sdf.org (8.18.1/8.12.8/Submit) id 51E8WigX022745 for freebsd-questions@freebsd.org; Fri, 14 Feb 2025 08:32:44 GMT Date: Fri, 14 Feb 2025 08:32:44 GMT From: Mayuresh Kathe Message-Id: <202502140832.51E8WigX022745@sdf.org> To: freebsd-questions@freebsd.org Subject: apple prevented freebsd on apple hardware? X-Spamd-Result: default: False [1.02 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_SENDERSCORE_REPUT_9(-1.00)[205.166.94.24:from]; NEURAL_SPAM_SHORT(1.00)[0.998]; NEURAL_SPAM_LONG(0.79)[0.789]; DMARC_POLICY_ALLOW(-0.50)[sdf.org,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:205.166.94.0/24:c]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.04)[0.037]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:14361, ipnet:205.166.94.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YvQKV1QvBz3HkJ List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org is it true that apple issued a veiled threat to freebsd to prevent a port to apple hardware? if yes, what could apple possibily benefit by blocking freebsd but allowing linux? From nobody Fri Feb 14 08:43:43 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvQZF3Jv5z5p1hW for ; Fri, 14 Feb 2025 08:43:49 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4YvQZD2H4nz3LKb for ; Fri, 14 Feb 2025 08:43:48 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.196 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from [192.168.1.109] (host86-167-39-60.range86-167.btcentralplus.com [86.167.39.60]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id 51E8hkSl080013 for ; Fri, 14 Feb 2025 08:43:46 GMT (envelope-from freebsd-doc@fjl.co.uk) Message-ID: Date: Fri, 14 Feb 2025 08:43:43 +0000 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Frank Leonhardt Subject: Re: natd problem -- pass specific IP to internal machine To: questions@freebsd.org References: <32257deb-4ef3-4d7f-bb15-94cc8743dcd5@dreamchaser.org> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [3.00 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.196:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RBL_SENDERSCORE_REPUT_8(0.00)[84.45.41.196:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[fjl.co.uk]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: ++ X-Rspamd-Queue-Id: 4YvQZD2H4nz3LKb On 13/02/2025 17:03, Gary Aitken wrote: > On 2/12/25 05:42, Frank Leonhardt wrote: >> On 09/02/2025 17:28, Gary Aitken wrote: >>> my natd has been translating fine using: >>> >>> interface xl0 use_sockets yes same_ports yes unregistered_only yes >>> >>> However, I am having an issue with a particular internal system >>> (solar inverter) and I would like to be able to tcpdump it on the >>> external interface. >>> >> As no one experienced with natd has replied, an observation: After a >> decade or more of struggling with ipfw+natd, because it was the >> "FreeBSD" solution, I discovered PF and have never never looked back >> > Thanks, will think about moving to PF on my next major upgrade. > I think I started that a while ago but it got pushed aside. > > I was about to post I finally found the issue; I had limited ICMP to > specific > types quite a while ago and had mistakenly left off type 0, echo reply. > The old inverter I was replacing didn't use ICMP, but the new one probes > 8.8.8.8 (google) as a crude mechanism to determine if the "internet" is > connected.  Getting no reply, it assumed the internet was unavailable and > wouldn't even attempt to communicate, even though it could ping its > gateway > just fine.  Bad design.  Most of my testing was from the internal network; > ipfw wasn't involved in those so everything appeared to work; and pinging > *from* an external system also worked.  Once I realized the 8.8.8.8 > response > was arriving but not being passed on I could track it down. Thanks for the update - another pooh trap for us all to avoid! I may be just me, but I was surprised at how easy it was to switch to PF as it make sense in a way that IPFW didn't. That said I'm still using sendmail, which I know is a complete PITA but I guess I've just invested too might time in it to start again. Everyone tells me postfix is the way to go :-) From nobody Fri Feb 14 14:47:21 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvZf01pjRz5nCJv for ; Fri, 14 Feb 2025 14:47:36 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvZdz1nl8z46L2 for ; Fri, 14 Feb 2025 14:47:35 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=hwHFrvdo; spf=pass (mx1.freebsd.org: domain of paulbeard@gmail.com designates 2a00:1450:4864:20::634 as permitted sender) smtp.mailfrom=paulbeard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-aaec61d0f65so478007066b.1 for ; Fri, 14 Feb 2025 06:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739544453; x=1740149253; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=fQyFs1mXahiFXoeEgvLqS0WYaPWoZcPuSUZ4bJ3zntw=; b=hwHFrvdodoFfUJ3BQJnPoP/pqu/sy73VCPJa5fTLVhttV5FTYNdTG8zHui9I0gjfkP DMBJFwfqXx4tWtSGaVyuafCgfTSp0deXMt6xUNr9L8qddmCkn4CBcmiEPkaonrrvvHzB 1SCHOott//CRAxHeOGMfiwSLnqet4B0RXLpyMx5BItUZswQxRYou5nfOLgFO7NEAoxPI WIYNpSAizs/rkANwkU0H6mWbF9ES5cLveoBgCKfqVpxl6eMtETtT7cxE2DTJRxiKSD58 LXPl5e4wPs6zXjsSDD3FLI3jDg+/8TMiIMni/As7Iu3Ui+jViDHAnfOolX2kiFAbGnkY xnXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739544453; x=1740149253; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fQyFs1mXahiFXoeEgvLqS0WYaPWoZcPuSUZ4bJ3zntw=; b=C89AwTAtIMY1Le5AbO+UiKI8ju7LmpSKU3E/eOjxxL4s3vpJzkdiM2H9AhQ+OHnuZs TJjt2/88j3vckZUBykZ0V55gsmCoT4UKIgai/rcv9V25h7sErKduAD4Y+nPvk+lIyGFF 8KaVScvsgaGRCJOGGjjrfr0s/qvJ3YFGg5iVINki389cvOpH/u9jxtvuoQ3pACKrUVnz 4caZnqdymU/Vm0P+PvGGOG2XtPt6Aph5gW75MTnCFNtCW3mRJimBQCb+pOf4L7E8AYLc rYP/vcIEI0Fl1d3cwcenYqc6BA1spbMrWbFvOAPx6vASXlasPm8gIVJQT3xxXbrEpAKS T0sw== X-Gm-Message-State: AOJu0YzNkc1Ktn25HRU4xigEmGQjvyPoZoO2rOWmryOIEPC345cvqZs0 IajybqNS7b4nMP9MqC7wo5cDjjU7AMNKcnwcg+Ts2KG0gNUkONXRebzjugL+MTsBcHBur1h3eOA f2HvrampfHRXpn9szS8CKW6YTc4gHwg== X-Gm-Gg: ASbGncsTIzrUoQkIk89vgGUD7zFPTcRpq5HhXlVBmwcWVFMsD4Q6winMGTUZbRzJA39 ZX4iyHbBSSWEqVz52rT/GGm83Yhbie++8ZLlKdwE1MPWKhlobnw6cePFo/HbZVj38uGGiAsjRxg == X-Google-Smtp-Source: AGHT+IGodkBMCVbU2hfxOACfwldB2K7hNzmH6bZDV34ES40lSDolM9rEhmpHKS/mK3xF6oOxyMZMvQS+WOG6vxCFwVA= X-Received: by 2002:a17:906:6a10:b0:ab7:e71:adb5 with SMTP id a640c23a62f3a-aba5017ed2emr853575866b.35.1739544453300; Fri, 14 Feb 2025 06:47:33 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <202502140832.51E8WigX022745@sdf.org> In-Reply-To: <202502140832.51E8WigX022745@sdf.org> From: paul beard Date: Fri, 14 Feb 2025 06:47:21 -0800 X-Gm-Features: AWEUYZkdo1JJHT6VylUFrYyQKdM6iZ1RLNHsT5T1CtsgKSGKBWd2qVME1wwXAYU Message-ID: Subject: Re: apple prevented freebsd on apple hardware? To: FreeBSD Questions List Content-Type: multipart/alternative; boundary="00000000000035cb84062e1b4101" X-Spamd-Result: default: False [-2.90 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; NEURAL_HAM_SHORT(-0.90)[-0.902]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::634:from] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4YvZdz1nl8z46L2 --00000000000035cb84062e1b4101 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is it true you heard a rumor about a veiled threat from a company people love to hate etc etc? put Apple and FreeBSD in your favorite search engine and see what you find. On Fri, Feb 14, 2025 at 12:33=E2=80=AFAM Mayuresh Kathe = wrote: > is it true that apple issued a veiled threat to freebsd to prevent > a port to apple hardware? > if yes, what could apple possibily benefit by blocking freebsd but > allowing linux? > > --=20 Paul Beard / www.paulbeard.org/ --00000000000035cb84062e1b4101 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is it true you heard a rumor about a veiled threat from a = company people love to=C2=A0hate etc etc?=C2=A0

put= Apple and FreeBSD in your favorite search engine and see what you find.=C2= =A0


On Fri, Feb 14, 2025 at 12:33=E2=80=AFAM Mayu= resh Kathe <mayure= sh@sdf.org> wrote:
is it true that apple = issued a veiled threat to freebsd to prevent
a port to apple hardware?
if yes, what could apple possibily benefit by blocking freebsd but
allowing linux?



--
Paul Beard / www.paulbeard.org/
--00000000000035cb84062e1b4101-- From nobody Fri Feb 14 17:34:54 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvfMD1M2Cz5nPnN for ; Fri, 14 Feb 2025 17:35:04 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvfMB3cKvz48m1 for ; Fri, 14 Feb 2025 17:35:02 +0000 (UTC) (envelope-from fatty.merchandise677@aceecat.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of fatty.merchandise677@aceecat.org designates 2600:3c01:e000:4c0::2 as permitted sender) smtp.mailfrom=fatty.merchandise677@aceecat.org; dmarc=none Received: from [::1] (helo=beesty ident=itz) by beesty.loosely.org with esmtp (Exim 4.98-4-9cb179d48) (envelope-from ) id 1tizaY-000000007bt-3a0m for questions@freebsd.org; Fri, 14 Feb 2025 09:34:54 -0800 Date: Fri, 14 Feb 2025 09:34:54 -0800 From: fatty.merchandise677@aceecat.org To: questions@freebsd.org Subject: natd problem -- pass specific IP to internal machine Message-ID: Mail-Followup-To: questions@freebsd.org References: <32257deb-4ef3-4d7f-bb15-94cc8743dcd5@dreamchaser.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [1.85 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.997]; R_SPF_ALLOW(-0.20)[+mx]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.05)[-0.046]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_NO_DN(0.00)[]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[aceecat.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YvfMB3cKvz48m1 On Fri, Feb 14, 2025 at 08:43:43AM +0000, Frank Leonhardt wrote: > I may be just me, but I was surprised at how easy it was to switch to PF as > it make sense in a way that IPFW didn't. That said I'm still using sendmail, > which I know is a complete PITA but I guess I've just invested too might > time in it to start again. > Everyone tells me postfix is the way to go :-) Not everyone, anymore ;-) exim is the way to go, if you can make it build on FreeBSD and with clang. -- Ian From nobody Fri Feb 14 21:22:24 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvlPp0DCmz5ngLG for ; Fri, 14 Feb 2025 21:22:38 +0000 (UTC) (envelope-from y.jaeyong@gmail.com) Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com [IPv6:2607:f8b0:4864:20::92a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvlPm6m79z3P7G for ; Fri, 14 Feb 2025 21:22:36 +0000 (UTC) (envelope-from y.jaeyong@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=jy2zkkFy; spf=pass (mx1.freebsd.org: domain of y.jaeyong@gmail.com designates 2607:f8b0:4864:20::92a as permitted sender) smtp.mailfrom=y.jaeyong@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ua1-x92a.google.com with SMTP id a1e0cc1a2514c-8641bc78952so623560241.0 for ; Fri, 14 Feb 2025 13:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739568156; x=1740172956; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wfE0PHErdhYWS3w+PyS2RaJSBfTNJu7KDoEH9yo/QPg=; b=jy2zkkFyxpW8tqCLHBkhqOfLeSTpMLRSJLc6WIyBiC4Aq+xnkfCiXscMhT0iXs615k 6vjl2N9NGM/bKGqMXZZEwig4U9wCKFKdUuEBGcsm3f54zbUEacnCn3xxCUb1zhm12Yl+ Jkf7z5tD6MTxB48XPozy2Cn+6gB6uJ5TcVbRE4zPzOwUHVA6qJe5trH297MOBiKw0fb4 iTM4nWLe/h8GLXxPfEQq6rZVpdhr0bQhVGk/I7pA6tPe3HY18GnqKN3H4rBr8FJHpYGe 7ZtgsbMfMICGR3pKUEIqV9rjHRFt7rTqbRlAPSZAx/qTy1/Ncwtq70zyCJQCrAvv8E1F ksrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739568156; x=1740172956; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wfE0PHErdhYWS3w+PyS2RaJSBfTNJu7KDoEH9yo/QPg=; b=FK+NXqscQjMCjFCZN/bXk9260nR5pPSnUilw8eKZsaIbXIhQEvCH88D5coJgFUptnf 6rfd1rUHuHr7OyW1R9qcX/qVm1dd+wPBmGkYySCgBBSVbiXWw+UVmTV1C6iler61y0Cg nnCb4eFOk4z5vyTiO9ytBor7G1zoWc3vnXkWwcePGif5rxL8nw8gCnDW2Q6jAAjP4zJ+ oGZqMA9BvgjSrv2XDQV6uwUfW26CpTt8DLmlanIHMeSAcdcVL8T8xlaKByP5Jjet5qvS C6upCTkosIt9aStPDY801OUzSMknsaGlNOpH9pcsIASi6cKqmI/KChBtNdlVTIvbK7Ei JIyg== X-Gm-Message-State: AOJu0YzSnuX58LIS0JtZNj6ov3Bgf7xq3u+3vPBeYxP0r6YszpB3xbjW 97j5cl+kvIXvyAYVt01cD1R8qx6l8ge28zrdzUMWkt5fQ8pAP70t/cHlckgfl4BF5F00fT6mV6Y EfU03Qsf+rCSrkW+3Ja9mTOee/VDKKvpu0Mw= X-Gm-Gg: ASbGncvkZM5Nsxb/CWaCSRJy0cOc4RHPq2h47QV3gKzb3lsYAXUWDRDe0EphsAzYkVl 6XJk2KZUqtTiFO03bVEgGRtr2/1h6u51v3wLXvcmxccnLms4eADTcSgwmtUIHlw6LZl7XotIpyY lLnhsZf1IAA/nq36zF2+E8YTEF2ri/hvQ= X-Google-Smtp-Source: AGHT+IHfcXhdvzxPEN7Iwu/91sGeEvh5OYRK7fDDKKFDZS6EIqGyRl2Hr1Avn0WLmUOmZM/Ja1VjOOrg+KTVGIZfExM= X-Received: by 2002:a05:6102:290a:b0:4bb:c24b:b623 with SMTP id ada2fe7eead31-4bd3fe85291mr1123715137.19.1739568155654; Fri, 14 Feb 2025 13:22:35 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 From: jaeyong yoo Date: Fri, 14 Feb 2025 16:22:24 -0500 X-Gm-Features: AWEUYZkU10TGXlE6DMa8iStohNBLKWjOP6WTnPLUnoY6XD8DYb3sa_B8oWzeYsI Message-ID: Subject: Bugzilla email notification setting doesn't seem to work To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::92a:from] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4YvlPm6m79z3P7G Hi freebsd! I set email preference in bugzilla to not receive anything but I still receive email notification like the following occasionally. Am I missing something to tap out of these notifications? [Bug 283848] rtnl_handle_newroute() incomplete check of attrs.rta_table [Bug 243039] Typos in ixgbe_api.c [Bug 273043] ofed: GID not created when adding IP address to a VLAN interface Thanks JY From nobody Fri Feb 14 22:54:49 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvnSX3ykkz5nnKT for ; Fri, 14 Feb 2025 22:55:08 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvnSW2bKHz4MX8 for ; Fri, 14 Feb 2025 22:55:07 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 47.181.130.121 as permitted sender) smtp.mailfrom=bc979@lafn.org; dmarc=none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4YvnSM69G6z2gFCv for ; Fri, 14 Feb 2025 14:54:59 -0800 (PST) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Booting Raspberry Pis Message-Id: <607D175A-D051-425A-A0A3-CE39B6DF27FD@sermon-archive.info> Date: Fri, 14 Feb 2025 14:54:49 -0800 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Virus-Scanned: clamav-milter 1.4.2 at mail X-Virus-Status: Clean X-Spamd-Result: default: False [1.39 / 15.00]; NEURAL_SPAM_LONG(1.00)[0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_SPAM_SHORT(0.99)[0.990]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YvnSW2bKHz4MX8 I have three RPI 4b and one RPI 5. I finally have all working, but = there is one interesting inconsistency that I think might have been the = cause of many problems. Two of the microSD cards have in /boot the = directories msdos and efi where there are a number of u-boot files in = msdos and nothing in efi. I tried to bood the RPI 5 using one of those = microSD cards. The RPi5_UEFI files were on a USB stick and the boot = went through to the large raspberry and then to nothing. I then followed the instructions in = https://wiki.freebsd.org/arm/Raspberry%20Pi%205 to the letter and = downloaded a new 14.2 image and put it on the microSD card. The RPI 5 = booted up just fine. The only difference in the microSD cards I can = find is the new system has the u-boot files in efi and a soft link from = msdos to efi.=20 Both setups boot just fine on the RPI4bs. However only the second will = boot on the RPI 5. I suspect that somehow either the boot structure got = changed somewhere between FBSD 12 and 14.2 or that some bit rot occurred = on two of my systems. I was hoping that there would be a 3 to 1 = division of the structures so I would know which is correct, but with 2 = and 2, it is just not obvious. Since the u-boot files in efi and the = llink from msdos boots on both the 4b and the 5, I expect that was the = intended structure. Is that correct? -- Doug From nobody Sat Feb 15 00:53:57 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yvr5l5kc2z5nvh4 for ; Sat, 15 Feb 2025 00:54:03 +0000 (UTC) (envelope-from grog@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yvr5l4gmjz3JwW; Sat, 15 Feb 2025 00:54:03 +0000 (UTC) (envelope-from grog@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739580843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AwA7jcXl9JFjpoMj/QzOHJ7uiakGQhyc4SZMbNiqr2o=; b=MC+Ss5HGnBV9pN7M7qafpHhVhcuFZUatPXI8n8xf4/VCsNM1XJ+kedYrkI63aufzJQjDiK dml/mI3LDSwCTcFsSJCghOU8wvDByny5kEEkYTHdpsXZ74mDXfLKBPSjdF0GKfXcXIBWpi AkfTp0nh9+6sRZSCcuAoptNVctFRZCrkE4g6rXyet4pPvNkLP8VSI0xZuobOBiVXu01ipG 4mrMdyG785nsIBTb75PK0HPqzmjd/fKcSFCG+IBu/xYV132N0Dh7OJU9SKmmnySLo2xvUP JBFQk6f7OmKEEOV2oRNlbAkNnmqlF9RpOyz8GGCRXT4gElmEul4SLf/POACN5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739580843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AwA7jcXl9JFjpoMj/QzOHJ7uiakGQhyc4SZMbNiqr2o=; b=COYspO5cf5+yy5vJoYOHCM29EXLysl0td3fWOn3+yBVgjJCgv0n+p9wtfoawE7WtNObAR0 9RVKAnrLaGgQWv1XU52BZzS3ngYbhkm7W+Imn6dfDwTAVNx80ZZ9v1Seat/jNNAuSCGOSZ wkj4zaRsenP5qdIHwnMVcbW5S/JqXi04RpqKcChKTsxtsYat6Z2RLXadjQOt2X6kfHj31W FqnmQNsBGsQ69tdVKH0oIMPkirf2bAk8enU1KKdGK3L7iCufUScYmeschQlQpgoYP6Ocde 2XaKg5FoXGVvNoSUmutoMpZSYCiJ2zEL4Bf3K4aABYSIQyvvy65xAF0yfjizIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739580843; a=rsa-sha256; cv=none; b=F8YfJaIDD38xTxfXSftJ6esWtzzT3DScsZOsLfrsgEfw0nEAdU91Ms8/y5tvKXoc5mcHCU IRXYOOjj9PZ35dkZ4avFNDzJTt7I3EcvF/evnP2c3LELbMNgF2n30MkpU0MmnK2vknOyap cP3lDq9zSNLGQ7f3LM+/gocS0G5LValJwSvsu0BfI45CWD9SgmTv8H0BDZ2QyvwcpNHFw4 tPxOiVsBObcmATQKkLgo0sf4SW7xp+MRAyd1nEIdLcIJLlcw7twzwN/xJSYhsz/brwvOkk HjEuYlVAotz7nRZ4KrCOPbvPrtBtYcEL0zVzFF+TLoQncWAhJc2PleCKEb0m6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from hydra.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: grog/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Yvr5k37XJztSK; Sat, 15 Feb 2025 00:54:02 +0000 (UTC) (envelope-from grog@freebsd.org) Date: Sat, 15 Feb 2025 11:53:57 +1100 From: Greg 'groggy' Lehey To: Mayuresh Kathe Cc: freebsd-questions@freebsd.org Subject: Re: apple prevented freebsd on apple hardware? Message-ID: References: <202502140832.51E8WigX022745@sdf.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p4gyq4SwjlIs2JZf" Content-Disposition: inline In-Reply-To: <202502140832.51E8WigX022745@sdf.org> Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: https://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 --p4gyq4SwjlIs2JZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 14 February 2025 at 8:32:44 +0000, Mayuresh Kathe wrote: > is it true that apple issued a veiled threat to freebsd to prevent > a port to apple hardware? To the best of my knowledge, no. FreeBSD does not run on Apple hardware, because that's not our emphasis, but NetBSD does. I do recall some contact from Apple decades ago. My memory is hazy, but I think they were asking us not to include a port that replicated Apple's GUI look and feel. It seems that they were more generally successful there, since I'm not aware of any such port any more. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA.php --p4gyq4SwjlIs2JZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSaG4ICvM64RvkvCawi5vKQUHpCIwUCZ6/lpQAKCRAi5vKQUHpC I6bpAJ9VoU2dlKM0pXEsgPEWxe7uC70+ZwCeKOGHdgZocsyw7Y/eROChcljmNqg= =Giip -----END PGP SIGNATURE----- --p4gyq4SwjlIs2JZf-- From nobody Sat Feb 15 01:08:54 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YvrRB0bRGz5nwhq for ; Sat, 15 Feb 2025 01:09:10 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YvrR90t07z3TJM; Sat, 15 Feb 2025 01:09:09 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-abadccdfe5aso149881866b.0; Fri, 14 Feb 2025 17:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739581747; x=1740186547; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sGpC7dzSwz596tCzxQ7wIK+JKBxWnw3aoO+h0innlms=; b=Ye8sKf564GEsWkLPk67SfqeXJwHLgQtao8mbIv//ghBkdEsVP2QmFQfvNlcth7fbZF Bn6TipHN4IDQ+62mbGDgiyUWDYm6miumofrWfJYS/pw9iDjfvWtT4l2QM5R9rga6LSGE rEYKpry/JmnoK9vkICcHxDoC3Gw6TQ5Iyn0xrRdgeujB5sBjHGw92j3zpCLLEuiVzGke P2vv21BG8EB+5bVk27YoDlWYyOr+5D/5oStoXO+6kqS9KBJaeDpYmK95EGZhJuvpT0hh 7qKBHCarayKmJTlXCsd3h6LX7b81OPNw2lxTLRAk3K/RszUoVKTAAT3LVxULwq/blvwO SKSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739581747; x=1740186547; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sGpC7dzSwz596tCzxQ7wIK+JKBxWnw3aoO+h0innlms=; b=w6xQgHG3fx279C/umYqZvgScgZijIA7cOtaeVV+aNW+LLnQOR7AyLkK0GiP03Fsl3d 6LyB3ixGYGCv+RB33RF7oMWqyC1eYCaCZdC1nOseajetFRptRq7mRFTG6RTi9BYX0Zoj 5lLaiD+3TDSpPuVWjVxR2aL+8c3bVZ6JNaqw4qZgSUlxXmwzDklLPdyKGxqYLjiJTql0 ppAVBRIZOruJPvG4P4G+jQrzpO8i1sj+/uJSt2wd0+H9kXws/WuO7c8N+muhU0UBNexz 5QqPakzRMWOxvY8QzRDRM5T0RlucaSIHzxqS2go5AjMIXYdrysX+gI3HfrQY8QhNuGQP 79Ng== X-Forwarded-Encrypted: i=1; AJvYcCXfgAq6suodBnAfN8v08AmX0SjgA+PV5jZTuxwvPp9x7OCJNbnIqDCOKpGlBSUFeX/y3CgINfWHOX8xF+sJCxaF4Q==@freebsd.org X-Gm-Message-State: AOJu0YxMVVX0qPFlt4Z1PxwcvjJU9HrFjEc0402svcrSe1Mu7nXlbzEC XcDvvRiswSlUJdQ5cQGeroTIzAjU33d3thrTa7e5PEDQ0iDXNnzs2t8r+mNBj66ZDlzGKxwAnP/ bP4b+sTO3BynGG9n4dyNA+JDS4VT4fNLz X-Gm-Gg: ASbGncszTF03H1lhW18V1ecjKrLbuFB2hpBnXr0NM9LOCL8Yu8ofDogRtLzadrmtr8m ELF1/NgrJppjf6F/oD8k8q3q8eNI9mBY85dLWMXoV/PLuqm1jJDUoZaImwkaF+OOwqIIuKWQbEw == X-Google-Smtp-Source: AGHT+IH/eXHWA1GplwQJXU/mfxaszmy5bT72DyiX6VAFu5RC+ApsfJYo/5iwD2b4iaFI9/dA0pO4vftCDciZkUcHCCo= X-Received: by 2002:a17:906:4fd5:b0:ab7:fc9a:28e1 with SMTP id a640c23a62f3a-abb70db75f4mr118083166b.52.1739581746354; Fri, 14 Feb 2025 17:09:06 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <202502140832.51E8WigX022745@sdf.org> In-Reply-To: From: paul beard Date: Fri, 14 Feb 2025 17:08:54 -0800 X-Gm-Features: AWEUYZmR5wslGj-uhABVI1OUeigydlQUCwn7minRwEF5WFiCSjnAPFGIGgqH0XE Message-ID: Subject: Re: apple prevented freebsd on apple hardware? To: "Greg 'groggy' Lehey" Cc: Mayuresh Kathe , freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000ca32a062e23f0ab" X-Rspamd-Queue-Id: 4YvrR90t07z3TJM X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --0000000000000ca32a062e23f0ab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://wiki.freebsd.org/AppleSilicon is alive. more at https://duckduckgo.com/?q=3Dfreebsd+apple+silicon&t=3Dosx&ia=3Dweb On Fri, Feb 14, 2025 at 4:54=E2=80=AFPM Greg 'groggy' Lehey wrote: > On Friday, 14 February 2025 at 8:32:44 +0000, Mayuresh Kathe wrote: > > is it true that apple issued a veiled threat to freebsd to prevent > > a port to apple hardware? > > To the best of my knowledge, no. FreeBSD does not run on Apple > hardware, because that's not our emphasis, but NetBSD does. > > I do recall some contact from Apple decades ago. My memory is hazy, > but I think they were asking us not to include a port that replicated > Apple's GUI look and feel. It seems that they were more generally > successful there, since I'm not aware of any such port any more. > > Greg > -- > When replying to this message, please copy the original recipients. > If you don't, I may ignore the reply or reply to the original recipients. > For more information, see http://www.lemis.com/questions.html > Sent from my desktop computer. > See complete headers for address and phone numbers. > This message is digitally signed. If your Microsoft mail program > reports problems, please read http://lemis.com/broken-MUA.php > --=20 Paul Beard / www.paulbeard.org/ --0000000000000ca32a062e23f0ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Feb 14, 2025 = at 4:54=E2=80=AFPM Greg 'groggy' Lehey <grog@freebsd.org> wrote:
On Fr= iday, 14 February 2025 at=C2=A0 8:32:44 +0000, Mayuresh Kathe wrote:
> is it true that apple issued a veiled threat to freebsd to prevent
> a port to apple hardware?

To the best of my knowledge, no.=C2=A0 FreeBSD does not run on Apple
hardware, because that's not our emphasis, but NetBSD does.

I do recall some contact from Apple decades ago.=C2=A0 My memory is hazy, but I think they were asking us not to include a port that replicated
Apple's GUI look and feel.=C2=A0 It seems that they were more generally=
successful there, since I'm not aware of any such port any more.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipient= s.
For more information, see http://www.lemis.com/questions.html=
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.=C2=A0 If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php


--
Paul Beard / www.paulbeard.org/
--0000000000000ca32a062e23f0ab-- From nobody Sat Feb 15 07:19:56 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yw0gG5bQJz5n7RS for ; Sat, 15 Feb 2025 07:20:10 +0000 (UTC) (envelope-from yaroslaw.mashko@gmail.com) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yw0gG09l9z3W0Y; Sat, 15 Feb 2025 07:20:10 +0000 (UTC) (envelope-from yaroslaw.mashko@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-220e6028214so42338215ad.0; Fri, 14 Feb 2025 23:20:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739604008; x=1740208808; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+J2Louhsj10HocapDT+JOZ0cirlmCGpX3uh5fjbE7OI=; b=WHGRSf98R/ZWpV95yvGdrTEqlselDt6oBpbnofvqJN3MhqhyHDpYnoqDdmNMs7ulLi Wv/EYCdtI4VMjR6/t/F3aXUoB0UirFOHlOcVrDimMwEHtG1a9Lt3Vvs8gpy7Rty8KajR pA9SDdaiKfyvy3yescXtv3mHzZGy4s0gPd6yNWN8NlSiW5tSe1zLzJrfbgqrbEH7pTVD VK7QHuv4hr7vuEglzGnCGl0RzPqCj3H+G3IgHgJooCmA949tRVSBQtJRIDq1PyYOGjvw 9cF95De3K+gfG16K+iDgKBYgKMxstFedNw48ACDtgv89oCNQh5hg41r6MuliTpmPdXzU Wx1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739604008; x=1740208808; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+J2Louhsj10HocapDT+JOZ0cirlmCGpX3uh5fjbE7OI=; b=NYXXvkQB8DDKI121tCZ4HR4lGDGKYaR2mPeky26CkjY8n1ZV/zI0oyXKgpxdxWYDuw gN53nCw3ZlRwJgr1IBxGef9vDv68LpgXfHhrOlzTiKz1TEs+u2sBNQ2xFgvXS64q/1iz ZQi7c3BbYRXlSsg6W6RxfYh04F8TvswCqB+0E3mks7xSg0XmDw6ZL2mjt7wskmi768a2 fZC5HbHIkIOzACCTST2LMweVHFfi3VodUp2NTVOzxc5gPkIDFnGfF8xlAKtXxJlB4VMp Pr0VO2emSr6uyFHPH9RCYr9UaafItHn8/jopQDaFjIAW/2AsZtrgxDoi4sG9TnqOGaaR BXXQ== X-Forwarded-Encrypted: i=1; AJvYcCVTXNcbUE/+w8jQ+C6QB+yYTAlF/cLjnvabkvpZAhQglt7PUJzMej+pDw0Fb7kiNvmOfCuE+WSP5IqWdUCxMLHvrQ==@freebsd.org X-Gm-Message-State: AOJu0YzlxVwozkNNR4MPabAfSe5JE546u85kllHfP1+h0EMxOE/PxCOa Q3Ftj+g9vVUlZVYqH+0rqTakLIEFRSPY1TVoMuU9y9dtwLHTK7/UfnyKnWN3lCAhH5LZtAPweEr bvb8mB71wft+zgQix0Dre5FFEQCTsB6Xc X-Gm-Gg: ASbGncvChWTicBxngS2zZvVRDufvjxslaNMag7drEh+Psy93+ksHlGCWlHaRMxpxiYV MMB86SegU2Yu1IPF7O1O5r7VSbSQ0D4zXn17gwon+XspFsgQ+GIXzS1K1bGgKYIxsxV9gJyE= X-Google-Smtp-Source: AGHT+IGFN0rdrq/HZvRmR9UfMgGGQgi2dTmlrrcTovqL1BZPSY6tckGa+hQ7J3RrAcUtQlxbqiiA0f2ObpVmON7YxEk= X-Received: by 2002:a05:6a00:1816:b0:730:7970:1f8f with SMTP id d2e1a72fcca58-732617bfaa2mr3374986b3a.12.1739604008208; Fri, 14 Feb 2025 23:20:08 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <202502140832.51E8WigX022745@sdf.org> In-Reply-To: From: =?UTF-8?B?0K/RgNC+0YHQu9Cw0LIg0JzQsNGI0LrQvg==?= Date: Sat, 15 Feb 2025 09:19:56 +0200 X-Gm-Features: AWEUYZll1iIsA8FJxK0ArFpzPHmy-L84CJRW2pR85kTwLbuXbGTkvfLTOefeDQk Message-ID: Subject: Re: apple prevented freebsd on apple hardware? To: paul beard Cc: "Greg 'groggy' Lehey" , Mayuresh Kathe , freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f59352062e291ede" X-Rspamd-Queue-Id: 4Yw0gG09l9z3W0Y X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] --000000000000f59352062e291ede Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable yeah, i feel it is a right thread to do a comingput: i want freeBSD on my iphone. i just do not know how to do it. =D1=81=D0=B1, 15 =D1=84=D0=B5=D0=B2=D1=80. 2025 =D0=B3., 03:09 paul beard <= paulbeard@gmail.com>: > https://wiki.freebsd.org/AppleSilicon is alive. > > more at https://duckduckgo.com/?q=3Dfreebsd+apple+silicon&t=3Dosx&ia=3Dwe= b > > On Fri, Feb 14, 2025 at 4:54=E2=80=AFPM Greg 'groggy' Lehey > wrote: > >> On Friday, 14 February 2025 at 8:32:44 +0000, Mayuresh Kathe wrote: >> > is it true that apple issued a veiled threat to freebsd to prevent >> > a port to apple hardware? >> >> To the best of my knowledge, no. FreeBSD does not run on Apple >> hardware, because that's not our emphasis, but NetBSD does. >> >> I do recall some contact from Apple decades ago. My memory is hazy, >> but I think they were asking us not to include a port that replicated >> Apple's GUI look and feel. It seems that they were more generally >> successful there, since I'm not aware of any such port any more. >> >> Greg >> -- >> When replying to this message, please copy the original recipients. >> If you don't, I may ignore the reply or reply to the original recipients= . >> For more information, see http://www.lemis.com/questions.html >> Sent from my desktop computer. >> See complete headers for address and phone numbers. >> This message is digitally signed. If your Microsoft mail program >> reports problems, please read http://lemis.com/broken-MUA.php >> > > > -- > Paul Beard / www.paulbeard.org/ > --000000000000f59352062e291ede Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

yeah,

i feel it is a right thread to do a comingput: i want freeBS= D on my iphone. i just do not know how to do it.


=D1=81=D0=B1, 15 =D1=84=D0=B5=D0=B2=D1=80. 2025 =D0=B3., 03= :09 paul beard <paulbeard@gmail.c= om>:

On Friday, 14 = February 2025 at=C2=A0 8:32:44 +0000, Mayuresh Kathe wrote:
> is it true that apple issued a veiled threat to freebsd to prevent
> a port to apple hardware?

To the best of my knowledge, no.=C2=A0 FreeBSD does not run on Apple
hardware, because that's not our emphasis, but NetBSD does.

I do recall some contact from Apple decades ago.=C2=A0 My memory is hazy, but I think they were asking us not to include a port that replicated
Apple's GUI look and feel.=C2=A0 It seems that they were more generally=
successful there, since I'm not aware of any such port any more.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipient= s.
For more information, see http://www.lemis.com/questio= ns.html
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.=C2=A0 If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.= php


--
Paul Beard / www.paulbeard.org/
--000000000000f59352062e291ede-- From nobody Sat Feb 15 08:47:50 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yw2cg00lSz5nDms for ; Sat, 15 Feb 2025 08:48:02 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yw2cf52DFz3H3N; Sat, 15 Feb 2025 08:48:02 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4Yw2cd13Zfz2gFCv; Sat, 15 Feb 2025 00:48:01 -0800 (PST) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: apple prevented freebsd on apple hardware? From: Doug Hardie In-Reply-To: Date: Sat, 15 Feb 2025 00:47:50 -0800 Cc: Mayuresh Kathe , freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <18FF8618-A12F-418A-9460-111643D0F26D@sermon-archive.info> References: <202502140832.51E8WigX022745@sdf.org> To: Greg 'groggy' Lehey X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Virus-Scanned: clamav-milter 1.4.2 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Yw2cf52DFz3H3N X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] > On Feb 14, 2025, at 16:53, Greg 'groggy' Lehey = wrote: >=20 > On Friday, 14 February 2025 at 8:32:44 +0000, Mayuresh Kathe wrote: >> is it true that apple issued a veiled threat to freebsd to prevent >> a port to apple hardware? >=20 > To the best of my knowledge, no. FreeBSD does not run on Apple > hardware, because that's not our emphasis, but NetBSD does. >=20 > I do recall some contact from Apple decades ago. My memory is hazy, > but I think they were asking us not to include a port that replicated > Apple's GUI look and feel. It seems that they were more generally > successful there, since I'm not aware of any such port any more. >=20 I have been running FreeBSD on Apple Mini's and desktops for years. = However, recently the newest units include that Microsoft restricted = boot that won't boot anything that isn't signed by Apple. That can be = turned off, but it is a PITA. My current Mini servers are between 10 = and 13 years old. While they are still running just fine, I am starting = to replace them with Raspberry Pi 5's. =20 -- Doug From nobody Sat Feb 15 09:53:08 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yw43x4p2Bz5nJw4 for ; Sat, 15 Feb 2025 09:53:17 +0000 (UTC) (envelope-from mayuresh@sdf.org) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx.sdf.org", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yw43w5sMBz3tTT for ; Sat, 15 Feb 2025 09:53:16 +0000 (UTC) (envelope-from mayuresh@sdf.org) Authentication-Results: mx1.freebsd.org; none Received: from sdf.org (sdf.org [205.166.94.16]) by mx.sdf.org (8.18.1/8.14.3) with ESMTPS id 51F9r8nG018474 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sat, 15 Feb 2025 09:53:09 GMT Received: (from mayuresh@localhost) by sdf.org (8.18.1/8.12.8/Submit) id 51F9r8gg017312; Sat, 15 Feb 2025 09:53:08 GMT Date: Sat, 15 Feb 2025 09:53:08 GMT From: Mayuresh Kathe Message-Id: <202502150953.51F9r8gg017312@sdf.org> To: paulbeard@gmail.com, questions@freebsd.org Subject: Re: apple prevented freebsd on apple hardware? In-Reply-To: References: <202502140832.51E8WigX022745@sdf.org>, X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14361, ipnet:205.166.94.0/24, country:US] X-Rspamd-Queue-Id: 4Yw43w5sMBz3tTT X-Spamd-Bar: ---- List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org paul beard, there was really no reason to be sarcastic about this. your kind of mentality usually leads on to vitriolic comments, which erupt into flame-wars. please ensure that your personality is kept out of the way of answering queries from those who are not as well entrenched in freebsd as you are. also, i issued that query because i had once asked a similar question on this list around 10~15 years back, and did not remember the response. please avoid turning a freebsd mailing list into the cesspool of openbsd lists. best regards. > From freebsd-questions+bounces-6299-mayuresh=sdf.org@FreeBSD.org Fri Feb 14 14:48:08 2025 > From: paul beard > Subject: Re: apple prevented freebsd on apple hardware? > To: FreeBSD Questions List > > --00000000000035cb84062e1b4101 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > Is it true you heard a rumor about a veiled threat from a company people > love to hate etc etc? > > put Apple and FreeBSD in your favorite search engine and see what you find. > > > On Fri, Feb 14, 2025 at 12:33=E2=80=AFAM Mayuresh Kathe = > wrote: > > > is it true that apple issued a veiled threat to freebsd to prevent > > a port to apple hardware? > > if yes, what could apple possibily benefit by blocking freebsd but > > allowing linux? > > > > > > --=20 > Paul Beard / www.paulbeard.org/ > > --00000000000035cb84062e1b4101 > Content-Type: text/html; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > >
Is it true you heard a rumor about a veiled threat from a = > company people love to=C2=A0hate etc etc?=C2=A0

put= > Apple and FreeBSD in your favorite search engine and see what you find.=C2= > =A0


=3D"ltr" class=3D"gmail_attr">On Fri, Feb 14, 2025 at 12:33=E2=80=AFAM Mayu= > resh Kathe <mayure= > sh@sdf.org> wrote:
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;= > border-left-color:rgb(204,204,204);padding-left:1ex">is it true that apple = > issued a veiled threat to freebsd to prevent
> a port to apple hardware?
> if yes, what could apple possibily benefit by blocking freebsd but
> allowing linux?
>
>


=3D"gmail_signature_prefix">--
ignature">Paul Beard / nk">www.paulbeard.org/
> > --00000000000035cb84062e1b4101-- > > From nobody Sun Feb 16 13:52:41 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YwnKm4HR3z5nSqv for ; Sun, 16 Feb 2025 13:52:44 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from smtp05.prod.qlmail.ch (smtp05.prod.qlmail.ch [89.236.174.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.prod.qlmail.ch", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YwnKl5qXvz3DHV for ; Sun, 16 Feb 2025 13:52:43 +0000 (UTC) (envelope-from mail@maxlor.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mail@maxlor.com designates 89.236.174.45 as permitted sender) smtp.mailfrom=mail@maxlor.com Received: from atlantis.intranet (pub151248156010.dh-hfc.datazug.ch [151.248.156.10]) (Authenticated sender: vega@quickline.ch) by smtp05.prod.qlmail.ch (Postfix) with ESMTPSA id DCBEAA053F for ; Sun, 16 Feb 2025 14:52:41 +0100 (CET) Received: from [10.0.0.20] (vimur.aaa.intranet [10.0.0.254]) by atlantis.intranet (Postfix) with ESMTPSA id E55EF83B92 for ; Sun, 16 Feb 2025 14:52:41 +0100 (CET) Message-ID: <92fa7aa3-6b83-4e4a-8089-6d1383f02398@maxlor.com> Date: Sun, 16 Feb 2025 14:52:41 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: questions@freebsd.org From: Benjamin Lutz Subject: courier-imap unable to open INBOX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 1.0.7 at smtp05 X-Virus-Status: Clean X-Spamd-Result: default: False [-3.53 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[89.236.174.45:from]; NEURAL_HAM_LONG(-0.97)[-0.970]; NEURAL_HAM_MEDIUM(-0.73)[-0.726]; NEURAL_HAM_SHORT(-0.54)[-0.535]; R_SPF_ALLOW(-0.20)[+ip4:89.236.174.0/24:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15600, ipnet:89.236.174.0/24, country:CH]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[maxlor.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4YwnKl5qXvz3DHV X-Spamd-Bar: --- Hello, Recently I encountered a problem with courier-imap an two different machines. When trying to open the INBOX, courier-imap's imapd would answer with: NO Unable to open this mailbox. The existance or absence of the problem can be quickly tested with: $ echo 'a SELECT INBOX' | imapd ~/Maildir I'm running FreeBSD-13.4 and 14.2 on the affected machines, and courier-imap is installed via ports, the only enabled CONFIG options are INOTIFY and IPV6. The first thing I tried is to recompile the port and all dependencies, but that didn't solve the problem. So I dug into courier-imap's source code, finally coming to this line in maildircreate.c:149: if (stat( info->tmpname, &stat_buf) == 0) What the code is trying to do here is to create a temporary file; it runs stat(2) on info->tmpname, expecting a -1 return value and errno set to ENOENT, because the file shouldn't currently exist. However, errno is not set to ENOENT, which finally results in the "NO Unable to open this mailbox." error. In order to better understand it, I built courier-imap with debugging flags and added some debugging code around the line above: errno=-999; int stat_retval=stat( info->tmpname, &stat_buf); fprintf(stderr, "stat=%p, stat(%p, %p), stat_retval=%d, errno=%d, strerror(errno)=%s\n", stat, info->tmpname, &stat_buf, stat_retval, errno, strerror(errno)); if (stat_retval == 0) When SELECTing the INBOX now, I get: stat=0x823bc4f70, stat(0x2f67a4269000, 0x820949b40), stat_retval=-1, errno=-999, strerror(errno)=Unknown error: -999 a NO Unable to open this mailbox. So errno isn't changed by stat(2) (confirmed with other values than -999). This has me rather perplexed. How can a stat(2) call not set errno? As far as I can tell using GDB, that stat() call really is a call into libc, not some other function that might shadow stat(2). I've extracted maildircreate.c into a separate project to build a minimal test, but when I just call the function in question (maildir_tmpcreate_fd, which the line above is from), then stat(2) works as expected, i.e. errno is set to 2. Can anyone give me some explanations for the observed behavior? Or even just some ideas for analyzing it further? The current stop-gap measure I've implemented to make courier-imap work again is the following patch: --- libs/maildir/maildircreate.c.orig 2022-05-23 11:00:05.000000000 +0200 +++ libs/maildir/maildircreate.c 2025-02-14 22:19:39.434539000 +0100 @@ -146,6 +146,7 @@ strcat(info->tmpname, hostname); strcat(info->tmpname, len_buf); + errno=ENOENT; if (stat( info->tmpname, &stat_buf) == 0) { maildir_tmpcreate_free(info); But obviously, that's not exactly a reliable solution. Thanks, Benjamin From nobody Sun Feb 16 16:01:46 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YwrBm00kvz5ncMg for ; Sun, 16 Feb 2025 16:01:52 +0000 (UTC) (envelope-from md-koch@t-online.de) Received: from mailout07.t-online.de (mailout07.t-online.de [194.25.134.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YwrBl1lvZz3G9x for ; Sun, 16 Feb 2025 16:01:51 +0000 (UTC) (envelope-from md-koch@t-online.de) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of md-koch@t-online.de designates 194.25.134.83 as permitted sender) smtp.mailfrom=md-koch@t-online.de Received: from fwd88.aul.t-online.de (fwd88.aul.t-online.de [10.223.144.114]) by mailout07.t-online.de (Postfix) with SMTP id A4D6384C for ; Sun, 16 Feb 2025 17:01:47 +0100 (CET) Received: from [192.168.1.3] ([95.222.6.16]) by fwd88.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1tjh5X-0Jvlmy0; Sun, 16 Feb 2025 17:01:47 +0100 Message-ID: <498781b0-3a65-45f8-a340-a54560bd27b6@t-online.de> Date: Sun, 16 Feb 2025 17:01:46 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: freebsd-questions@FreeBSD.org Content-Language: en-US From: Manfred Koch Subject: pam_authenticate login Conversation failed Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TOI-EXPURGATEID: 150726::1739721707-FAFFA906-BA2ABC40/0/0 CLEAN NORMAL X-TOI-MSGID: f27923c5-742a-42e6-adcc-c07b62151e4d X-Spamd-Result: default: False [0.82 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.998]; NEURAL_HAM_SHORT(-0.78)[-0.782]; R_SPF_ALLOW(-0.20)[+ip4:194.25.134.80/28:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[194.25.134.83:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[194.25.134.83:from]; RBL_SENDERSCORE_REPUT_8(0.00)[194.25.134.83:from]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[t-online.de]; FREEMAIL_FROM(0.00)[t-online.de]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[t-online.de]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Queue-Id: 4YwrBl1lvZz3G9x X-Spamd-Bar: / Hi community, I am using the 14.2-RELEASE-p1 on the Desktop. In the /var/log/auth.log and /var/log/messages I get the pam Conversation failed to login. I didn't get any ttyv1 ttyv2 ttyv3 ....    Only the graphical login with xdm worked. Can somebody say what I shall do? I would be very thankful, if you could help. Manfred From nobody Sun Feb 16 16:42:43 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YwsDZ3zJyz5ng6d for ; Sun, 16 Feb 2025 16:48:30 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YwsDY2lSCz3kVw for ; Sun, 16 Feb 2025 16:48:29 +0000 (UTC) (envelope-from jerry@seibercom.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=seibercom.net header.s=google header.b=ld8MFUi3; dmarc=none; spf=pass (mx1.freebsd.org: domain of jerry@seibercom.net designates 2607:f8b0:4864:20::830 as permitted sender) smtp.mailfrom=jerry@seibercom.net Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-471eb0e3536so7832851cf.3 for ; Sun, 16 Feb 2025 08:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; t=1739724507; x=1740329307; darn=freebsd.org; h=content-transfer-encoding:mime-version:organization:reply-to :references:in-reply-to:message-id:subject:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=kj1Bv9gSiXZy91WTAo0zpx8f5r+9et66Bn09V+8fySA=; b=ld8MFUi3gYx981sELJlWhUZTSDll8zsqWx6VR+1CrBmGDT+W4Zb3GFNKpSvhd57dQ6 rDNk0gFPVcYZUgd80s4G0w83S8xchKTPpirVouTRMjm0Og7yVQ4qetKKlss1kzR4I76L CwPylw80Wk37w/rFxtB+qK8GczgKXOENNflgY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739724507; x=1740329307; h=content-transfer-encoding:mime-version:organization:reply-to :references:in-reply-to:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kj1Bv9gSiXZy91WTAo0zpx8f5r+9et66Bn09V+8fySA=; b=gEJR/luYS76iqYyiiKwfMN/lo0stupGJh+mjOS6EQfFMABMn3yb4o6vSKnwjKYZxDb MSE30R1Jac+5x3UBvmTNJSrsbhqjvc6xW0aG8EamrZZIqatA67TYKbPO996C3zpK57lx nAQqrrn9bWJ4MJGlF6FlBajSDmZWZRL7IKPapk4V/BYVGYfYAQWieW7yxxMXRSCYBdQH i/tjiqXaldVyBRuIX4BbEwtdH9qmaePZPttUSTl2+i4khzW4FfkyDjj2CCG2zboRrjPR g2zWjkk30FJGy4pY+mF26idD5SJiGJRfkP9ScWMHwflGAdSDnyrYA7yTBpElAXtAsoFg ckbw== X-Gm-Message-State: AOJu0YxlUoUOxXFoMOqIA5qZuHVSCn9SQxarz+UNeMFQHWBei0TePDQJ PDQIupK5jPrE4pVEr0qvptLavPcSG1F5VcpEPi3VXEZmcpicBwXJ1DY/VmcKsBFXjxn4ohFLMmy H X-Gm-Gg: ASbGncsFDylfM86+N69xSf/le8oqjzWhbhVydB3z/DiTCooXGS0foFsj0EHaQP8WH7k gKE4o4lLFttXa619j6EPjDyGQ00CVfGvx9xAr+Z3kmb5TBuCFefmFpKsHtAdI6EpjWQMArGgUNc 6p6fYBw0z/qx47zdylaRkDz/fttf1OKVrsQhM30FrXq+KKi+vsMbuIM+2dZtiFdpFCKTnb6yjJs 4ZYvQ89J/XSu57dUE5INRCmx1Xgfyoy45gvRY20e5xfY5yG+s6jENwTkIBa3ZeeRGrSPrtkoPWR iQJYBUbP3KW4zj7Gk4boTDYbUoqfpFIbp4DgnSDddWDNWXrZxEocbuWfg9SQvy7pZA== X-Google-Smtp-Source: AGHT+IH/Tk1cpO6WZ3FOtBaSLyyIqbkbHQe5ccDkB/YX5ya8kZOTbehRIRokgJA+vZTQUS1yWxlVGA== X-Received: by 2002:a05:690c:4c0a:b0:6f9:b189:3cc7 with SMTP id 00721157ae682-6fb582b757emr51687747b3.18.1739724166369; Sun, 16 Feb 2025 08:42:46 -0800 (PST) Received: from mystic.seibercom.net (syn-174-109-232-113.res.spectrum.com. [174.109.232.113]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6fb3605bde0sm16851547b3.35.2025.02.16.08.42.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2025 08:42:45 -0800 (PST) Received: from localhost (zeus.seibercom.net [192.168.1.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by mystic.seibercom.net (Postfix) with ESMTPSA id 4Yws5w6BJtzGf4 for ; Sun, 16 Feb 2025 11:42:44 -0500 (EST) Date: Sun, 16 Feb 2025 11:42:43 -0500 From: Jerry To: questions@freebsd.org Subject: Re: Running "certbot" ffom cron Message-ID: <20250216114243.00003308@seibercom.net> In-Reply-To: References: <20250211162405.00007342@seibercom.net> Reply-To: questions@freebsd.org Organization: seibercom NET X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [1.50 / 15.00]; REPLYTO_EQ_TO_ADDR(5.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[seibercom.net:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[seibercom.net]; RCVD_COUNT_THREE(0.00)[3]; RECEIVED_HELO_LOCALHOST(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; GREYLIST(0.00)[pass,body]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[seibercom.net:+]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::830:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; HAS_REPLYTO(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4YwsDY2lSCz3kVw X-Spamd-Bar: + On Wed, 12 Feb 2025 01:22:39 -0500, Karl Vogel stated: >>> On Tue 11 Feb 2025 at 20:18:49 (-0500), >>> fatty.merchandise677@aceecat.org wrote: > >> On Tue, Feb 11, 2025 at 04:24:05PM -0500, Jerry wrote: >> > I have added this to the environment: >> > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1. I also put it at the top of my >> > cron file. >> >> I am not sure if the FreeBSD cron supports setting environment like >> this, although I have until now believed it does. > > You can set environment variables with 'NAME=value' syntax in > FreeBSD; it's worked as far back as FreeBSD 6.4 or so. > > I generally set a longer PATH in my crontab files, and I set CRON so > scripts know when they're not being run interactively: > > CRON=yes > PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec > > I run this in a crontab file when installing a new system: > > * * * * * /bin/env > /tmp/env$$ > > Results for my userid: > > CRON=yes > HOME=/home/vogelke > LOGNAME=vogelke > PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec > PWD=/home/vogelke > SHELL=/bin/sh > USER=vogelke > > Running "tty" under cron gives me "not a tty" written to stderr and a > return code of 1. Problem solved. Apparently, I had to add CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 to the /usr/local/etc/periodic/weekly/500.certbot-3.11 file. Now it works as intended. From nobody Sun Feb 16 17:20:49 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ywsxy23b4z5nhKb for ; Sun, 16 Feb 2025 17:20:54 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ywsxx1Yh8z45QV; Sun, 16 Feb 2025 17:20:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739726453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=LkS/vgobDmH7CEWKfSovGhtvx1X3irt5eE7ktXPEskM=; b=TmbMKytpipodaPQq0qS7FiYSll0wF37v8tu+mIwEZZM4KpRpHjbciBc4601vAGAtozaCbi cPZngAdHSpkdjl/ybQlEwhW3ToEL1gOpmbCeJ1sWAbeO7oOr6GS1P21cBsqcItviPToLGA MtbM/Zva9WA8AnxKOTCFxKaELScCPsf/Sa8z45LiRtypeBw3XuJlQKZR7rapXfxFP1WuDc L1EdEeKrq9Bt7YuKeCPg32Nl5HcbfGkWLNvcQOFF7gIgbNiZNQfHniOPFGUUoIvD8mtLVn hYOEfT1eaIUxcVOS9OcpdZTjCDCqM/3bTRKEjQQvUv9cR4P41gkb14nc4pHslw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739726453; a=rsa-sha256; cv=none; b=Wob82hvkVLCr78SGQDNZ/nlSRXxxuSN4VvU03kOJeqyPUHco+q4Qqg+Monxofo/Lcw8TJM +X/nGkWc2hYlVRAdt4L4/atd4ymMYMqViSVrQGeJERGg1eiXwAkrkg5iTIoV3xnfFUUeBU NzI/YnpOXJk93saSBwFuzQoDebWKRRV6+8TNJhMcEdk5QTBOHnLvvErxHSQWj7sff95Run iirwPOTW9oKa8RxynxqaDphAeL3KoawcGkYqHrzUmU4KFwQB8cOTBHl99TOJWXUAoyeD/R iJl+pPYUJXC54c3YRY1IxpsVNQcIvWDkde2RKSbR2qg4yILIJDWD/2Uk7KB5zA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739726453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=LkS/vgobDmH7CEWKfSovGhtvx1X3irt5eE7ktXPEskM=; b=r3/LcqiGqIsyQle6AnyWvo9fHTl1NDSnbHmwNGVdmY6reTolRdV583fBl5/35dTKxhQ8KZ Arzx02CUhqsvHKxvZaJo7eKekwICPAMgO7caD6B8649gxJMUfBNdikszCNSn/h7XdtLiri 9owD+DZfyZWWF4vXtCIcZ7lFYcIYa0NZsWwDI94D04M/m1gCJYj/LKMn7toYwp4SPF/YgJ +ZloCia2sur/nfzCpqafWuevziqKP7Pyinjr4kPHKVRB2a6G5b/7XjoKcMCu+65GMyz/vB CFSv9m6WGpCSe5TdSuKkHl+SMYbtpzVTn+2/tcMYa/QRpnBf8Of2IBS02gDXwg== Received: from [IPV6:2a01:e11:2002:4280::13:1] (unknown [IPv6:2a01:e11:2002:4280::13:1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Ywsxw5Smrzplc; Sun, 16 Feb 2025 17:20:52 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Message-ID: <3db49dcd-d51a-48c6-a1a5-85d6f41604bf@FreeBSD.org> Date: Sun, 16 Feb 2025 18:20:49 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: courier-imap unable to open INBOX To: Benjamin Lutz , questions@freebsd.org References: <13ccde16-e3dd-4402-9326-d28bfb15b4a1@maxlor.com> Content-Language: en-US, it, en-GB From: Guido Falsi Autocrypt: addr=madpilot@FreeBSD.org; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNIkd1aWRvIEZhbHNpIDxtYWRwaWxvdEBGcmVlQlNELm9yZz7CwHgEEwECACIFAk+G+3MC GwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEBrmhg5Wy9KT2uIIAIrawQ89TnqEhi2C OEQAhx3uqWZuNoS6NyiSgsRCmtSnT2GOgH4Ucbr/I37SkV1B3K6HkoL6lwN8Gjf5KOgLqmTi E1W3RTwS7l8PSvdnjM9i7g351R4mTijtxawB/JcQf/Kge3Yqr1V4g6H+wQXHUStmHThbupuN trzRphvR/e5ekT0FTyVfPmpcbm68i2bwZnKUex/TNIECBykYh8b+SYMLhENf2ayRjCIWS2Ad 7tnTKhMtnS5jtW6qjBy4RoTpQD6oR1xIgkTRlQ49roVCUfdHb+Y/kh+U9G1IcoNy4vkg9IfP dwpSfnP+a8j0AZ1hMnOLZ1fYoQrs+4gVLy8Fs7TOwU0EUxB7QQEQAKFhrDceoPdK/IHDSmoj 6SQYisvM7VdhcleS7E9DoEAVt7yMbf6HbbMVTTY6ckvwTWQssywLBXNVqxgc4WLJjzfUhgef +WE75M3+WFYlOVQLGZY/zEVgma1raYnOHNAOzeHLDmEXjbZP6vGAeDyBbGfQPpE7qGYZ7ube T3XwQO+PklcCrvOPj2ZPcAxGNS2xVU/LzONqCrJqLMJSIcCdsbiSP4G5PnDFHtMokaTY6OEr 8OEQfOAerhcHUa/z7Uu8YtmaqKH+QGkE/WEgaRqSiTnv0JOTD+DxehaqvoKPPZ++2NpCZMHB 2i6A/xifmQwEiIjEXtcueBRzkNUQkxhqZyS13SrhocL9ydtaVPBzZatAEjUDDEJmAMLVFs45 qfyhMiNapHJo2n3MW/E5omqCvEkDdWX/en3P7CK2TemeaDghMsgkNKax/z0wNo5UZCkOPOz0 xpNiUilOVbkuezZZNg65741qee2lfXhQIaZ66yT7hphc/N/z3PIAtLeze4u1VR2EXAuZ2sWA dlKCNTlJMsaU/x70BV11Wd/ypnVzM68dfdQIIAj1iMFAD/lXGlEUmKXg5Ov2VQDlTntQoanC YrAg+8CttPzjrydgLZFq3hrtQmfc0se5yv1WHS69+BsUOG09RvvawUDZxUjW19kyeN9THaNR gow3kSuArUp6zSmJABEBAAHCwF8EGAEIAAkFAlMQe0ECGwwACgkQGuaGDlbL0pMN5wgA4bCk X/qwEVC06ToeR6C2putmSWQMgpDaqrv65Hubo+QGmg2P4ewTYQQ4g6oYWS03qHxqVVWhKz7F jfrV+dH8qbCLfSgIcvdBha7ayGZVrsiuMLKGbw36fcmkZPpSDOfHcP0XH8Z+u9CWj0xUkTxA lZ/7i6gYSUpG2JWNtdmE/X8VVEyXusCLwy0K0BI60A/4dRTIX3C4QKrJ3ZbUXegz70ynjHf+ lQMZ9IZKASoRMuS5FozPQh6abvmwZEPdf5I9riUElzvHrqJ8Bx0t3Pujdoth+yNHpnBxrtO8 LkQdrQ58P0SwcaIX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== In-Reply-To: <13ccde16-e3dd-4402-9326-d28bfb15b4a1@maxlor.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 16/02/25 14:39, Benjamin Lutz wrote: > Hello, > > Recently I encountered a problem with courier-imap an two different > machines. When trying to open the INBOX, courier-imap's imapd would > answer with: > >     NO Unable to open this mailbox. > > The existance or absence of the problem can be quickly tested with: > >     $ echo 'a SELECT INBOX' | imapd ~/Maildir > > I'm running FreeBSD-13.4 and 14.2 on the affected machines, and courier- > imap is installed via ports, the only enabled CONFIG options are INOTIFY > and IPV6. > > The first thing I tried is to recompile the port and all dependencies, > but that didn't solve the problem. Hi! I've been experiencing issues with imap too, as soon as I updated libunistring, reported it here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283588 downgrading libunistring to 1.2 "fixed" the issue for me. So I suspect this is somewhat related, but have not been able to diagnose the issue so far. Also, up to now I was not even sure it was not a local issue I was the only one having! > > So I dug into courier-imap's source code, finally coming to this line in > maildircreate.c:149: > >     if (stat( info->tmpname, &stat_buf) == 0) > > What the code is trying to do here is to create a temporary file; it > runs stat(2) on info->tmpname, expecting a -1 return value and errno set > to ENOENT, because the file shouldn't currently exist. However, errno is > not set to ENOENT, which finally results in the "NO Unable to open this > mailbox." error. > > In order to better understand it, I built courier-imap with debugging > flags and added some debugging code around the line above: > >     errno=-999; >     int stat_retval=stat( info->tmpname, &stat_buf); >     fprintf(stderr, "stat=%p, stat(%p, %p), stat_retval=%d, errno=%d, >         strerror(errno)=%s\n", stat, info->tmpname, &stat_buf, >         stat_retval, errno, strerror(errno)); >     if (stat_retval == 0) > > When SELECTing the INBOX now, I get: > >     stat=0x823bc4f70, stat(0x2f67a4269000, 0x820949b40), stat_retval=-1, >         errno=-999, strerror(errno)=Unknown error: -999 >     a NO Unable to open this mailbox. > > So errno isn't changed by stat(2) (confirmed with other values than > -999). This has me rather perplexed. How can a stat(2) call not set > errno? As far as I can tell using GDB, that stat() call really is a call > into libc, not some other function that might shadow stat(2). > > I've extracted maildircreate.c into a separate project to build a > minimal test, but when I just call the function in question > (maildir_tmpcreate_fd, which the line above is from), then stat(2) works > as expected, i.e. errno is set to 2. > > Can anyone give me some explanations for the observed behavior? Or even > just some ideas for analyzing it further? > > The current stop-gap measure I've implemented to make courier-imap work > again is the following patch: > >     --- libs/maildir/maildircreate.c.orig   2022-05-23 >         11:00:05.000000000 +0200 >     +++ libs/maildir/maildircreate.c        2025-02-14 >         22:19:39.434539000 +0100 >     @@ -146,6 +146,7 @@ >             strcat(info->tmpname, hostname); >             strcat(info->tmpname, len_buf); > >     +       errno=ENOENT; >             if (stat( info->tmpname, &stat_buf) == 0) >             { >                     maildir_tmpcreate_free(info); > > But obviously, that's not exactly a reliable solution. > As I said, reverting libunistring to 1.2 "fixes" it for me, so it could be libunistring interfering in some way with stat? -- Guido Falsi