Bind9 Container Error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bind9 Container Error

Juarez Souza Junior
Hi All!

 I'm trying to run Bind9 container but the these errors are happening:

08-Jan-2021 19:08:54.217 running as: named -g -c /etc/bind/named.conf -u bind
08-Jan-2021 19:08:54.217 compiled by GCC 9.3.0
08-Jan-2021 19:08:54.217 compiled with OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020
08-Jan-2021 19:08:54.217 linked to OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020
08-Jan-2021 19:08:54.217 compiled with libxml2 version: 2.9.10
08-Jan-2021 19:08:54.217 linked to libxml2 version: 20910
08-Jan-2021 19:08:54.217 compiled with json-c version: 0.13.1
08-Jan-2021 19:08:54.217 linked to json-c version: 0.13.1
08-Jan-2021 19:08:54.217 compiled with zlib version: 1.2.11
08-Jan-2021 19:08:54.217 linked to zlib version: 1.2.11
08-Jan-2021 19:08:54.217 ----------------------------------------------------
08-Jan-2021 19:08:54.217 BIND 9 is maintained by Internet Systems Consortium,
08-Jan-2021 19:08:54.217 Inc. (ISC), a non-profit 501(c)(3) public-benefit
08-Jan-2021 19:08:54.217 corporation.  Support and training for BIND 9 are
08-Jan-2021 19:08:54.217 available at https://www.isc.org/support
08-Jan-2021 19:08:54.217 ----------------------------------------------------
08-Jan-2021 19:08:54.217 found 4 CPUs, using 4 worker threads
08-Jan-2021 19:08:54.217 using 4 UDP listeners per interface
08-Jan-2021 19:08:54.221 using up to 21000 sockets
08-Jan-2021 19:08:54.225 loading configuration from '/etc/bind/named.conf'
08-Jan-2021 19:08:54.225 directory '/var/cache/bind' is not writable
08-Jan-2021 19:08:54.225 /etc/bind/named.conf.options:7: parsing failed: permission denied
08-Jan-2021 19:08:54.229 loading configuration: permission denied
08-Jan-2021 19:08:54.229 exiting (due to fatal error)
I've already checked the permissions and seems to be ok.

I'm using this line command to run:
docker run --name=bind_test --restart=always --publish 192.168.56.1:53:53/udp --publish 192.168.56.1:53:53/tcp --publish 127.0.0.1:953:953/tcp -v /var/lib/bind9-data/etc/bind:/etc/bind -v /var/lib/bind9-data/var/cache/bind:/var/cache/bind:Z -v /var/lib/bind9-data/var/lib/bind:/var/lib/bind:Z -v /var/lib/bind9-data/var/log:/var/log:Z internetsystemsconsortium/bind9:9.16

Could someone give me some help?

--
Regards,

Juarez

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Bind9 Container Error

程智勇
在 2021年1月9日 +0800 AM3:14,Juarez Souza Junior <[hidden email]>,写道:
Hi All!

 I'm trying to run Bind9 container but the these errors are happening:

08-Jan-2021 19:08:54.217 running as: named -g -c /etc/bind/named.conf -u bind
08-Jan-2021 19:08:54.217 compiled by GCC 9.3.0
08-Jan-2021 19:08:54.217 compiled with OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020
08-Jan-2021 19:08:54.217 linked to OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020
08-Jan-2021 19:08:54.217 compiled with libxml2 version: 2.9.10
08-Jan-2021 19:08:54.217 linked to libxml2 version: 20910
08-Jan-2021 19:08:54.217 compiled with json-c version: 0.13.1
08-Jan-2021 19:08:54.217 linked to json-c version: 0.13.1
08-Jan-2021 19:08:54.217 compiled with zlib version: 1.2.11
08-Jan-2021 19:08:54.217 linked to zlib version: 1.2.11
08-Jan-2021 19:08:54.217 ----------------------------------------------------
08-Jan-2021 19:08:54.217 BIND 9 is maintained by Internet Systems Consortium,
08-Jan-2021 19:08:54.217 Inc. (ISC), a non-profit 501(c)(3) public-benefit
08-Jan-2021 19:08:54.217 corporation.  Support and training for BIND 9 are
08-Jan-2021 19:08:54.217 available at https://www.isc.org/support
08-Jan-2021 19:08:54.217 ----------------------------------------------------
08-Jan-2021 19:08:54.217 found 4 CPUs, using 4 worker threads
08-Jan-2021 19:08:54.217 using 4 UDP listeners per interface
08-Jan-2021 19:08:54.221 using up to 21000 sockets
08-Jan-2021 19:08:54.225 loading configuration from '/etc/bind/named.conf'
08-Jan-2021 19:08:54.225 directory '/var/cache/bind' is not writable

