From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 74.125.0.0/16 X-Spam-Status: No, score=-1.8 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, SPF_PASS,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A5A92633805 for ; Wed, 9 Mar 2016 13:19:21 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id p65so70552326wmp.0 for ; Wed, 09 Mar 2016 05:19:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VgwgBwrKvGQu6G2Elz4I0HjeN3q4f3Vd4sntz/DXUwM=; b=GXSfWqjoQDmsCsejayjiMRku8xZ87KkZFw9MJvNqQxk08csCxFYug5jj3aZb+xVTIt SupPsMRFJ8hOeTlCfhTb0GKhGEpLA3j2Vj5B47ILpNwEVIJ3Lzj9Guis0IuwfZXu1JS0 sDAGBsZjecgNvFol5qQATgo8hG8iKR5R6AyziLGZk7x5rlmgzBEauiV0YWyMcfjcfEuv OhbgBxxkNqvQAyQNZM1f1zZyexauLYDG7ZyqG7ReFisQkq1SYAmTfIluSRiNtG2hEIMs w629aI/i/Jf9IyXPT23RmFeqjdmtNEkddcnDAMqNflcCKr4U9l2egAOd88t2ETEgrFjr sbyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=VgwgBwrKvGQu6G2Elz4I0HjeN3q4f3Vd4sntz/DXUwM=; b=jOzKNxPw/yzKSKpvv13G+ekvwfPMj9UQKqaHo0ArwHrKrD1SxtAND7C77cryO4Gur5 EivnAmR7/sppZOFUPE6okwzh5CGZXJSF38J4hFVWiki4wfm4oNM0NLLG72Gw0Tl9WITA lCNHPsBe5awstup09jZzZCqS0cl8xcBjJCWz4J6XeMvFhwG1HGUZhgKQFYhoLJHMuaEY LVF9T8uaQTnkRX2r/BDndGrEy3oxbXjtUXz3T62OenSLn5a3fpzY7c7ID/5aHRwT+MN1 D20vLkOK3dUSg+mWC99E7tltlk76Z4lF3LjC/5o32M+ezOKHXwdxiMDAP2hp2h9og3vp 51bw== X-Gm-Message-State: AD7BkJIpZxpN7rEjA/1FSJPgkFmG/k4dKGrokWyufkZJLT4SZg1VXyepdLtMpU3wd2FLcA== X-Received: by 10.194.179.168 with SMTP id dh8mr41009604wjc.130.1457529560377; Wed, 09 Mar 2016 05:19:20 -0800 (PST) Received: from luke.ws.skroutz.gr (luke.ws.skroutz.gr. [185.6.78.148]) by smtp.gmail.com with ESMTPSA id 73sm23906797wmy.22.2016.03.09.05.19.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Mar 2016 05:19:19 -0800 (PST) Sender: Trochalakis Christos Date: Wed, 9 Mar 2016 15:19:15 +0200 From: Christos Trochalakis To: Eric Wong Cc: Amir Yalon , unicorn-public@bogomips.org Subject: Re: Systemd socket inheritance =?utf-8?Q?f?= =?utf-8?Q?ails_with_=E2=80=9Cnot_a_socket_file_descriptor?= =?utf-8?B?4oCd?= [take2] Message-ID: <20160309131915.GA25830@luke.ws.skroutz.gr> References: <1457392131.48974.542407130.6981D79B@webmail.messagingengine.com> <20160308033141.GA10218@dcvr.yhbt.net> <1457423146.164433.542706346.5085E10D@webmail.messagingengine.com> <20160308173710.GA534@dcvr.yhbt.net> <1457469175.1318763.543399970.5DA44188@webmail.messagingengine.com> <20160309035157.GA23507@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20160309035157.GA23507@dcvr.yhbt.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: On Wed, Mar 09, 2016 at 03:51:57AM +0000, Eric Wong wrote: >Amir Yalon wrote: >> Yes, everything looks as expected, one inherited socket starting at fd >> number 3: >> >> I=[3] PID=4869 FDS=1 >> >> Also tried with Ruby 2.2.1, same results. FWIW, my rubies are compiled >> by system-wide RVM with no special options given to it. > >Interesting. Can you try using some other non-Ruby daemon >which uses sd_listen_fds, too? I can't think of any off >the top of my head, but I'm sure there's some. > >It seems like systemd is mis-setting FD_CLOEXEC on socket, >even. > >> Thanks for taking the time to investigate, really appreciated. > >No problem. I wonder if something else is broken in your systemd >config... > >Again, I'll take a harder look at newer systemd later this week >unless somebody beats me to it. I was also unable to reproduce it in: * debian stretch, ruby2.2 / systemd 229 * ubuntu wily, ruby2.{1,2} / systemd 225 I used system rubies for all the experments, not rvm. Amir, could you also send us for completeness your unicorn config and the output of systemctl cat unicorn.socket & systemctl cat unicorn@1.service ?