From owner-freebsd-ports@FreeBSD.ORG Wed Jun 25 08:14:32 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 516B83F1 for ; Wed, 25 Jun 2014 08:14:32 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D37722827 for ; Wed, 25 Jun 2014 08:14:31 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id n15so1993891wiw.11 for ; Wed, 25 Jun 2014 01:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=11zCBhK8sFac432JvXYV8dtGMWD5r67foaVkWSu6iIA=; b=jkKm1baf/KEY+kRsTdoOKAOKmgvz5j9O8Dwg79rE9Lst8I2xrhUiZXSromHEYOSGP1 go8+vrrcXteHlD8Oz3Isg2nI6FM6fiQB8mdqDU/v6vIzmNWDWuhJW6DKsDOreHiA0BeQ Ssu8vCe45gp78sWImuVlsYABwUf9gRsX5qVDMoR3ZihUR32yS6D0snI6nEetUstKkWeo OFALrtqvYcyNlsvZRN7JwCle0gZqCgV2bvuV6dERVCm7fcxsRSzJWGKt4KioaXyN5HkT /tT3T7dgekD9CxCcXcJVEYJwjCh+XQKjkQAtnmmfLxwB/9QO6VogRRS891mMDg3zRjnX Y4bQ== X-Received: by 10.180.108.103 with SMTP id hj7mr5030975wib.82.1403684067389; Wed, 25 Jun 2014 01:14:27 -0700 (PDT) Received: from [192.168.5.102] ([217.166.172.10]) by mx.google.com with ESMTPSA id gi7sm51091224wib.1.2014.06.25.01.14.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 01:14:26 -0700 (PDT) Message-ID: <53AA84E0.1080202@gmail.com> Date: Wed, 25 Jun 2014 10:14:24 +0200 From: Johan Hendriks User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Timur I. Bakeyev" Subject: Re: samba-4.1.6 FreeBSD 10 cannot read from share. References: <5332A10D.8060108@gmail.com> <5333DE6A.3090502@gmail.com> In-Reply-To: <5333DE6A.3090502@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 08:14:32 -0000 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 >> > 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 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