It seems that this directory is not writable. Did you have checked the '/etc/bind/named.conf’
config file yet? It may find some clues.
08-Jan-2021 19:08:54.225 /etc/bind/named.conf.options:7: parsing failed: permission denied
08-Jan-2021 19:08:54.229 loading configuration: permission denied
08-Jan-2021 19:08:54.229 exiting (due to fatal error)
I've already checked the permissions and seems to be ok.

I'm using this line command to run:
docker run --name=bind_test --restart=always --publish 192.168.56.1:53:53/udp --publish 192.168.56.1:53:53/tcp --publish 127.0.0.1:953:953/tcp -v /var/lib/bind9-data/etc/bind:/etc/bind -v /var/lib/bind9-data/var/cache/bind:/var/cache/bind:Z -v /var/lib/bind9-data/var/lib/bind:/var/lib/bind:Z -v /var/lib/bind9-data/var/log:/var/log:Z internetsystemsconsortium/bind9:9.16

Could someone give me some help?

--
Regards,

Juarez
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Bind9 Container Error

Ed Daniel
In reply to this post by Juarez Souza Junior
On 08/01/2021 19:13, Juarez Souza Junior wrote:
> 08-Jan-2021 19:08:54.225 loading configuration from '/etc/bind/named.conf'
> 08-Jan-2021 19:08:54.225 directory '/var/cache/bind' is not writable
> 08-Jan-2021 19:08:54.225 /etc/bind/named.conf.options:7: parsing failed:
> permission denied
> 08-Jan-2021 19:08:54.229 loading configuration: permission denied
> 08-Jan-2021 19:08:54.229 exiting (due to fatal error)
> I've already checked the permissions and seems to be ok.

Check the user/group BIND is using, it does appear to be an
identity/perm issue, unless I'm mistaken. HTH


>
> I'm using this line command to run:
> docker run --name=bind_test --restart=always --publish
> 192.168.56.1:53:53/udp --publish 192.168.56.1:53:53/tcp --publish
> 127.0.0.1:953:953/tcp -v /var/lib/bind9-data/etc/bind:/etc/bind -v
> /var/lib/bind9-data/var/cache/bind:/var/cache/bind:Z -v
> /var/lib/bind9-data/var/lib/bind:/var/lib/bind:Z -v
> /var/lib/bind9-data/var/log:/var/log:Z internetsystemsconsortium/bind9:9.16
>
> Could someone give me some help?
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Bind9 Container Error

Ulf Volmer
In reply to this post by Juarez Souza Junior
On 08.01.21 20:13, Juarez Souza Junior wrote:

> I'm using this line command to run:
> docker run --name=bind_test --restart=always --publish 192.168.56.1:53:53/udp
> --publish 192.168.56.1:53:53/tcp --publish 127.0.0.1:953:953/tcp -v
> /var/lib/bind9-data/etc/bind:/etc/bind -v
> /var/lib/bind9-data/var/cache/bind:/var/cache/bind:Z -v
> /var/lib/bind9-data/var/lib/bind:/var/lib/bind:Z -v
> /var/lib/bind9-data/var/log:/var/log:Z internetsystemsconsortium/bind9:9.16

Is there any reason why you are using /etc/bind without selinux context
and the other volumes with?

I'm just guessing.

Best regards
Ulf

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users