From owner-freebsd-ports@FreeBSD.ORG Thu Mar 27 08:16:45 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ACC87114 for ; Thu, 27 Mar 2014 08:16:45 +0000 (UTC) Received: from mail-ee0-x233.google.com (mail-ee0-x233.google.com [IPv6:2a00:1450:4013:c00::233]) (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 36BC1E01 for ; Thu, 27 Mar 2014 08:16:45 +0000 (UTC) Received: by mail-ee0-f51.google.com with SMTP id c13so2535650eek.10 for ; Thu, 27 Mar 2014 01:16:41 -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=vVSbC/DttwN+EM6iHX0SCZgcXAhabO6PQ2ZaWSiOBr4=; b=H3irNkAhhEYtCoqEJ5/mbxhKmIvSjK69Zkr0O3ydAyg+iNxWww1K6zzRJyTEVb9IU/ HQF09TFQUava5RmCzhYcXTsno7t3/FR9duqdbSiH7OhGFf70BmT/p5q9XxIdoOD42Fkj 9CHk5PlhaUL81R0DaVoNJgb7zIBZ6ME5jQiy0yRmCwD+46/J2ufe2/mwzFxovkN7MnTv Aila3+JlmKU5vd2mGJET2e66hZJ3nzK9SvbKN8dh6aJFliRRUhnd69loLGByh5az01Ma 4uhbNF30x8PG1Buhf0AFJKH8Eeyt1jBCWg3rS9bj4945Y+S8hgVlIn5lvEz0Ve8hYsIp K3Sg== X-Received: by 10.15.43.77 with SMTP id w53mr466953eev.10.1395908201840; Thu, 27 Mar 2014 01:16:41 -0700 (PDT) Received: from [192.168.1.129] ([193.173.55.180]) by mx.google.com with ESMTPSA id q49sm2694837eem.34.2014.03.27.01.16.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 01:16:41 -0700 (PDT) Message-ID: <5333DE6A.3090502@gmail.com> Date: Thu, 27 Mar 2014 09:16:42 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 08:16:45 -0000 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