From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: bug#32934: 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" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g89qx-0007nK-JX for bug-guix@gnu.org; Thu, 04 Oct 2018 16:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g89qt-0006G6-DZ for bug-guix@gnu.org; Thu, 04 Oct 2018 16:04:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:32815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g89qs-0006FP-RV for bug-guix@gnu.org; Thu, 04 Oct 2018 16:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g89qs-0005ga-K1 for bug-guix@gnu.org; Thu, 04 Oct 2018 16:04:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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 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) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 32934@debbugs.gnu.org --=-=-= 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----- --=-=-=--