From owner-freebsd-stable@freebsd.org Tue Feb 2 20:02:22 2021 Return-Path: Delivered-To: freebsd-stable@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 4EDC053BCDF for ; Tue, 2 Feb 2021 20:02:22 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4DVbM21Mgrz4Vqh; Tue, 2 Feb 2021 20:02:22 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-ed1-x52a.google.com with SMTP id c6so24349100ede.0; Tue, 02 Feb 2021 12:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=srtbbNCR2qwW2EXFCM+joLPBvawOxH9eQtOWBDia0Vw=; b=XQDDDvyPhtMD/UwATCvez+eqefEvjsWtygjGOUUP52LMpNwWxOGVrcj98pbS7cgq/H Fi0+QZ8aXX/CfqPUL996a+elNhk7i+47m3+G4nfJ2gBAviWeO8dSaCF0TsmnsggvtXTa wVzS18Trk+6pmwycroLDUV9yjdZ/4ToOvYCdTxlrdEhX7MbYvnfUrovTqy7/EpUOMLni 04jBPaZtrXwNiZh76/S2f2R1tOgcY7gv4mzTa5vEQ0CwP+eco18v7LIHSO4o8NWf91P/ 8Q7gksp97BV+BICfltCP3ZEc80TuIgZ9tv7weixtG60kYSKxkWzFm9cw0r3ZvRdXn8Av qSgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=srtbbNCR2qwW2EXFCM+joLPBvawOxH9eQtOWBDia0Vw=; b=METF8fYuwgOno6H5BDiaMRxcp3YpLnMcISEYE80Wmzx93AIL2IOEn9dlqALPvQwZEa n3G1Z0FCLUpsJWLq/mlrfjObRmcUzQsR2XtQEqP3dZePoxyGUuyDCl7ycVHmg38joum5 q9Gpowxks5XsTeOTcjOe6dhHjspvg2kSNZo3Jorc3xQaFDxw5oXHug5vgNbkTQj3R4uf HpSR+8PSaqGlh2wqBLvDnpirPCWXUOiuM9SkiEX4ehkS7cR6OfpS3jwBA2mElC3Thjxa 13cI5Zc6n/HaBA/naTYuMmWw2TIFy2EXR23XVbHAYZzZBQK6JlCmKjQpZNB8j6NR/2jb 1jIQ== X-Gm-Message-State: AOAM533g6b0F0G3OknO/AZnxcI5YeF9ZKWCVpP3b7Gmj1g66nt2gFq/v gfgE/yU8qQtdYjSaAIDApeTPA9FUpc4= X-Google-Smtp-Source: ABdhPJwNM85yZjiDjvMVyEQ+Ir7KxPNCiSz4zncY8hGq1lUWAM2WLbW69OrddYLbIMzsqc3xb7fO6Q== X-Received: by 2002:a05:6402:215:: with SMTP id t21mr525624edv.363.1612296140526; Tue, 02 Feb 2021 12:02:20 -0800 (PST) Received: from MacBook-Pro-van-Johan.local (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id a22sm10466722edv.67.2021.02.02.12.02.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Feb 2021 12:02:19 -0800 (PST) Subject: Re: latest stable13.0-ALPHA3 can not start varnish anymore. To: Mateusz Guzik , Kyle Evans Cc: Kristof Provost , FreeBSD-STABLE Mailing List References: <890f2a63-62a9-f4a7-b57f-5b122a4a9709@gmail.com> <9821a854-9c86-060b-607b-01a2fbbc076e@gmail.com> <44315237-2B01-4C1B-A992-E235A5A911B0@FreeBSD.org> From: Johan Hendriks Message-ID: <74f1dcc9-51e0-8272-4fbd-c3bdd8cf9e89@gmail.com> Date: Tue, 2 Feb 2021 21:02:13 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4DVbM21Mgrz4Vqh X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2021 20:02:22 -0000 On 02/02/2021 19:20, Mateusz Guzik wrote: > I fixed the problem and given the impending builds merged it > immediately. Can be seen here: > https://cgit.freebsd.org/src/commit/?id=4e29933d0936fd053f7591ee118dc1fc42617514 > > Should you run into any other problems, they can be temporarily worked > around with: > sysctl vfs.cache_fast_lookup=0 > > For problem reports in the area please collect: > dtrace -n 'vfs:fplookup:lookup:done { @[arg1, arg2, > stringof(args[0].ni_cnd.cn_pnbuf)] = count(); }' -c "failing command" > > On 2/2/21, Kyle Evans wrote: >> On Tue, Feb 2, 2021 at 10:42 AM Kristof Provost wrote: >>> On 2 Feb 2021, at 14:05, Johan Hendriks wrote: >>>> On 01/02/2021 22:48, Johan Hendriks wrote: >>>>> I just updated my FreeBSD 13.0-APLPHA3 to the latest revision and now >>>>> i can not start varnish anymore. >>>>> This is on two machines. >>>>> >>>>> if i start varnish it errors out as the startup script does a config >>>>> file check. >>>>> If i try to do a test of the config file i get the following error. >>>>> >>>>> root@jhost002:~ # varnishd -C -f /usr/local/etc/varnish/default.vcl >>>>> Error: Cannot create working directory '/tmp/varnishd_C_dwbl7mn/': Is >>>>> a directory >>>>> Error: Cannot create working directory (/tmp/varnishd_C_dwbl7mn/): No >>>>> error: 0 >>>>> (-? gives usage) >>>>> root@jhost002:~ # >>>>> >>>>> This is on: >>>>> FreeBSD jhost002.mydomain.nl 13.0-ALPHA3 FreeBSD 13.0-ALPHA3 #35 >>>>> stable/13-c256281-gc415d0df47fc: Mon Feb 1 17:04:49 CET 2021 >>>>> root@srv-01.home.local:/usr/obj/usr/src/amd64.amd64/sys/KRNL amd64 >>>>> >>>>> I did not update the package or installed any other software besides >>>>> the buildworld. >>>>> >>>>> regards, >>>>> Johan >>>>> >>>>> >>>> I have tried some bisecting as far as my understanding of git goes. I >>>> do not know which one is the latest, but on these revisions varnish >>>> works. >>>> >>>> FreeBSD jhost002 13.0-ALPHA3 FreeBSD 13.0-ALPHA3 #8 >>>> c256261-g9375a93b6c22: Tue Feb 2 13:33:05 CET 2021 >>>> root@jhost002:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 >>>> >>>> uname -a >>>> FreeBSD jhost002 13.0-ALPHA3 FreeBSD 13.0-ALPHA3 #7 >>>> c256260-g247f652e622d: Tue Feb 2 13:07:37 CET 2021 >>>> root@jhost002:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 >>>> >>> Can you try setting `sysctl vfs.cache_fast_lookup=0` ? >>> >>> (As suggested by Mateusz elsewhere.) >>> >> We confirmed that reverting 006ec2ed fixes it, I'm still trying to get >> an idea of what's happening. My initial analysis suggests that >> fplookup hits the trailing slash and aborts, leaving us at the >> degenerate state back up in the slow-path. >> >> I have a small reproducer that I'm working with: >> https://people.freebsd.org/~kevans/namereg.c >> Just did a full rebuild for stable 13 and i can run varnishd -C -f /usr/local/etc/varnish/default.vcl again. FreeBSD jhost002 13.0-ALPHA3 FreeBSD 13.0-ALPHA3 #14 stable/13-n244422-4e29933d0936: Tue FebĀ  2 20:49:09 CET 2021 root@jhost002:/usr/obj/usr/src/amd64.amd64/sys/GENERICĀ  amd64 Thank you all for your time and work.