#1530 Privoxy only logs fatal error after you click ok

3.0.19
closed
5
2012-12-09
2012-12-07
Adriaan
No

Dear,

I have the version 3.0.19 of privoxy running on windows server 2008 and 2012. It really works like a charm and I'm very happy with it.
There is only one serious issue, there is a scraper running and when a currently used proxy stops working, it replaces the proxy with another IP and adapts the user.actions file with the new ip address. 99 percent of the time this works fine. But sometimes privoxy can't read the action file (I suppose because it was edited while privoxy tried to load it) so then privoxy displays the Error message. Then I have to click oke and restart privoxy and everything works fine again.

I want to run a program that checks the privoxy log file and restarts privoxy when he sees the fatal error message. But the problem is that the error message only gets logged after you click oke on the error message box. So there is a manual intervention required that I want to avoid.

Is there a way to disable this error message and just let Privoxy quit and log the error? Or can you let privoxy automatically restart? Or is it possible to configure privoxy to check the .action files again if he finds an error?

Thanks a lot,

Adriaan

Discussion

  • Fabian Keil

    Fabian Keil - 2012-12-07

    Thanks for the report.

    I think a better approach would be to copy the action file, edit the copy and rename/move the copy to the original file. This should prevent Privoxy from seeing an incomplete file as the rename/move should be an atomic operation.

    Having said that, I agree that the GUI message should appear after the log message has been written and will change that before the next release.

    Completely disabling the GUI message currently isn't possible without recompiling Privoxy without GUI support.

    Dealing with invalid configuration files more gracefully is already on the TODO list (#22, #23):
    http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/TODO?view=markup

     
  • Fabian Keil

    Fabian Keil - 2012-12-07
    • assigned_to: nobody --> fabiankeil
    • status: open --> pending
     
  • Adriaan

    Adriaan - 2012-12-07
    • status: pending --> open
     
  • Adriaan

    Adriaan - 2012-12-07

    Hi Fabian,

    Thanks for the quick reply, my workaround is currently to check the log file every two minutes to see when the last action happened. But your proposal is a lot better, guess I'll have to play with MS powershell a bit to see how to best do that operation. I have a second question, if I store files to a txt file and store it as an .action file then it always gives an error. I attached an example.

     
  • Adriaan

    Adriaan - 2012-12-07

    Faulty action file

     
  • Fabian Keil

    Fabian Keil - 2012-12-07

    The file you attached starts with an UTF-8 Unicode byte order mark which Privoxy doesn't support.

    If you remove the first three bytes or "save as ASCII" the file, Privoxy should stop complaining.

     
  • Fabian Keil

    Fabian Keil - 2012-12-07
    • status: open --> pending
     
  • Adriaan

    Adriaan - 2012-12-07

    Okay great, Thanks a lot. I really appreciate the quick feedback, service for privoxy is better than with most shareware tools :)

     
  • Adriaan

    Adriaan - 2012-12-07
    • status: pending --> open
     
  • Fabian Keil

    Fabian Keil - 2012-12-09

    You're welcome.

     
  • Fabian Keil

    Fabian Keil - 2012-12-09
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks