[Samba] too many open files
David Disseldorp
ddiss at suse.de
Tue Apr 15 03:36:21 MDT 2014
On Tue, 15 Apr 2014 10:17:03 +0200, Stefan Schäfer wrote:
> The logfile says:
>
> "Apr 15 02:48:37 s4ad samba[3058]: [2014/04/15 02:48:37.495691, 0]
> ../source4/smbd/process_single.c:57(single_accept_conn
> ection)
> Apr 15 02:48:37 s4ad samba[3058]: [2014/04/15 02:48:37.495905, 0]
> ../lib/util/debug.c:595(reopen_logs_internal)
> Apr 15 02:48:37 s4ad samba[3058]: Unable to open new log file
> '/var/log/samba/log.samba': Too many open files
> Apr 15 02:48:37 s4ad samba[3058]: single_accept_connection: accept:
> NT_STATUS_TOO_MANY_OPENED_FILES
> Apr 15 02:48:38 s4ad samba[3058]: [2014/04/15 02:48:38.496541, 0]
> ../source4/smbd/process_single.c:57(single_accept_conn
> ection)"
>
> The last two message repeats many times until reboot.
>
> It happens just when samba tries to open a new connection to its logfile.
>
> Any ideas? Further information needed?
Looks like you've hit EMFILE. I'd suggest checking the list of fd's used
by the process with "ls -l /proc/$pid/fd". That should help you
determine whether the error is due to an fd leak somewhere.
"cat /proc/$pid/limits" will also show you the "Max open files" limits
for the process, which you may wish to raise.
Cheers, David
More information about the samba
mailing list