From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by passt.top (Postfix) with ESMTPS id 1B7A05A0262 for ; Mon, 27 Mar 2023 14:22:35 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 6BCA7320093A; Mon, 27 Mar 2023 08:22:33 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute2.internal (MEProxy); Mon, 27 Mar 2023 08:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yawnt.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1679919753; x=1680006153; bh=CG dtt62KSKUNsaoruriW9fkiXOQpH5qyxF9zNB/WiI8=; b=ptLbYcuESRa8O2e1x+ hM2I+MgRezEB33DKSjpAWNm0pm1/XHt+HFOQoO9cr6kyOWbKO6i/nWGXCrP06ONA uKh1KyCVAdE72osiod+ZlyMWheK/zqa7rpRHu5G7lYsbRn+PeW3/zQv9NETOH+j1 WJcbPO7maduF+F6BwjPYyAdDJQiWBIH1Jk9PPlK0b/vDbJUh3m+bIfcQ3mQUqvmr ewQsLd2+39uSjxqvAi/d56eWhYcwdV84tJGj9KCdr6DzmABrz9CGqG20RVs9y5Ub Xl+xJDir5h7NuQcTDeC3HQaylOvCzvNafw0eYpcTHiHCwKBW/37QPMukFp6YBn+q BBuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679919753; x=1680006153; bh=CGdtt62KSKUNs aoruriW9fkiXOQpH5qyxF9zNB/WiI8=; b=IstlpLmFlfeHu31mKjyg3IbNS/9YN 7aWQB+BCNEcTa+9IVCsZTYzxtSpQdTyZmvcODexTGZ0tEmfQLU5ZnZnQPO+K4Dlg +dUA8MgyA7Yu1H3AMm6mfDSrYcp9/vU+WBvRvB9bV0/dgZexNVeXfXDcd9ZHADX9 rUkXGqJV8YM2iAWqfytW1OZlUU0gTp+MWLdEdzxLzaCjaxG4EcSfohDFI0I7e/m4 uDOw0/RuZRz6CUMFhiFUwKW9TxYA/ev+vqUXO+d3ittbNJjBmQtRsSusqNWZ+Fd/ mOIk2CyOIYad2VkG2LdPawg3kwMWgtc/GsjgBhMCAeFfzf3i695pFM2/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehvddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfifhi rghnlhhutggrucfuthhivhgrnhdfuceomhgvseihrgifnhhtrdgtohhmqeenucggtffrrg htthgvrhhnpefhudehgeffhffgvdelueeigffgveffgfeftefhiedvjeeglefhueefudei keehvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmvgeshigrfihnthdrtghomh X-ME-Proxy: Feedback-ID: i7a494753:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B9432A60082; Mon, 27 Mar 2023 08:22:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-236-g06c0f70e43-fm-20230313.001-g06c0f70e Mime-Version: 1.0 Message-Id: In-Reply-To: <20230327114729.4f7a5c7d@elisabeth> References: <8a314e36-9459-4078-9e6c-db9b8c19464a@app.fastmail.com> <20230327114729.4f7a5c7d@elisabeth> Date: Mon, 27 Mar 2023 13:22:12 +0100 From: "Gianluca Stivan" To: "Stefano Brivio" Subject: Re: Failed to open tun socket in namespace Content-Type: text/plain X-MailFrom: me@yawnt.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: OOTQOOYIZTHPSB44HZFX7Q5GOJNKQOGA X-Message-ID-Hash: OOTQOOYIZTHPSB44HZFX7Q5GOJNKQOGA X-Mailman-Approved-At: Mon, 27 Mar 2023 14:44:50 +0200 CC: passt-user@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: "For users: support, questions and answers" Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Thanks for the reply! Here is the ending of the log file: ... 3944.3562: TCP: index 19, timer expires in 2.000s 3944.3563: TCP: index 19, timer expires in 2.000s 3944.3566: TCP: index 19: STALLED 3944.3578: TCP: index 7: STALLED dropped 3944.3579: TCP: index 7, timer expires in 2.000s 3944.3584: TCP: index 7: STALLED 3944.3586: TCP: index 7: STALLED dropped 3944.3587: TCP: index 7: ACK_FROM_TAP_DUE dropped 3944.3588: TCP: index 7: ACK_FROM_TAP_DUE 3944.3588: TCP: index 7, timer expires in 2.000s 3944.3589: TCP: index 12: STALLED dropped 3944.3590: TCP: index 12, timer expires in 2.000s 3944.3620: tap write: No buffer space available 3944.3620: TCP: index 17: STALLED dropped 3944.3620: TCP: index 17: ACK_FROM_TAP_DUE dropped 3944.4420: ERROR: Failed to open tun socket in namespace No buffer space available seems interesting? Thanks! PS: let me know if you'd like the full file! On Mon, Mar 27, 2023, at 10:47, Stefano Brivio wrote: > Hi Gianluca, > > On Sun, 26 Mar 2023 13:42:19 +0100 > "Gianluca Stivan" wrote: > >> Hi, >> Thank you so much for this project! > > And thanks for testing it! > >> I'm running a rootless container using pasta. Everything works great >> but after a while (anything from minutes to hours) I see the error >> "Failed to open tun socket in namespace" in my systemd logs, and my >> container loses access to the internet. > > That happens when pasta detects an issue with the tap file descriptor > (error or closure reported by the kernel, or failed read), so it closes > it and tries to open it again. > > There are two issues actually: 1. the problem with the tap device > causing this and 2. the fact that pasta fails to close and reopen the > file descriptor. > >> Do you happen to have any >> idea how I would go about debugging this? Thanks a lot in advance :) >> >> PS: I'm running pasta from podman with arguments >> --map-gw,--dns,,-i,wlan0,--outbound-if4,wireguard0,--outbound-if6,wireguard0,--config-net > > Let's try to debug issue 1. first: can you pass -d (--debug) and -l > (--log-file) here, then check the lines at the end, when pasta > terminates? You might want to play with --log-size too if there's a lot > of activity. > > -- > Stefano