GNU bug report logs -
#32934
privoxy daemon fails to start
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32934 in the body.
You can then email your comments to 32934 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#32934
; Package
guix
.
(Thu, 04 Oct 2018 20:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Pierre Neidhardt <mail <at> ambrevar.xyz>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 04 Oct 2018 20:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Currently privoxy can only be started in non-daemon mode:
--8<---------------cut here---------------start------------->8---
$ privoxy --no-daemon /gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.26/etc/privoxy/config
--8<---------------cut here---------------end--------------->8---
In daemon mode, we get the following error:
--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=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fed1647ea10) = 11406
[pid 11406] set_robust_list(0x7fed1647ea20, 24 <unfinished ...>
[pid 11405] nanosleep({tv_sec=1, tv_nsec=0}, <unfinished ...>
[pid 11406] <... set_robust_list resumed> ) = 0
[pid 11406] setsid() = 11406
[pid 11406] close(0) = 0
[pid 11406] close(1) = 0
[pid 11406] openat(AT_FDCWD, "/dev/null", O_RDONLY) = 0
[pid 11406] openat(AT_FDCWD, "/dev/null", O_WRONLY) = 1
[pid 11406] chdir("/") = 0
[pid 11406] stat("/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.26/etc/privoxy/config", {st_mode=S_IFREG|0444, st_size=68434, ...}) = 0
[pid 11406] brk(NULL) = 0x6b2000
[pid 11406] brk(0x6d3000) = 0x6d3000
[pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.26/etc/privoxy/config", O_RDONLY) = 3
[pid 11406] fstat(3, {st_mode=S_IFREG|0444, st_size=68434, ...}) = 0
[pid 11406] read(3, "# Sample Configuration Fi"..., 4096) = 4096
[pid 11406] read(3, "# The best all purpose solu"..., 4096) = 4096
[pid 11406] read(3, "et:\n#\n# The templates are a"..., 4096) = 4096
[pid 11406] read(3, "#\n# Default value:\n#\n# Uns"..., 4096) = 4096
[pid 11406] read(3, "tten to the network\n# deb"..., 4096) = 4096
[pid 11406] read(3, " machines (e.g. on\n# your l"..., 4096) = 4096
[pid 11406] read(3, "(e.g Java) is also\n# capabl"..., 4096) = 4096
[pid 11406] read(3, "[:port][/dst_masklen]]\n#\n# "..., 4096) = 4096
[pid 11406] read(3, "\n# an IPv4 address (not sup"..., 4096) = 4096
[pid 11406] read(3, "roxy but are made directly to th"..., 4096) = 4096
[pid 11406] read(3, "voxy and Tor, both running on th"..., 4096) = 4096
[pid 11406] read(3, "ifies:\n#\n# Whether requests"..., 4096) = 4096
[pid 11406] read(3, "ing on the client connection is "..., 4096) = 4096
[pid 11406] read(3, "he \"No server or forwarder data\""..., 4096) = 4096
[pid 11406] read(3, " resources are being blocke"..., 4096) = 4096
[pid 11406] read(3, " |\n# |-----------"..., 4096) = 4096
[pid 11406] read(3, " client's IP address from\n# "..., 4096) = 2898
[pid 11406] read(3, "", 4096) = 0
[pid 11406] close(3) = 0
[pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.26/var/log/privoxy/logfile", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied)
[pid 11406] close(2) = 0
[pid 11406] openat(AT_FDCWD, "/gnu/store/d3q0nz8568j32gslkc3lskxpzmimcx9z-privoxy-3.0.26/var/log/privoxy/logfile", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied)
[pid 11406] exit_group(1) = ?
[pid 11406] +++ exited with 1 +++
<... nanosleep resumed> {tv_sec=0, tv_nsec=998431322}) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11406, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
restart_syscall(<... resuming interrupted nanosleep ...>) = 0
wait4(11406, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 11406
exit_group(1) = ?
+++ exited with 1 +++
--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.
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#32934
; Package
guix
.
(Mon, 15 Jun 2020 09:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32934 <at> debbugs.gnu.org (full text, mbox):
Fixes <https://issues.guix.info/32934>.
* gnu/packages/tor.scm (privoxy)[arguments]<configure-flags>: Add
'localstatedir'.
<phases>: 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 <rhelling <at> mykolab.com>
;;; Copyright © 2018 Ricardo Wurmus <rekado <at> elephly.net>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll <at> gmail.com>
+;;; Copyright © 2020 Brice Waegeneire <brice <at> waegenei.re>
;;;
;;; 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
Information forwarded
to
bug-guix <at> gnu.org
:
bug#32934
; Package
guix
.
(Thu, 18 Jun 2020 07:41:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 32934 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks a lot!
Tested and pushed as e418c3d076ec301a2deda42568035d75f5ed174d.
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
bug closed, send any further explanations to
32934 <at> debbugs.gnu.org and Pierre Neidhardt <mail <at> ambrevar.xyz>
Request was from
Pierre Neidhardt <mail <at> ambrevar.xyz>
to
control <at> debbugs.gnu.org
.
(Thu, 18 Jun 2020 07:41:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 16 Jul 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.