From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wLDbMG7Tg2Pt+QAAbAwnHQ (envelope-from ) for ; Sun, 27 Nov 2022 22:15:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QDzkMG7Tg2NmnQAA9RJhRA (envelope-from ) for ; Sun, 27 Nov 2022 22:15:26 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 639633BDDB for ; Sun, 27 Nov 2022 22:15:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozOzS-0007up-Mk; Sun, 27 Nov 2022 16:15:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozOzQ-0007tm-NA for bug-guix@gnu.org; Sun, 27 Nov 2022 16:15:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozOzO-0000wn-KN for bug-guix@gnu.org; Sun, 27 Nov 2022 16:15:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozOzO-0000qa-Ft for bug-guix@gnu.org; Sun, 27 Nov 2022 16:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59515: nginx: Fails to start on boot while upstream service is not yet running Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 27 Nov 2022 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59515 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jonathan Brielmaier Cc: 59515@debbugs.gnu.org Received: via spool by 59515-submit@debbugs.gnu.org id=B59515.16695837003233 (code B ref 59515); Sun, 27 Nov 2022 21:15:02 +0000 Received: (at 59515) by debbugs.gnu.org; 27 Nov 2022 21:15:00 +0000 Received: from localhost ([127.0.0.1]:44258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOzM-0000q5-At for submit@debbugs.gnu.org; Sun, 27 Nov 2022 16:15:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOzL-0000pz-4Q for 59515@debbugs.gnu.org; Sun, 27 Nov 2022 16:14:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozOzD-0000sO-R1; Sun, 27 Nov 2022 16:14:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=rI+5MwahhN7bILQs8lr1P2WLVXTpHn37S4ggyaLh2v8=; b=OjdJ8EDnKJgY5wqxLm+K neS3xzK+iOZqsVucCvNt1bPrI3s2hPt3d4dkzBypBx1WsvNBhMeVChYyiQ2D/75UySdWXP7z3K7F9 X58dZn/OXPBYRXwyyN3dQCtuCiSqSslPmpm0KHXpZs6RV6B+r+xCX2zRmaL5qEd8fX5jsYvj3gbki gRvOY3V3q4lR6qz5G8DllnnUTTZ2lMke/yf/o7UlZz+vkxANGnhDbTVdJOWSapzlt2mR4PLwLDZWJ wA/B3H6vNsLFhPbDRHB8h0hyYpDfB/mWGDFdtA9Uorp9+ZtZ9yoMhq91fwvYbYUbPHkDk2arllbYx AhoWeMRUhb5JsA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozOzD-0002LP-Eg; Sun, 27 Nov 2022 16:14:51 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <82b04209-e3ec-a854-314e-d3c77ad14ac4@web.de> Date: Sun, 27 Nov 2022 22:14:48 +0100 In-Reply-To: (Jonathan Brielmaier's message of "Fri, 25 Nov 2022 09:56:00 +0100") Message-ID: <87a64c5cc7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669583726; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rI+5MwahhN7bILQs8lr1P2WLVXTpHn37S4ggyaLh2v8=; b=Q3qkQQxNKZedyv4eY2ZUR4WIy8+Bsn16Lv52fAB3EHEh96AeDeDF3cAp1O8CMBg3jceQbr sqnmcnjkTv0oNUnqo1qLMWuV7AVjwXQPfs1SlNG16cBd3H2qT2e9vvcxDQqPIUceqhUM+P Y8gGjY1aCU5LEEzuJQ6tWk51KgCpQJDNWP+W6K4LloQ9vgWKX7zJp/D6IZj6TTfevRiGiY yda8bDKile19Njddp5cQ1qoTLMht2aHQE4FuA1vKzrg64h9BqrV+5+yeLfEg76YW8lBOIp Xt4M82mARDq9D50mVRZmB4rMe6pSm1tcehUBrVo8rQescxCamxnix1rw/wPeIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669583726; a=rsa-sha256; cv=none; b=KW+vw+wizhpzj1eVBU5paLeiglKvZD+pzba0CP4WIUJR8OAS0s0Tv41mil4ryHIFRk2Rd8 36X8hlmObeMV4Mwr5zdBP5UAjTCmkwOKqMUgse6BQ966rBlWzgP7Z4m91hg+XI4YbFSvKm Rw0nwChH1HQhsweRaI5yaIBykgpOjOtr17xEWfmWqBqgqH8vicXSpK5J79kUxfoGLKDwJB uMRhNuolJLQrbUiy3gSyIsFT5IqpYIbeEFieo4n76G3TJauow6A00iAWqSyZCvEJ5UlsX8 pQ2VdzIOI559eea433MKG+8rDrrmwGaqjS3g4zG+dYZJ0n5UioIz2FKE+LXYUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=OjdJ8EDn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=OjdJ8EDn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 639633BDDB X-Spam-Score: -3.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: buc28/2jYEiY Jonathan Brielmaier skribis: > I added `(shepherd-requirement '(radicale))` to my nginx-configuration. > Sadly the issue is not fixed, the situation is the same as before. > > I assume that radicale takes a fracture of a second to start. And nginx > starts faster up. See this small experiment: That looks like a bug in the radicale service: there=E2=80=99s no synchronization upon startup: --8<---------------cut here---------------start------------->8--- (list (shepherd-service (provision '(radicale)) (documentation "Run the radicale daemon.") (requirement '(networking)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/radicale") "-C" #$config-file) #:user "radicale" #:group "radicale")) (stop #~(make-kill-destructor)))) --8<---------------cut here---------------end--------------->8--- It should wait for a PID file or be started as a systemd or inetd service. That way, we=E2=80=99d be sure that shepherd considers it started= once it=E2=80=99s really listening for input. A quick grep in the source sugges= ts it creates a PID file somewhere. HTH! Ludo=E2=80=99.