Re: Regarding named related issue observed with bind 9.11.5-P4 version
On 4/3/19 5:26 AM, Chandra Rao wrote: > While launching the named service coming from the latest bind as > mentioned below, We have observed that it's is not able to create > "/var/run/named" directory with the named user in the cluster. Due to > this we are not able to store the files "named.pid" and "session.key". named does not create the directory structure. You will need to do that yourself. AlanC ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Regarding named related issue observed with bind 9.11.5-P4 version
On 4/10/19 10:19 AM, Alan Clegg wrote: > On 4/3/19 5:26 AM, Chandra Rao wrote: >> While launching the named service coming from the latest bind as >> mentioned below, We have observed that it's is not able to create >> "/var/run/named" directory with the named user in the cluster. Due to >> this we are not able to store the files "named.pid" and "session.key". > > named does not create the directory structure. You will need to do that > yourself. Correcting myself before others do (sigh): You've not shown how much of the /var/run directory structure exists. Does /var/run exist? What are the permissions on it? I've just now looked at the only instance of the "couldn't mkdir" message in the BIND source code: if (mkdir(filename, mode) == -1) { strerror_r(errno, strbuf, sizeof(strbuf)); (*report)("couldn't mkdir '%s': %s", filename, strbuf); goto error; } (my original comment was based on logging directory structure, not that used by session information). AlanC ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Regarding named related issue observed with bind 9.11.5-P4 version
Alan, Are you running bind on a Linux box with apparmor. Check your apparmor configuration: /etc/apparmor.d/usr.sbin.named. Cheers, Karl > On 10 Apr 2019, at 16:31, Alan Clegg wrote: > >> On 4/10/19 10:19 AM, Alan Clegg wrote: >>> On 4/3/19 5:26 AM, Chandra Rao wrote: >>> While launching the named service coming from the latest bind as >>> mentioned below, We have observed that it's is not able to create >>> "/var/run/named" directory with the named user in the cluster. Due to >>> this we are not able to store the files "named.pid" and "session.key". >> >> named does not create the directory structure. You will need to do that >> yourself. > > Correcting myself before others do (sigh): > > You've not shown how much of the /var/run directory structure exists. > Does /var/run exist? What are the permissions on it? > > I've just now looked at the only instance of the "couldn't mkdir" > message in the BIND source code: > >if (mkdir(filename, mode) == -1) { >strerror_r(errno, strbuf, sizeof(strbuf)); >(*report)("couldn't mkdir '%s': %s", filename, > strbuf); >goto error; >} > > (my original comment was based on logging directory structure, not that > used by session information). > > AlanC > ___ > Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe > from this list > > bind-users mailing list > bind-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/bind-users ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Regarding named related issue observed with bind 9.11.5-P4 version
On 4/10/19 11:10 AM, Karl Lovink wrote: > Alan, > > Are you running bind on a Linux box with apparmor. Check your apparmor > configuration: /etc/apparmor.d/usr.sbin.named. I'm not, but the OP might be.:-) AlanC ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Regarding named related issue observed with bind 9.11.5-P4 version
Hi Alan, >>You've not shown how much of the /var/run directory structure exists. Does /var/run exist? What are the permissions on it? [Chandra] : /var/run directory structure is already exists and following are the permissions it's having. While launching the named service with the named user the directory should be created in it. # ls -l /var/run lrwxrwxrwx 1 root root 6 Apr 2 13:30 /var/run -> ../run Thanks & Regards, Chandra M On Wed, Apr 10, 2019 at 8:00 PM Alan Clegg wrote: > On 4/10/19 10:19 AM, Alan Clegg wrote: > > On 4/3/19 5:26 AM, Chandra Rao wrote: > >> While launching the named service coming from the latest bind as > >> mentioned below, We have observed that it's is not able to create > >> "/var/run/named" directory with the named user in the cluster. Due to > >> this we are not able to store the files "named.pid" and "session.key". > > > > named does not create the directory structure. You will need to do that > > yourself. > > Correcting myself before others do (sigh): > > You've not shown how much of the /var/run directory structure exists. > Does /var/run exist? What are the permissions on it? > > I've just now looked at the only instance of the "couldn't mkdir" > message in the BIND source code: > > if (mkdir(filename, mode) == -1) { > strerror_r(errno, strbuf, sizeof(strbuf)); > (*report)("couldn't mkdir '%s': %s", filename, > strbuf); > goto error; > } > > (my original comment was based on logging directory structure, not that > used by session information). > > AlanC > ___ > Please visit https://lists.isc.org/mailman/listinfo/bind-users to > unsubscribe from this list > > bind-users mailing list > bind-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/bind-users > ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Regarding named related issue observed with bind 9.11.5-P4 version
Hi Karl, No.We are not running bind on Linux box with apparmor. Thanks & Regards, Chandra M On Wed, Apr 10, 2019 at 8:40 PM Karl Lovink via bind-users < bind-users@lists.isc.org> wrote: > Alan, > > Are you running bind on a Linux box with apparmor. Check your apparmor > configuration: /etc/apparmor.d/usr.sbin.named. > > Cheers, > Karl > > > On 10 Apr 2019, at 16:31, Alan Clegg wrote: > > > >> On 4/10/19 10:19 AM, Alan Clegg wrote: > >>> On 4/3/19 5:26 AM, Chandra Rao wrote: > >>> While launching the named service coming from the latest bind as > >>> mentioned below, We have observed that it's is not able to create > >>> "/var/run/named" directory with the named user in the cluster. Due to > >>> this we are not able to store the files "named.pid" and "session.key". > >> > >> named does not create the directory structure. You will need to do that > >> yourself. > > > > Correcting myself before others do (sigh): > > > > You've not shown how much of the /var/run directory structure exists. > > Does /var/run exist? What are the permissions on it? > > > > I've just now looked at the only instance of the "couldn't mkdir" > > message in the BIND source code: > > > >if (mkdir(filename, mode) == -1) { > >strerror_r(errno, strbuf, sizeof(strbuf)); > >(*report)("couldn't mkdir '%s': %s", filename, > > strbuf); > >goto error; > >} > > > > (my original comment was based on logging directory structure, not that > > used by session information). > > > > AlanC > > ___ > > Please visit https://lists.isc.org/mailman/listinfo/bind-users to > unsubscribe from this list > > > > bind-users mailing list > > bind-users@lists.isc.org > > https://lists.isc.org/mailman/listinfo/bind-users > > ___ > Please visit https://lists.isc.org/mailman/listinfo/bind-users to > unsubscribe from this list > > bind-users mailing list > bind-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/bind-users > ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users