Hello to everyone>From one day to another my internal dns server in samba4 stoppedforwarding queries. It was resolving well my domain. I had to restart samba4 then it worked fine. Cheers, Felix.
On 10/04/2012 06:23 AM, felix at epepm.cupet.cu wrote:> Hello to everyone > > From one day to another my internal dns server in samba4 stopped > forwarding queries. It was resolving well my domain. I had to restart > samba4 then it worked fine. > > Cheers, > Felix. >Which version of samba are you running ? Matthieu. -- Matthieu Patou Samba Team http://samba.org
> Ok we found some bugs that could lead to a frozen dns server can you try > rc2? > Matthieu.Happened again with rc2 but found that at the same time this error shows every second: [2012/10/05 09:01:39, 0] ../source4/smbd/process_single.c:56(single_accept_connection) single_accept_connection: accept: NT_STATUS_TOO_MANY_OPENED_FILES After restarting everything is OK, but it happened yesterday though I didn't notice it was at the same time the dns error and this too many opened files.
>>>> Happened again with rc2 but found that at the same time this error >>>> shows >>>> every second: >>>> >>>> [2012/10/05 09:01:39, 0] >>>> ../source4/smbd/process_single.c:56(single_accept_connection) >>>> single_accept_connection: accept: NT_STATUS_TOO_MANY_OPENED_FILES >> >> root at ad:~# netstat -anp | grep 53|grep samba|wc -l >> 1003 > > I think this is the direct cause of the "too many open files" error. > >> https://bugzilla.samba.org/show_bug.cgi?id=8878 >> >> In a nutshell I suspect that our server sends forward requests to >> the forwarder that are never answered and the connections piles >> up, once we reached the limit (1024 ?) the server didn't accept >> any new connections. > > Seems likely.I think it is. Because all the connections I see when the error occurs are related to the forwarder I declared in smb.conf. The number of connections keeps growing again until the error appears. So I have to restart samba. And, yes, lsof, shows that all connections but 2 are related to the forwarder. Cheers, Felix.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-10-09 15:13, felix at epepm.cupet.cu wrote: Hi Felix,> I think it is. Because all the connections I see when the error > occurs are related to the forwarder I declared in smb.conf. The > number of connections keeps growing again until the error appears. > So I have to restart samba. And, yes, lsof, shows that all > connections but 2 are related to the forwarder.An interesting question of course is why your forwarder never answers the requests from the internal DNS server. Is it set up correctly? I agree we really need to fix the timeout, but even then your DNS setup would be broken if the forwarder never answers to queries. Cheers, Kai - -- Kai Blin Worldforge developer http://www.worldforge.org/ Wine developer http://wiki.winehq.org/KaiBlin Samba team member http://www.samba.org/samba/team/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlB1DJYACgkQEKXX/bF2FpSfqgCcDxrlGPLFYrnY5e4coGOiqZDl /+8An1jOxoJZFxmsNWMlEMs8rOHDL1Bi =8dz/ -----END PGP SIGNATURE-----
> Hi Felix, > >> I think it is. Because all the connections I see when the error occursare related to the forwarder I declared in smb.conf. The number of connections keeps growing again until the error appears. So I have to restart samba. And, yes, lsof, shows that all>> connections but 2 are related to the forwarder. > > An interesting question of course is why your forwarder never answersthe requests from the internal DNS server. Is it set up correctly? I agree we really need to fix the timeout, but even then your DNS setup would be broken if the forwarder never answers to queries.>Hi Kai: yes, the forwarder does answer the requests but the connections keep open. The internal dns servers stops forwarding when the number of connections is above 1000. Could you, please, help me? Cheers, Felix.