Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2014 10:14:24 +0200
From:      Johan Hendriks <joh.hendriks@gmail.com>
To:        "Timur I. Bakeyev" <timur@com.bat.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: samba-4.1.6 FreeBSD 10 cannot read from share.
Message-ID:  <53AA84E0.1080202@gmail.com>
In-Reply-To: <5333DE6A.3090502@gmail.com>
References:  <5332A10D.8060108@gmail.com> <CALdFvJFjvO9_kv=2ZEM6Ho1upc5xp1TSxuPskG8ciHawRLYzkw@mail.gmail.com> <5333DE6A.3090502@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

op 27-03-14 09:16, Johan Hendriks schreef:
> Timur I. Bakeyev schreef:
>>
>> Hi, Johan!
>>
>> On Wed, Mar 26, 2014 at 10:42 AM, Johan Hendriks 
>> <joh.hendriks@gmail.com <mailto:joh.hendriks@gmail.com>> wrote:
>>
>>     Hello all.
>>
>>     I am using samba 3.x.x for a long time to share files across the
>>     network as a domain member server.
>>     All is working like it should. Lately i tried the samba 41 port
>>     and package to do the same job.
>>     However I am not able to get it working.
>>
>>     Everything seems to work, i can browse the share, i can write to
>>     the share and i can delete files from the share. But as soon as I
>>     want to read from the share windows explorer hangs. wbinfo -u
>>     works, id <user> works. I have rebuild samba41, i installed a new
>>     FreeBSD 10 machine and installed samba41, I also tried the
>>     package of samba but the issue remains. Also i tried to trim down
>>     the smb4.conf file.
>>
>>     The error i get is this (translated from dutch)
>>     There is a problem accessing the file I:\data\filetocopy
>>     Make sure your computer is connected to the network and try again.
>>
>>     In my logs i do not see a lot of strange things , i do see this....
>>
>>     Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25
>>     15:47:50.679688, 0, pid=80071, effective(0, 10004), real(0, 0)]
>>     ../source3/smbd/reply.c:3079(fake_sendfile)
>>     Mar 25 15:47:50 freetest smbd[80071]: [2014/03/25
>>     15:47:50.680200, 0, pid=80071, effective(0, 10004), real(0, 0)]
>>     ../source3/smbd/smb2_read.c:235(smb2_sendfile_send_data)
>>     Mar 25 15:47:50 freetest smbd[80071]: smb2_sendfile_send_data:
>>     fake_sendfile failed for file ubcd526.iso (Socket is not
>>     connected). Terminating
>>
>>
>>     Could someone point me in the right direction, i have no idea how
>>     to overcome this.
>>     If i revert back to 3.6.xx all is fine.
>>
>>
>> Can't tell you much, but that 'fake_sendfile' looks weird, we do have 
>> real one. Can you send be the config.log file?
>>
>> Regards,
>> Timur.
> Hello Timur, thank you for taking some time for this.
> Your comment make me try to set use sendfile = no in 
> /usr/local/etc/smb4.conf
> After a /usr/local/etc/rc.d/samba_server restart all is fine, I 
> actually can read from the share. which is quite nice after not being 
> able to do so for the last two weeks. :D
> So the culprit is allmost certain in the sendfile part of samba41.
>
> Thanks again, if i need to do something please let me know.
>
> regards
> Johan
>
>
>
Hello,

I still have this issue now on samba 4.1.9. If I add use sendfile = yes 
to the smb4.conf file samba errors out.
This on FreeBSD 10-stable!
Is there something I can check?

regards
Johan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53AA84E0.1080202>