Date: Tue, 17 Jan 2023 18:28:55 +0100 From: Juraj Lutter <otis@FreeBSD.org> To: User Ngor <ihor@antonovs.family> Cc: freebsd-current@freebsd.org Subject: Re: local-unbound regression Message-ID: <50B9F3E5-236E-47E1-850D-625801E6393B@FreeBSD.org> In-Reply-To: <50ca9367-f2dc-8634-403b-c6fd033b0ddf@antonovs.family> References: <6d204b08-5f67-6a0c-4982-93c5f9da8bf5@antonovs.family> <50ca9367-f2dc-8634-403b-c6fd033b0ddf@antonovs.family>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > On 17 Jan 2023, at 18:11, User Ngor <ihor@antonovs.family> wrote: >=20 > I discovered that recent unbound update broke my VPN scripts, after = some investigation I think I found the problem - default location of the = config file was reset to upstream value. My config file is at = /var/unbound/unbound.conf (as created by local-unbound-setup) but when I = use local-unbound-control I see this error message: >>=20 >>=20 >> # local-unbound-control flush_stats >> [1673972554] unbound-control[16206:0] error: Could not open = /usr/local/etc/unbound/unbound.conf: No such file or directory >> [1673972554] unbound-control[16206:0] fatal error: could not read = config file >>=20 >> I have not yet created bugzilla bug >>=20 >=20 > = https://cgit.freebsd.org/src/commit/?id=3D1838dec31895fd4752fa8631322ab93b= e0705a66 >=20 > /* Pathname to the Unbound configuration file */ > -#define CONFIGFILE "/var/unbound/unbound.conf" > +#define CONFIGFILE "/usr/local/etc/unbound/unbound.conf" >=20 >=20 > It looks like it was intentional, but then my local-unbound-setup = keeps creating configuration in the old destination... And it looks like = a POLA violation - I can imagine lot's of users might have configs in = /var/unbound I=E2=80=99ve opened a https://reviews.freebsd.org/D38106 = <https://reviews.freebsd.org/D38106> to see whether this can be fixed. =E2=80=94 Juraj Lutter otis@FreeBSD.org --Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">Hi,<br class=3D""><div><br class=3D""><blockquote type=3D"cite"= class=3D""><div class=3D"">On 17 Jan 2023, at 18:11, User Ngor <<a = href=3D"mailto:ihor@antonovs.family" = class=3D"">ihor@antonovs.family</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">I = discovered that recent unbound update broke my VPN scripts, after some = investigation I think I found the problem - default location of the = config file was reset to upstream value. My config file is at = /var/unbound/unbound.conf (as created by local-unbound-setup) but when I = use local-unbound-control I see this error message:<br = class=3D""><blockquote type=3D"cite" class=3D""><br class=3D""><br = class=3D""> # local-unbound-control flush_stats<br = class=3D""> [1673972554] unbound-control[16206:0] = error: Could not open /usr/local/etc/unbound/unbound.conf: No such file = or directory<br class=3D""> [1673972554] = unbound-control[16206:0] fatal error: could not read config file<br = class=3D""><br class=3D"">I have not yet created bugzilla bug<br = class=3D""><br class=3D""></blockquote><br class=3D""><a = href=3D"https://cgit.freebsd.org/src/commit/?id=3D1838dec31895fd4752fa8631= 322ab93be0705a66" = class=3D"">https://cgit.freebsd.org/src/commit/?id=3D1838dec31895fd4752fa8= 631322ab93be0705a66</a><br class=3D""><br class=3D""> = /* Pathname to the Unbound configuration file */<br = class=3D""> -#define CONFIGFILE = "/var/unbound/unbound.conf"<br class=3D""> +#define = CONFIGFILE "/usr/local/etc/unbound/unbound.conf"<br class=3D""><br = class=3D""><br class=3D"">It looks like it was intentional, but then my = local-unbound-setup keeps creating configuration in the old = destination... And it looks like a POLA violation - I can imagine lot's = of users might have configs in /var/unbound<br = class=3D""></div></div></blockquote><div><br class=3D""></div><div><br = class=3D""></div><div>I=E2=80=99ve opened a <a = href=3D"https://reviews.freebsd.org/D38106" = class=3D"">https://reviews.freebsd.org/D38106</a> to see whether = this can be fixed.</div><div><br class=3D""></div></div><br = class=3D""><div class=3D""> <meta charset=3D"UTF-8" class=3D""><div dir=3D"auto" style=3D"caret-color:= rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><div>=E2=80=94</div><div>Juraj = Lutter</div><div><a href=3D"mailto:otis@FreeBSD.org" = class=3D"">otis@FreeBSD.org</a></div></div> </div> <br class=3D""></body></html>= --Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B9F3E5-236E-47E1-850D-625801E6393B>