From owner-freebsd-fs@freebsd.org Tue Mar 3 00:04:43 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 88E3825EDF2 for ; Tue, 3 Mar 2020 00:04:43 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48WchB0fP4z425f for ; Tue, 3 Mar 2020 00:04:42 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi1-f179.google.com with SMTP id i1so1148646oie.8 for ; Mon, 02 Mar 2020 16:04:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UNIQCr5JnHNLikJvozALvlMkhVP/8uUDuvVJ/OFlb7c=; b=WCnloCvIDv3oA8yA+aqT1sT2Pkzrc+hRJggr2XQ9Wo5sQEvrbnYbYnjcj7tjehpyKq C8wdECMfmcIW5rNVhsDeZZJyVCyjm8GsM5MSOgfy6BVCOugEHP4yrpGyr/2lGPvUtqAG RWpvH1kaLGcfkGu1NHBueTXZz+Wdmh9gM5wtJaRfut9r9TV+C7TLVGUtBwhZQYdiDm2c ABsohQYvxNuRLoqPlkHSDZ0QxU0KfJEA1dudp9d+CvsjFo8di5bxeJlTK4yLuIRkTjJV sVg7MOIVnVN+ribuYlEVmFQGYvD4QOkeECJ/SXD4B16ihl0PXFa/ZwcHMnt1hnz1XuyG NEJQ== X-Gm-Message-State: ANhLgQ1oBjlwiLE3x04do7q3aQXpPPoLwbIgw9I4mNk6uqI9ox7EMdg9 FyDtVEwX4EspOjAhEBNnmwzVSPqDWA29tUK8ifc= X-Google-Smtp-Source: ADFU+vsw5wcIJOturR95Gel1Zrvr4eSCxVFCJ06eF14sUzvNbDAcEm0bmljqpqGeRQJ/KRl74iyqswCUHR0y+UNvNB8= X-Received: by 2002:a05:6808:a8e:: with SMTP id q14mr640755oij.173.1583193880160; Mon, 02 Mar 2020 16:04:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alan Somers Date: Mon, 2 Mar 2020 17:04:29 -0700 Message-ID: Subject: Re: go build, flock, and NFS_BADSEQID To: Rick Macklem , freebsd-fs X-Rspamd-Queue-Id: 48WchB0fP4z425f X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.167.179 as permitted sender) smtp.mailfrom=asomers@gmail.com X-Spamd-Result: default: False [-2.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[179.167.85.209.list.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-0.99)[ip: (-0.26), ipnet: 209.85.128.0/17(-2.99), asn: 15169(-1.66), country: US(-0.05)]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[179.167.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 00:04:43 -0000 Yep. Remounting with minorversion=1 fixed the problem. Thanks!. On Mon, Mar 2, 2020 at 3:51 PM Rick Macklem wrote: > Oh and avoid "soft,intr" options on the mount. Those are pretty much > guaranteed to result in a BADSEQID sooner or later. > > rick > ps: It's in the Bugs section of "man mount_nfs", but nobody reads that > far;-) > > ________________________________________ > From: Alan Somers > Sent: Monday, March 2, 2020 5:40 PM > To: Rick Macklem > Cc: freebsd-fs; Rick Macklem > Subject: Re: go build, flock, and NFS_BADSEQID > > Is that a mount option? Because it seems like I can't set it with "mount > -u". Do I need to completely unmount first? > > On Mon, Mar 2, 2020 at 3:28 PM Rick Macklem rmacklem@uoguelph.ca>> wrote: > Try "minorversion=1". The seqid stuff is NFSv4.0 specific and shouldn't > be broken, but NFSv4.1 fixed all this in better ways. > > rick > > ________________________________________ > From: alan somers > > Sent: Monday, March 2, 2020 2:31 PM > To: freebsd-fs > Cc: Rick Macklem > Subject: go build, flock, and NFS_BADSEQID > > I'm trying to build a Go project with /usr/home mounted with NFSv4. The > server is running 12.0-RELEASE and the client is running 12.1-RELEASE. But > the build reliably fails because flock(2) returns EACCES. Dtrace shows the > cause is nfsrpc_advlock returning NFS_BADSEQID. This sounds like an NFS > bug (server, client, or both? I'm not sure). I'm not an NFS expert. Is > this something I should pursue, and would somebody please give me advise on > how to debug further? > -Alan >