Unable to open new log file /var/samba/log.smbd: No such file or directory

Edgar, Bob Bob.Edgar at commerzbankib.com
Wed May 14 09:57:56 GMT 2003


I made a small change to debug.c to set errno = 0 before the attempted open.
It now says:
May 14 11:51:52 salt smbd[15566]: [2003/05/14 11:51:52, 0, effective(0, 0),
real(0, 0)] ../../source/lib/debug.c:(349)
May 14 11:51:52 salt smbd[15566]:   Unable to open new log file
/var/samba/log.smbd: Error 0

It's using fopen64 and not setting errno. From the man page:

     The fopen() function may fail and not set errno if there are
     no free stdio streams.

Has anyone been running samba 64 bit on Solaris 7, 8, and 9?

bob

-----Original Message-----
From: Eric Boehm [mailto:boehm at nortelnetworks.com]
Sent: Dienstag, 13. Mai 2003 14:51
To: Edgar, Bob
Cc: 'samba-technical at lists.samba.org'
Subject: Re: Unable to open new log file /var/samba/log.smbd: No such
file or directory


On Tue, May 13, 2003 at 02:17:26PM +0200, Edgar, Bob wrote:
>>>>> "Edgar" == Edgar, Bob <Bob.Edgar at commerzbankib.com> writes:

    Edgar> I get these messages in my log file and I was wondering if
    Edgar> I'm just being stupid.

    Edgar> This is 2.2.8a on Solaris 7 built with
    Edgar> --localstatedir=/var/samba

    Edgar> As one can see from the time stamps on the files it does
    Edgar> open a new file from time to time.

    Edgar> [2003/05/13 14:08:29, 0, effective(0, 0), real(0, 0)]
    Edgar> ../../source/lib/debug.c:(348) Unable to open new log file
    Edgar> /var/samba/log.smbd: No such file or directory

I've seen this before -- did you compile Samba 64-bit? Is your Solaris
7 64-bit?

I've seen this happen when a 32-bit Samba daemon has more than 256
files open and then calls fopen to open the log file. The error
message is very misleading.

If 'isainfo -v' returns

64-bit sparcv9 applications
32-bit sparc applications

You can build a 64-bit samba.

For Sun's Forte compiler

CC=cc; export CC                      # setenv CC     cc           for csh
CFLAGS='-xarch=v9a'; export CFLAGS    # setenv CFLAGS '-xarch=v9a' for csh
./configure --localstatedir=/var/samba

For GCC 3.x or better

CC=gcc; export CC                     # setenv CC     gcc
CFLAGS='-m64'; export CFLAGS          # setenv CFLAGS '-m64'
./configure --localstatedir=/var/samba

-- 
Eric M. Boehm                  /"\  ASCII Ribbon Campaign
boehm at nortelnetworks.com       \ /  No HTML or RTF in mail
                                X   No proprietary word-processing
Respect Open Standards         / \  files in mail



More information about the samba-technical mailing list