From: SourceForge.net <no...@so...> - 2012-04-19 02:10:13
|
Support Requests item #3516868, was opened at 2012-04-11 07:53 Message generated for change (Comment added) made by diem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3516868&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: startup Group: 3.0.19 >Status: Pending Priority: 5 Private: No Submitted By: Lorenzo (laspada) Assigned to: Ian Silvester (diem) Summary: Privoxy started but no connexion Initial Comment: I have privoxy starting normaly at boot (.plist in LaunchDaemon) but connexion will be refused until I restart privoxy manualy using the following command 'sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config'. Before using the command line, log shows: [...] a3\xbf\xe2D\xad\x08\xfb\xe8Q\xcd@Oh\x05\x84\xe6\xd3\xdf\xc4\x04\x11\x84\x9c\xa4\x10zE\x801\xf9\xd8x\xacl\xce\xee\xd2A&\xa9t\x1a\xf2\x99\x91npqT\x1e\xfa\x04}\xdf\xc9\x85O8\xaa{\xcc\x0b\x11\xaa\x17\x03\x01\x00z\xe0\x80\xdd\x1ez\x13\x18\xcea\x9d\x8f}2\x11\xe4\xbe\xaa\x9a=\x83\x82[\xbe\xf3\xd4x\x17\x871R/)=\x88\x8c\x02jb\x8cQ\xa3&\x08\x9c\xb5\x7f2t\xde\x9a\x07\x1a\xb8\x17\x08\xec\xc9&X\xdd\x18\xf9\xb9\x16\xefb\xa6\xcc\x91\xa5\xf2L\xe8-\xbb8UV\x86\xb1k\xfb\x0d\x16\x19(V\xb8>\x89os)\xf3\x1aV\x08{\xb8\xb8O\xc8x\x91C\x0a[i6\x02\xbeP\xda\x9evS\xdd\xfd\xdb\x11w\xd8 127.0.0.1 - - [11/Apr/2012:16:34:28 +0200] "CONNECT phx-sync465.services.mozilla.com:443 HTTP/1.1" 200 3631 2012-04-11 16:34:28.796 00000118 Connect: The connection on server socket 6 to phx-sync465.services.mozilla.com isn't reusable. Closing. Server connection: keep-alive 0, tainted: 0, socket alive 0. Client connection: socket alive: 1. Server timeout: 5. Configuration file change detected: 0 2012-04-11 16:35:51.675 00000368 Info: exiting by signal 15 .. bye After entering the command line in the terminal, privoxy will work as expected. [...] 2012-04-11 16:51:41.831 00000220 Info: Loading actions file: /usr/local/etc/privoxy/user.action 2012-04-11 16:51:41.850 00000220 Connect: Initialized 100 socket slots. 2012-04-11 16:51:41.851 00000220 Info: Listening on port 8118 on IP address 127.0.0.1 2012-04-11 16:51:41.851 00000220 Connect: Listening for new connections ... Why is it not working at the first time? I don't understand what's in the log. Thank you (Mac OS X 10.7.x) ---------------------------------------------------------------------- >Comment By: Ian Silvester (diem) Date: 2012-04-18 19:10 Message: Hi, Well obviously there's some interaction between your .plist and your auto-loaded actions files. Again I'd suggest trying the .plist from the OS X binary distribution (which I've attached), since it does a better job of taking advantage of OS X features than the one you are currently using (launching using the correct user and group directly rather than telling privoxy to drop privs via a command line option, does not write pid file (do you really need it?)). It also uses the --no-daemon option, which is correct since you would want launchd to remain privoxy's "parent". Finally, regarding launchctl, if the launched process terminates of it's own volition you would need to use: sudo launchctl unload /Library/LaunchDaemons/org.privoxy.plist first before relaunching. Ian ---------------------------------------------------------------------- Comment By: Lorenzo (laspada) Date: 2012-04-18 16:58 Message: Hi, Here is the plist file I'm using which had worked until recently on the same version of Privoxy. The sudo launchctl load /Library/LaunchDaemons/org.privoxy.plist says that it is already loaded. But no connexion. Otherwise, the command line here 'sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config' will start privoxy. I'm just surprised the .plist doensn't work anymore. Thank you for your support. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.privoxy.launchd.privoxy</string> <key>ProgramArguments</key> <array> <string>/usr/local/sbin/privoxy</string> <string>--user</string> <string>privoxy</string> <string>--pidfile</string> <string>/var/run/privoxy.pid</string> <string>/usr/local/etc/privoxy/config</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> ---------------------------------------------------------------------- Comment By: Ian Silvester (diem) Date: 2012-04-12 09:02 Message: Okay, so really what you're saying is that it runs when called from the command line, but not when run from launchd. Could you attach your launchd plist to this ticket? I'd recommend also downloading the OS X distribution from here, since that includes a launchd plist that works well which you might use as a template. Finally, you could try launching Privoxy via your launchd plist but from the command line, as follows: launchctl load <path and name of your plist> You'd need to do this as the user who owns the plist, so likely you'd need to run launchctl via sudo. ---------------------------------------------------------------------- Comment By: Lorenzo (laspada) Date: 2012-04-12 00:33 Message: Hi, thank you for your support. I have installed Privoxy from source as usual and it used to work fine. I have this problem since I added a few action files, which are downloaded and installed automatically using a script. (the script download some blacklist, convert them in .action files and add a line with the corresponding .action file name in privoxy config). If I remove the additional action files, Privoxy will start and load correctly. If I run the script and have the action files installed, I have this problem. Note that if privoxy is started manually with additional action files installed, it will work correctly, action files will be loaded and do their job as expected, filtering and blocking unwanted sites. I just don't understand why Privoxy doesn't start and load at first stand when additional action files are installed. Is there anything I can try to fix? Maybe a shell scipt with the command line loading at boot might just start Privoxy, but I would rather stay with the .plist. ---------------------------------------------------------------------- Comment By: Ian Silvester (diem) Date: 2012-04-11 19:05 Message: Hi, If you restart it using the supplied script (in /Applications/Privoxy) run as sudo does it work correctly? Also, do you have the most recent installer - a couple of bugs have been fixed along the way. Cheers, Ian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3516868&group_id=11118 |