Bugs item #1827316, was opened at 2007-11-06 20:27
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=1827316&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: macosx-specific
Group: version 3.0.6
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: David Schmidt (david__schmidt)
Summary: startup one OSX Leopard fails w/ clean install
Initial Comment:
installed Privoxy 3.0.6 on new OSX 10.5 Leopard system
when attempting to start it the following is reported
sudo SystemStarter start Privoxy
Password:
Starting Privoxy
Nov 06 20:21:17 Privoxy(00000040) Fatal error: User privoxy not found.
Nov 06 20:21:17 Privoxy(00000040) Fatal error: User privoxy not found.
contact me via : tell.jee@...
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2008-05-19 19:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: mark miller (markm68k)
Date: 2008-02-07 14:18
Message:
Logged In: YES
user_id=1998998
Originator: NO
yes, there is a plan to update the Mac OS X binary to 3.0.8. it should be
ready soon. check back later this weekend.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-02-07 14:15
Message:
Logged In: NO
Are you plan to update the OSX binary to the current version?
----------------------------------------------------------------------
Comment By: Steven (smkolins)
Date: 2007-12-04 12:01
Message:
Logged In: YES
user_id=1439894
Originator: NO
I reviewed the entries and attempted to use the scripts suggested
including manually creating the _privoxy user (I think the _ makes it a
non-login user?) but the last hurdle seems to be that the startup service
cannot use the _privoxy user to create the pid file:
StevensABSS9317752:~ smkolins$ SystemStarter -vn start
PrivoxyStarting privacy enhancing proxy
Dec 04 14:53:41.849 Privoxy(00000080) Info: Privoxy version 3.0.7
Dec 04 14:53:41.849 Privoxy(00000080) Info: Program name:
/Library/Privoxy/privoxy
Dec 04 14:53:41.850 Privoxy(00000080) Info: can't open pidfile
'/Library/Privoxy/privoxy.pid': Permission denied
Dec 04 14:53:41.850 Privoxy(00000080) Fatal error: Cannot setgid():
Insufficient permissions.
I started pointing the pid file to the default location of /var/run/ but
got the same lack of permisison. I did reset the ownership of
/Library/Privoxy to _privoxy. For example I can run this command without
error:
sudo -u _privoxy touch /Library/Privoxy/privoxy.pid
Suggestions?
BTW the original startup script had a weird error when I used my 10.4.11
system and updated it. It complained about an unbound variable though the
startup script in the /Library/Privoxy folder worked (making privoxy run as
root.) But after much round about it seems that something was cascading the
error - Airport daemon monitoring wouldn't kick in. And then I tried
altering the startup item script for privoxy based I did get it to the
point it worked but then Clamd complained about an unbound variable even
though it was working fine before I changed the prixoxy startup script. But
then the Airport daemon started working!
----------------------------------------------------------------------
Comment By: Steven (smkolins)
Date: 2007-12-03 13:49
Message:
Logged In: YES
user_id=1439894
Originator: NO
I have a different error. I built from cvs for 3.0.7 on 10.4.11 and then
got a 10.5 machine and installed the package the got built. It installed ok
but on initial launch says:
dyld: Library not loaded: /usr/local/lib/libpcre.0.dylib
Referenced from: /Library/Privoxy/privoxy
Reason: image not found
/Users/<myshortname>/privoxy/osxsetup/StartPrivoxy.command: line 11: 1585
Trace/BPT trap sudo $INSTALLDIR/privoxy --pidfile $pidfile config
When I tried to build on 10.5 it gives:
StevensABSS9317752:current smkolins$ cd
/Users/<myshortname>/privoxy/osxsetup/StevensABSS9317752:osxsetup smkolins$
/Users/<myshortname>/privoxy/osxsetup/build-ub autoheader: WARNING: Using
auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced,
see the
autoheader: WARNING: documentation.
checking build system type... i386-apple-darwin9.1.0
checking host system type... i386-apple-darwin9.1.0
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
rm -f a.out actions.o cgi.o cgiedit.o cgisimple.o deanimate.o encode.o
errlog.o filters.o gateway.o jbsockets.o jcc.o killpopup.o list.o loadcfg.o
loaders.o miscutil.o parsers.o ssplit.o urlmatch.o pcrs.o privoxy
default.action `find . -name TAGS -o -name tags` config.base config.tmp
gcc -c -pipe -O2 -Dunix -DOSX_DARWIN -Wall actions.c -o actions.o
In file included from actions.c:240:
project.h:619:22: error: pcre.h: No such file or directory
In file included from project.h:624,
from actions.c:240:
pcrs.h:165: error: syntax error before ‘pcre’
pcrs.h:165: warning: no semicolon at end of struct or union
pcrs.h:166: warning: type defaults to ‘int’ in declaration of
‘hints’
pcrs.h:166: warning: data definition has no type or storage class
pcrs.h:171: error: syntax error before ‘}’ token
pcrs.h:171: warning: type defaults to ‘int’ in declaration of
‘pcrs_job’
pcrs.h:171: warning: data definition has no type or storage class
pcrs.h:179: error: syntax error before ‘*’ token
pcrs.h:179: warning: type defaults to ‘int’ in declaration of
‘pcrs_compile_command’
pcrs.h:179: warning: data definition has no type or storage class
pcrs.h:180: error: syntax error before ‘*’ token
pcrs.h:180: warning: type defaults to ‘int’ in declaration of
‘pcrs_compile’
pcrs.h:180: warning: data definition has no type or storage class
pcrs.h:181: error: syntax error before ‘*’ token
pcrs.h:182: error: syntax error before ‘*’ token
pcrs.h:185: error: syntax error before ‘*’ token
pcrs.h:185: error: syntax error before ‘*’ token
pcrs.h:185: warning: type defaults to ‘int’ in declaration of
‘pcrs_free_job’
pcrs.h:185: warning: data definition has no type or storage class
pcrs.h:186: error: syntax error before ‘*’ token
pcrs.h:204: error: syntax error before ‘*’ token
pcrs.h:204: warning: type defaults to ‘int’ in declaration of
‘pcrs_compile_dynamic_command’
pcrs.h:204: warning: data definition has no type or storage class
project.h:635:27: error: pcreposix.h: No such file or directory
In file included from actions.c:240:
project.h:911: error: syntax error before ‘regex_t’
project.h:911: warning: no semicolon at end of struct or union
project.h:912: warning: type defaults to ‘int’ in declaration of
‘tag_regex’
project.h:912: warning: data definition has no type or storage class
project.h:913: error: syntax error before ‘}’ token
project.h:1176: error: array type has incomplete element type
project.h:1462: error: array type has incomplete element type
project.h:1486: error: array type has incomplete element type
project.h:1533: error: syntax error before ‘pcrs_job’
project.h:1533: warning: no semicolon at end of struct or union
project.h:1537: error: conflicting types for ‘next’
pcrs.h:170: error: previous declaration of ‘next’ was here
project.h:1538: error: syntax error before ‘}’ token
actions.c: In function ‘update_action_bits_for_tag’:
actions.c:964: warning: implicit declaration of function ‘regexec’
make: *** [actions.o] Error 1
and stops.
Suggestions?
----------------------------------------------------------------------
Comment By: Mathew Hennessy (mathewhennessy)
Date: 2007-11-30 09:38
Message:
Logged In: YES
user_id=1125424
Originator: NO
(err, the page I saw for this bug must have been cached :p)
----------------------------------------------------------------------
Comment By: Mathew Hennessy (mathewhennessy)
Date: 2007-11-30 09:35
Message:
Logged In: YES
user_id=1125424
Originator: NO
I get this error as well, and there is an entry in /etc/passwd . The OS X
installer automatically creates it if it's not there.
bash-3.2# SystemStarter -vn start Privoxy
Starting Privoxy
Nov 30 12:34:52 Privoxy(00000068) Fatal error: User privoxy not found.
Nov 30 12:34:52 Privoxy(00000068) Fatal error: User privoxy not found.
bash-3.2# grep privoxy /etc/passwd
privoxy:*:100:100:Privoxy Daemon:/var/empty:/usr/bin/false
bash-3.2#
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-11-25 11:49
Message:
Logged In: NO
Netinfo has been replaced with Directory Services and as a result, I wrote
the following script to create the necessary "privoxy" user and group.
==== BEGIN ====
#!/bin/bash
dscl /Local/Default -create /Groups/_privoxy
dscl /Local/Default -append /Groups/_privoxy RecordName privoxy
dscl /Local/Default -create /Groups/_privoxy Password *
dscl /Local/Default -create /Groups/_privoxy PrimaryGroupID 601
dscl /Local/Default -create /Groups/_privoxy RealName "privoxy users"
dscl /Local/Default -create /Users/_privoxy
dscl /Local/Default -append /Users/_privoxy RecordName privoxy
dscl /Local/Default -create /Users/_privoxy NFSHomeDirectory /var/empty
dscl /Local/Default -create /Users/_privoxy Password *
dscl /Local/Default -create /Users/_privoxy PrimaryGroupID 601
dscl /Local/Default -create /Users/_privoxy RealName "privoxy server"
dscl /Local/Default -create /Users/_privoxy UniqueID 601
dscl /Local/Default -create /Users/_privoxy UserShell /usr/bin/false
==== END ====
You must use the "sudo" command to execute the above script in order to
create the new user and group.
Please feel free to use this in the official distribution of privoxy.
contact me: markm68k@...
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-11-25 11:36
Message:
Logged In: NO
I have yet to convert my custom StartupItem to the Apple-preferred
LaunchDaemon. However, my StartupItem still works perfectly in Tiger and
Leopard. Here is the code:
==== BEGIN ====
#!/bin/bash
##
# Privoxy
##
. /etc/rc.common
PRIVOXY_PATH=/usr/local/sbin
PRIVOXY_PIDFILE=/var/run/privoxy.pid
PRIVOXY_USER=privoxy
PRIVOXY_CONFIG=/usr/local/etc/privoxy/config
PRIVOXY_LOG=/var/log/privoxy.log
StartService ()
{
if [ -x ${PRIVOXY_PATH}/privoxy ]; then
if ! pid=$(GetPID privoxy); then
echo "Starting privacy enhancing proxy"
${PRIVOXY_PATH}/privoxy --pidfile ${PRIVOXY_PIDFILE} --user
${PRIVOXY_USER} ${PRIVOXY_CONFIG} >> ${PRIVOXY_LOG} 2>&1
fi
fi
}
StopService ()
{
if pid=$(GetPID privoxy); then
echo "Stopping privacy enhancing proxy"
kill -TERM "${pid}"
else
echo "privoxy is not running."
fi
}
RestartService ()
{
if pid=$(GetPID privoxy); then
echo "Restarting privacy enhancing proxy"
kill -HUP "${pid}"
else
StartService
fi
}
RunService "$1"
==== END ====
Please feel free to use this in the official distribution of privoxy.
contact me: markm68k@...
----------------------------------------------------------------------
Comment By: pornel (pornel)
Date: 2007-11-14 04:04
Message:
Logged In: YES
user_id=269973
Originator: NO
On Leopard this command seems to do the trick:
sudo dscl localhost -create /Local/Default/Users/privoxy
and then you have to correct permissions in /Library/Privoxy to let
privoxy read config, etc.
----------------------------------------------------------------------
Comment By: pornel (pornel)
Date: 2007-11-14 03:35
Message:
Logged In: YES
user_id=269973
Originator: NO
AFAIK Leopard had scrapped old netinfo manager, so installer needs to use
a different method for creating users (or just use nobody).
BTW: I couldn't find user/group setting in config.
----------------------------------------------------------------------
Comment By: Hal Burgiss (hal9)
Date: 2007-11-07 03:24
Message:
Logged In: YES
user_id=322640
Originator: NO
I am not familiar with the osx installation scripts, but a typical privoxy
installation has a user named 'privoxy' that it runs as, so as not to run
with root privileges. You can of course create a privoxy user, or you can
privoxy as another user that exists on the system (eg 'nobody'), to
workaround this problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=1827316&group_id=11118
|