Received: (at 36388) by debbugs.gnu.org; 27 Jun 2019 15:22:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 11:22:02 2019 Received: from localhost ([127.0.0.1]:39266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hgWDp-0008NM-UY for submit <at> debbugs.gnu.org; Thu, 27 Jun 2019 11:22:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1hgWDn-0008N4-ML for 36388 <at> debbugs.gnu.org; Thu, 27 Jun 2019 11:21:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>) id 1hgWDi-0004a2-Gv; Thu, 27 Jun 2019 11:21:54 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=45802 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1hgWDc-0007Px-Ox; Thu, 27 Jun 2019 11:21:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: Robert Vollmert <rob@HIDDEN> Subject: Re: bug#36388: activation? References: <A8BEB5E8-9002-4BE4-8CA3-99AA90819851@HIDDEN> <AF2533FB-3879-44EC-97E9-1CEA16660456@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 27 Jun 2019 17:21:47 +0200 In-Reply-To: <AF2533FB-3879-44EC-97E9-1CEA16660456@HIDDEN> (Robert Vollmert's message of "Wed, 26 Jun 2019 20:23:23 +0200") Message-ID: <87r27fxddg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36388 Cc: 36388 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi, Robert Vollmert <rob@HIDDEN> skribis: > Could it be that the errors happen in the activation script, > but not when actually starting nginx? I see in the code that > we appear to pass a =E2=80=9C-p=E2=80=9D flag already when starting nginx; > maybe we should simply do the same when testing the config > during activation? Probably, that must be where the error comes from. Ludo=E2=80=99.
bug-guix@HIDDEN
:bug#36388
; Package guix
.
Full text available.Received: (at 36388) by debbugs.gnu.org; 26 Jun 2019 18:23:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 14:23:33 2019 Received: from localhost ([127.0.0.1]:37035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hgCZw-0005Gz-SQ for submit <at> debbugs.gnu.org; Wed, 26 Jun 2019 14:23:33 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:14886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rob@HIDDEN>) id 1hgCZw-0005Gj-5T for 36388 <at> debbugs.gnu.org; Wed, 26 Jun 2019 14:23:32 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 61499A102E for <36388 <at> debbugs.gnu.org>; Wed, 26 Jun 2019 20:23:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id dyoiu_b7zl3h for <36388 <at> debbugs.gnu.org>; Wed, 26 Jun 2019 20:23:25 +0200 (CEST) From: Robert Vollmert <rob@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: activation? Message-Id: <AF2533FB-3879-44EC-97E9-1CEA16660456@HIDDEN> Date: Wed, 26 Jun 2019 20:23:23 +0200 To: 36388 <at> debbugs.gnu.org X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36388 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Could it be that the errors happen in the activation script, but not when actually starting nginx? I see in the code that we appear to pass a =E2=80=9C-p=E2=80=9D flag already when starting = nginx; maybe we should simply do the same when testing the config during activation?=
bug-guix@HIDDEN
:bug#36388
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 Jun 2019 05:18:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 01:18:53 2019 Received: from localhost ([127.0.0.1]:34096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hg0Kb-0000Hn-4I for submit <at> debbugs.gnu.org; Wed, 26 Jun 2019 01:18:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:38104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rob@HIDDEN>) id 1hg0KY-0000Hd-BX for submit <at> debbugs.gnu.org; Wed, 26 Jun 2019 01:18:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60996) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <rob@HIDDEN>) id 1hg0KW-0007UW-FK for bug-guix@HIDDEN; Wed, 26 Jun 2019 01:18:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hg0KU-00071J-J1 for bug-guix@HIDDEN; Wed, 26 Jun 2019 01:18:47 -0400 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]:50612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hg0KT-0006tx-Co for bug-guix@HIDDEN; Wed, 26 Jun 2019 01:18:46 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 5C79F4F03F for <bug-guix@HIDDEN>; Wed, 26 Jun 2019 07:18:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 0cSmO1ZZLKuX for <bug-guix@HIDDEN>; Wed, 26 Jun 2019 07:18:39 +0200 (CEST) From: Robert Vollmert <rob@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: nginx startup logging error, at odds with documentation Message-Id: <A8BEB5E8-9002-4BE4-8CA3-99AA90819851@HIDDEN> Date: Wed, 26 Jun 2019 07:18:38 +0200 To: bug-guix@HIDDEN X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050:104:0:1:25:1 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) The documentation states: At startup, =E2=80=98nginx=E2=80=99 has not yet read its = configuration file, so it uses a default file to log error messages. If it fails to load its configuration file, that is where error messages are logged. After the configuration file is loaded, the default error log file changes as per configuration. In our case, startup error messages can be found in =E2=80=98/var/run/nginx/logs/error.log=E2=80=99, and after configuration = in =E2=80=98/var/log/nginx/error.log=E2=80=99. The second location can be = changed with the LOG-DIRECTORY configuration option. But I see: creating nginx log directory '/var/log/nginx' creating nginx run directory '/var/run/nginx' creating nginx temp directories = '/var/run/nginx/{client_body,proxy,fastcgi,uwsgi,scgi}_temp' nginx: [alert] could not open error log file: open() = "/gnu/store/byd116qs89b0am4zwjf4vjai7qlskvaw-nginx-1.17.0/logs/error.log" = failed (2: No such file or directory) It seems the documentation assumes nginx=E2=80=99s prefix directory is = /var/run/nginx instead of in the store. Some likely ways to improve this would be to = pass `-p /var/run/nginx` or `-g =E2=80=9Cerror_log = /var/log/nginx/error.log=E2=80=9D` as command line flags when starting nginx: $ /gnu/store/byd116qs89b0am4zwjf4vjai7qlskvaw-nginx-1.17.0/sbin/nginx -h nginx version: nginx/1.17.0 Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g = directives] Options: -?,-h : this help -v : show version and exit -V : show version and configure options then exit -t : test configuration and exit -T : test configuration, dump it and exit -q : suppress non-error messages during configuration = testing -s signal : send signal to a master process: stop, quit, reopen, = reload -p prefix : set prefix path (default: = /gnu/store/byd116qs89b0am4zwjf4vjai7qlskvaw-nginx-1.17.0/) -c filename : set configuration file (default: conf/nginx.conf) -g directives : set global directives out of configuration file
Robert Vollmert <rob@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#36388
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.