LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2009, 04:32 AM   #1
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Rep: Reputation: 17
Privoxy doesn't always start on boot


Sometimes when I boot my PC, privoxy starts up, and sometimes it doesn't. Not a big problem. It is easy to start manually. But it's damn annoying. I am using Ubuntu 9.10. It didn't happen in earlier versions of Ubuntu. Anyone know how to make it start every time I boot?
 
Old 11-16-2009, 06:13 PM   #2
werewolfy
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
If you can start it by hand without error, it's difficult to say why it does not start on boot without any additional info.

Did you try to activate all logging levels and did you activate the logfile?
Did you look into the error file?
Both files usually reside in /var/log/privoxy/ and the configuration is in /etc/privoxy/config

If you get an error message from there, come back here and post it.
 
Old 11-24-2009, 01:53 AM   #3
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Original Poster
Rep: Reputation: 17
I found a message in the logfile:

Nov 24 08:02:54.331 7f46556f16f0 Fatal error: can't bind to localhost:8118: The hostname is not resolvable

I don't understand what this means. localhost resolves without problem when I try myself, and i've got nothing else running on port 8118.
 
Old 11-24-2009, 02:50 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
In /etc/privoxy/config,
try to change
Code:
localhost:8118
to
Code:
127.0.0.1:8118
 
Old 11-25-2009, 04:35 AM   #5
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Original Poster
Rep: Reputation: 17
I think that solved it, but i have to wait a few weeks and see. Thanks anyway
 
Old 11-26-2009, 08:29 AM   #6
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Original Poster
Rep: Reputation: 17
Nope. Still got the same problem. For some strange reason it can't resolve the hostname 127.0.0.1:8118
Here is the message from the logfile:

Nov 26 14:28:25.998 7f660f6796f0 Fatal error: can't bind to 127.0.0.1:8118: The hostname is not resolvable
 
Old 11-26-2009, 10:04 AM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
As this thread does not appear to be server-specific, I have moved it to "Linux Software" so it may get the exposure it deserves.

Sasha

Last edited by GrapefruiTgirl; 11-26-2009 at 10:05 AM.
 
Old 12-02-2009, 07:04 AM   #8
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Original Poster
Rep: Reputation: 17
I suddenly noticed that this problem does not only affect privoxy. My mediaserver (MediaTomb) had the same problem today.
 
Old 12-02-2009, 11:31 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Suppen View Post
I suddenly noticed that this problem does not only affect privoxy. My mediaserver (MediaTomb) had the same problem today.
It may be that networking sometimes takes so long to set up that it is not finished by the time the Privoxy and MediaTomb startup scripts run. You could try deleting the /etc/rc3.d/S20privoxy symlink and recreating it as S98privoxy -- not much later in elaspsed time during boot but maybe enough given that you do not always get the problem. If it improves the situation but does not completely fix it please ask again.

Caveat: the technique would mean that Privoxy itself is not set up until later in the boot process; that may have undesirable effects (but probably only if you log on to the desktop and browse to a dodgy web page at the speed of lightning).
 
Old 12-25-2009, 08:50 PM   #10
Suppen
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Linux Mint
Posts: 35

Original Poster
Rep: Reputation: 17
Hm. Didn't fix it, but it seems to start more often though. Not sure if I did it right either. I just renamed /etc/rc3.d/S20privoxy to S98privoxy.
 
Old 12-26-2009, 09:41 AM   #11
werewolfy
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by Suppen View Post
Hm. Didn't fix it, but it seems to start more often though. Not sure if I did it right either. I just renamed /etc/rc3.d/S20privoxy to S98privoxy.
If the name of the link starts with SXX (S98 in this case) and points to the right script in init.d (which should both be the case if you just renamed it), you did it right.

Perhaps you should rename the links (where present) in all the rcX.d-directories in such a case, to have consistent behaviour across all run levels and in case run level 3 (rc3.d) should not be your default run level (it normally is on most standard distributions, though).

Did you try looking into the various system log files in /var/log/ after you encountered this problem on startup?
Perhaps you are able get information on some networking problem earlier in the boot sequence.
 
  


Reply

Tags
privoxy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Privoxy doesn't start at boot Amdx2_x64 Linux - Newbie 3 08-10-2008 07:16 AM
Privoxy - "Privoxy is not being used" from http://www.privoxy.org/config/ slimjim Linux - Networking 1 03-12-2007 11:07 AM
Create a boot CD (start up disc) to reinstall boot loader Red Hat 9 johnnylinux Linux - Laptop and Netbook 2 08-03-2006 10:19 AM
Privoxy won't start on boot (Slackware) bleedingturnips Linux - Software 2 07-13-2006 07:51 AM
privoxy start up script thegreatgatsby Linux - Software 4 05-28-2004 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration