From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 04 16:03:18 2018 Received: (at submit) by debbugs.gnu.org; 4 Oct 2018 20:03:18 +0000 Received: from localhost ([127.0.0.1]:37073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g89qA-0005fT-Iw for submit@debbugs.gnu.org; Thu, 04 Oct 2018 16:03:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g89q8-0005fA-Iy for submit@debbugs.gnu.org; Thu, 04 Oct 2018 16:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g89q1-0005eW-B8 for submit@debbugs.gnu.org; Thu, 04 Oct 2018 16:03:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g89q1-0005eN-65 for submit@debbugs.gnu.org; Thu, 04 Oct 2018 16:03:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g89q0-0007bf-1C for bug-guix@gnu.org; Thu, 04 Oct 2018 16:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g89pv-0005ay-To for bug-guix@gnu.org; Thu, 04 Oct 2018 16:03:07 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50837) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g89pv-0005ZF-Jh for bug-guix@gnu.org; Thu, 04 Oct 2018 16:03:03 -0400 X-Originating-IP: 88.190.253.40 Received: from mimimi (unknown [88.190.253.40]) (Authenticated sender: mail@ambrevar.xyz) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 66FDB60002 for ; Thu, 4 Oct 2018 20:03:00 +0000 (UTC) User-agent: mu4e 1.0; emacs 26.1 From: Pierre Neidhardt To: bug-guix@gnu.org Subject: privoxy daemon fails to start Date: Thu, 04 Oct 2018 22:02:59 +0200 Message-ID: <87d0spmqdo.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Currently privoxy can only be started in non-daemon mode: =2D-8<---------------cut here---------------start------------->8--- $ privoxy --no-daemon /gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3= .0.26/etc/privoxy/config =2D-8<---------------cut here---------------end--------------->8--- In daemon mode, we get the following error: =2D-8<---------------cut here---------------start------------->8--- $ strace -f privoxy /gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0= .26/etc/privoxy/config ... clone(/home/ambrevar/.guix-profile/bin/strace: Process 11406 attached child_stack=3DNULL, flags=3DCLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD= , child_tidptr=3D0x7fed1647ea10) =3D 11406 [pid 11406] set_robust_list(0x7fed1647ea20, 24 [pid 11405] nanosleep({tv_sec=3D1, tv_nsec=3D0}, [pid 11406] <... set_robust_list resumed> ) =3D 0 [pid 11406] setsid() =3D 11406 [pid 11406] close(0) =3D 0 [pid 11406] close(1) =3D 0 [pid 11406] openat(AT_FDCWD, "/dev/null", O_RDONLY) =3D 0 [pid 11406] openat(AT_FDCWD, "/dev/null", O_WRONLY) =3D 1 [pid 11406] chdir("/") =3D 0 [pid 11406] stat("/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.2= 6/etc/privoxy/config", {st_mode=3DS_IFREG|0444, st_size=3D68434, ...}) =3D 0 [pid 11406] brk(NULL) =3D 0x6b2000 [pid 11406] brk(0x6d3000) =3D 0x6d3000 [pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-p= rivoxy-3.0.26/etc/privoxy/config", O_RDONLY) =3D 3 [pid 11406] fstat(3, {st_mode=3DS_IFREG|0444, st_size=3D68434, ...}) =3D 0 [pid 11406] read(3, "# Sample Configuration Fi"..., 4096) =3D 4096 [pid 11406] read(3, "# The best all purpose solu"..., 4096) =3D 4096 [pid 11406] read(3, "et:\n#\n# The templates are a"..., 4096) =3D 4096 [pid 11406] read(3, "#\n# Default value:\n#\n# Uns"..., 4096) =3D 4096 [pid 11406] read(3, "tten to the network\n# deb"..., 4096) =3D 4096 [pid 11406] read(3, " machines (e.g. on\n# your l"..., 4096) =3D 4096 [pid 11406] read(3, "(e.g Java) is also\n# capabl"..., 4096) =3D 4096 [pid 11406] read(3, "[:port][/dst_masklen]]\n#\n# "..., 4096) =3D 4096 [pid 11406] read(3, "\n# an IPv4 address (not sup"..., 4096) =3D 4096 [pid 11406] read(3, "roxy but are made directly to th"..., 4096) =3D 4096 [pid 11406] read(3, "voxy and Tor, both running on th"..., 4096) =3D 4096 [pid 11406] read(3, "ifies:\n#\n# Whether requests"..., 4096) =3D 4096 [pid 11406] read(3, "ing on the client connection is "..., 4096) =3D 4096 [pid 11406] read(3, "he \"No server or forwarder data\""..., 4096) =3D 4096 [pid 11406] read(3, " resources are being blocke"..., 4096) =3D 4096 [pid 11406] read(3, " |\n# |-----------"..., 4096) =3D 4096 [pid 11406] read(3, " client's IP address from\n# "..., 4096) =3D 2898 [pid 11406] read(3, "", 4096) =3D 0 [pid 11406] close(3) =3D 0 [pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-p= rivoxy-3.0.26/var/log/privoxy/logfile", O_WRONLY|O_CREAT|O_APPEND, 0666) = =3D -1 EACCES (Permission denied) [pid 11406] close(2) =3D 0 [pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-p= rivoxy-3.0.26/var/log/privoxy/logfile", O_WRONLY|O_CREAT|O_APPEND, 0666) = =3D -1 EACCES (Permission denied) [pid 11406] exit_group(1) =3D ? [pid 11406] +++ exited with 1 +++ <... nanosleep resumed> {tv_sec=3D0, tv_nsec=3D998431322}) =3D ? ERESTART_R= ESTARTBLOCK (Interrupted by signal) =2D-- SIGCHLD {si_signo=3DSIGCHLD, si_code=3DCLD_EXITED, si_pid=3D11406, si= _uid=3D1000, si_status=3D1, si_utime=3D0, si_stime=3D0} --- restart_syscall(<... resuming interrupted nanosleep ...>) =3D 0 wait4(11406, [{WIFEXITED(s) && WEXITSTATUS(s) =3D=3D 1}], WNOHANG, NULL) = =3D 11406 exit_group(1) =3D ? +++ exited with 1 +++ =2D-8<---------------cut here---------------end--------------->8--- We probably need to patch privoxy so that it writes the logfile to /var/log/privoxy/logfile instead of inside the store. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlu2cfMACgkQm9z0l6S7 zH9S0Qf/QaW8HptJf7KQGKoIlrH7xBSrPMx0s8qdIINJMqGP9mjBUaR53910dpxA H/rO4j7xfkSnPHTySWQClzyRWFOG4ODt8LjWZ2AUazcydU5oo1ljpRqfpzMn9nr1 hhONRZThPlNF/jpqjyHM0GXSFCBE0AeKYOrcPMq3g+n/mbccsIdj3VZC1p/1L7nE KQMvq9fSEdfCUy3ulq0ZPa4Yz3J5Fr3543HlZEI+wbniEdQNqsm+O5+CcZWvPQgW ZkWrOLCD+h57qYl5C0xeHUkglKYhxc+S/+tnZodp0Q80ICl9aNRz4amxDNcNM7ct ODS9Zaqab4GzOXXMZaTuIiMkdkA3/g== =mLaA -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 15 05:41:44 2020 Received: (at 32934) by debbugs.gnu.org; 15 Jun 2020 09:41:44 +0000 Received: from localhost ([127.0.0.1]:45252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jklca-0002eU-Q9 for submit@debbugs.gnu.org; Mon, 15 Jun 2020 05:41:44 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:37897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jklcY-0002eH-Ov for 32934@debbugs.gnu.org; Mon, 15 Jun 2020 05:41:39 -0400 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay12.mail.gandi.net (Postfix) with ESMTPSA id B021520000F; Mon, 15 Jun 2020 09:41:31 +0000 (UTC) From: Brice Waegeneire To: Pierre Neidhardt Subject: [PATCH] gnu: privoxy: Fix default logging configuration. Date: Mon, 15 Jun 2020 11:41:22 +0200 Message-Id: <20200615094122.5629-1-brice@waegenei.re> X-Mailer: git-send-email 2.26.2 In-Reply-To: <87d0spmqdo.fsf@ambrevar.xyz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32934 Cc: 32934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Fixes . * gnu/packages/tor.scm (privoxy)[arguments]: Add 'localstatedir'. : Add 'patch-default-logging'. --- Hello Pierre, This patch should allow one to use privoxy's default configuration as is: --8<---------------cut here---------------start------------->8--- $ /gnu/store/1705l8br2bc4lvs7wf7mpzj4ss0zkl9c-privoxy-3.0.28/sbin/privoxy /gnu/store/1705l8br2bc4lvs7wf7mpzj4ss0zkl9c-privoxy-3.0.28/etc/privoxy/config $ echo $? 0 --8<---------------cut here---------------end--------------->8--- - Brice gnu/packages/tor.scm | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index 2f2623b0e6..19ab5cf374 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2017 Rutger Helling ;;; Copyright © 2018 Ricardo Wurmus ;;; Copyright © 2020 Vincent Legoll +;;; Copyright © 2020 Brice Waegeneire ;;; ;;; This file is part of GNU Guix. ;;; @@ -141,8 +142,28 @@ rejects UDP traffic from the application you're using.") ;; $out/etc/privoxy. #:configure-flags (list (string-append "--sysconfdir=" (assoc-ref %outputs "out") - "/etc/privoxy")) - #:tests? #f)) + "/etc/privoxy") + "--localstatedir=/var") + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-default-logging + (lambda _ + (with-fluids ((%default-port-encoding "ISO-8859-1")) + ;; Do not create /var/run nor /var/log/privoxy/logfile. + (substitute* "GNUmakefile.in" + (("(logfile \\|\\| exit )1" _ match) + (string-append match "0")) + (("(\\$\\(DESTDIR\\)\\$\\(SHARE_DEST\\)) \\\\" _ match) + match) + ((".*\\$\\(LOG_DEST\\) \\$\\(DESTDIR\\)\\$\\(PID_DEST\\).*") + "")) + ;; Disable logging in the default configuration to allow for + ;; non-root users using it as is. + (substitute* "config" + (("^logdir") "#logdir") + (("^logfile") "#logfile"))) + #t))))) (inputs `(("w3m" ,w3m) ("pcre" ,pcre) -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 18 03:40:30 2020 Received: (at 32934) by debbugs.gnu.org; 18 Jun 2020 07:40:30 +0000 Received: from localhost ([127.0.0.1]:52715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlp9y-0005Oq-5g for submit@debbugs.gnu.org; Thu, 18 Jun 2020 03:40:30 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:58069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlp9v-0005OY-Vg for 32934@debbugs.gnu.org; Thu, 18 Jun 2020 03:40:28 -0400 X-Originating-IP: 92.169.129.147 Received: from bababa (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2480C1C0008; Thu, 18 Jun 2020 07:40:20 +0000 (UTC) From: Pierre Neidhardt To: Brice Waegeneire Subject: Re: [PATCH] gnu: privoxy: Fix default logging configuration. In-Reply-To: <20200615094122.5629-1-brice@waegenei.re> References: <20200615094122.5629-1-brice@waegenei.re> Date: Thu, 18 Jun 2020 09:40:20 +0200 Message-ID: <877dw4yg7v.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks a lot! Tested and pushed as e418c3d076ec301a2deda42568035d75f5ed174d. -- Pierre Neidhardt https://ambrevar.xyz/ Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.197 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [217.70.183.197 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 32934 Cc: 32934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks a lot! Tested and pushed as e418c3d076ec301a2deda42568035d75f5ed174d. -- Pierre Neidhardt https://ambrevar.xyz/ Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.197 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [217.70.183.197 listed in wl.mailspike.net] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks a lot! Tested and pushed as e418c3d076ec301a2deda42568035d75f5ed174d. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl7rGmQACgkQm9z0l6S7 zH+gQAgAkIYxyt3Y0IXgo8JoipU4HHScffFPYj/Dv6AVPj36RUXAKczd38RkNgUV ehovs/o/R0mZxzI/dXCdSZ/J061ScKwHKMD9LztpzPmA5luElA5sIishWmaLAuZg m8tPo1u8MJNj192WGkPJowuBMHj7wFg1F6O1hGmZhc0uQmg8B8kimFWHGahmfJh4 qfE8ZQ674Oo33nlHTpBKX4KZ3zPQumgL2RIPymhfdM4aUWYbBiuQMkll9huwvYkW yJ9n8sM+1PDqvZJFStZr2uGsI9I1RocwZstnVQo8de0s3WY5npMz/erKsfbcMmdd uL1nrxXXzJUXFHaCWSwHjWpGhriu6A== =yFmn -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 18 03:40:50 2020 Received: (at control) by debbugs.gnu.org; 18 Jun 2020 07:40:50 +0000 Received: from localhost ([127.0.0.1]:52718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlpAI-0005Pa-G7 for submit@debbugs.gnu.org; Thu, 18 Jun 2020 03:40:50 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:58339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlpAH-0005PK-4Z for control@debbugs.gnu.org; Thu, 18 Jun 2020 03:40:49 -0400 X-Originating-IP: 92.169.129.147 Received: from bababa (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id C1469C0002 for ; Thu, 18 Jun 2020 07:40:42 +0000 (UTC) Date: Thu, 18 Jun 2020 09:40:42 +0200 Message-Id: <875zboyg79.fsf@ambrevar.xyz> To: control@debbugs.gnu.org From: Pierre Neidhardt Subject: control message for bug #32934 X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 32934 quit Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.198 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [217.70.183.198 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) close 32934 quit From unknown Sun Jun 22 00:17:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 Jul 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator