From nobody Sun Jun 22 16:40:02 2025 X-Original-To: freebsd-current@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 4bQH5R0JPmz5ywVR; Sun, 22 Jun 2025 16:40:43 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp052.goneo.de [85.220.129.60]) (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 4bQH5P62MMz3lL0; Sun, 22 Jun 2025 16:40:41 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=Z+9d3MX+; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.60 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de; dmarc=none Received: from hub2.goneo.de (hub2.goneo.de [IPv6:2001:1640:5::8:53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id B672E240563; Sun, 22 Jun 2025 18:40:39 +0200 (CEST) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id DFD3B24028E; Sun, 22 Jun 2025 18:40:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1750610437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=05i3VIbBEp2+2DaVuX2eTr6ekGK8CxvyTaF8RvdaIoA=; b=Z+9d3MX+X932bcKAPDz8hvm64uwtyzbGqlchlsAL8zWYUVcFKTXpjHWmAlai7dNuP/r2B4 RLcnn0rW6EF3TuggRsboJKfETgy8k1GD32HJ9dORU/JfBN6Twxp49URFtc16o2dpQRkZiC PMe1/4wj2QLziwNrHiJgl8SfQxvgh3LoEHPqZJjVWOdGSx2z7+ZrWTrPR9e6GVHvXs/l6w PgZwNwbbevFoLEoB/aioCpdIN1A4DFCiuCMfzUCMP2AIANz1Q3BTegPMob3Hl9SWV6Spnv AaVsmM9dNeV5NuaCcpQOGJLuh5zP+ZG+UC5/Hip6f7wf0YB6xLp4hQJ0N4WY6A== Received: from thor.sb211.local (dynamic-2a02-3100-195d-e402-e03d-4007-408b-047e.310.pool.telefonica.de [IPv6:2a02:3100:195d:e402:e03d:4007:408b:47e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id 883E9240283; Sun, 22 Jun 2025 18:40:37 +0200 (CEST) Date: Sun, 22 Jun 2025 18:40:02 +0200 From: A FreeBSD User To: FreeBSD CURRENT , FreeBSD Ports Subject: net/kea: [2.6.3_1]: Unable to open database: invalid path specified - only /var/db as folder allowed Message-ID: <20250622184029.76567686@thor.sb211.local> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/_x/28Ea6BbPScpPaWTXICFS"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 5cebaf X-Rspamd-UID: b0b632 X-Spamd-Result: default: False [-4.67 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.995]; NEURAL_HAM_LONG(-0.58)[-0.575]; NEURAL_HAM_MEDIUM(-0.40)[-0.395]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; RCVD_IN_DNSWL_LOW(-0.10)[85.220.129.60:from]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4bQH5P62MMz3lL0 X-Spamd-Bar: ---- --Sig_/_x/28Ea6BbPScpPaWTXICFS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable After a recent update of net/kea (now at 2.6.3_1), kea rejects to startup b= ecause we have our lease database not within /var/db/kea, but in /pool/data/kea. According to the documentation provided at https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#dhcpv4-server-confi= guration this is a intended behaviour since kea 2.7.9. For me, this change in 2.6.3 = came out of the blue and hit hard. To solve the problem for those having other folders in mind than the at com= pile time fixed one, one has to set the environment variable KEA_DHCP_DATA_DIR before start= up of kea. I have no clear idea were to put the proper definition of this environmenta= l variable BEFORE kea starts up. I tried using /etc/login.conf: [...] :setenv=3DBLOCKSIZE=3DK,KEA_DHCP_DATA_DIR=3D/pool/data/kea/:\ [...] but the downside is that the rc-script in /usr/local/etc/rc.d/kea requirs=20 REQUIRE: LOGIN ... before being effective. Consequence: net/kea doesn't start properly when KE= A_DHCP_DATA_DIR is set via /etc/login.conf. I guess the approach regarding /etc/login.conf is as wrong as changing the = rc.d script's milestone from NETWORK to LOGIN. Is there a clean way - apart from changing rc.d-script - to provide environ= ment variables at boottime? Thanks in advance, oh p.s. filed a PR: Bug 287598=20 --=20 A FreeBSD user --Sig_/_x/28Ea6BbPScpPaWTXICFS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaFgx/QAKCRCxzvs8Oqok r8bHAP4inPfORxl0kSkopKuP52i03M4VKWoAf4D1EHfJI/orcQD7ByBCxAibZIg2 GqMduN2iJXfCYqvS3cPbH2abrsbHnQc= =R5Bj -----END PGP SIGNATURE----- --Sig_/_x/28Ea6BbPScpPaWTXICFS--