#1536 Max number of actionsfiles enabled ?

3.0.19
closed
Fabian Keil
5
2012-12-29
2012-12-28
ShelbyGT500
No

Hi,

I'm testing different actionsfiles on Privoxy 3.0.19.(IPCOP 1.4.21/Copfilter 0.85.3beta5). If i test in the same time 11 actionsfiles (match-all, default, user, and personnal other files) , Privoxy doesn't work, and works fine if there are only 10 files enabled, whichever I remove.
Is it possible to exceed 10 actionsfiles enabled in the same time? If yes, how to do ?

Regards

Discussion

  • Fabian Keil
    Fabian Keil
    2012-12-29

    Privoxy 3.0.19 has a hardcoded limit of 10 action files. If it's reached, Privoxy exits which a log message that explains how you can increase the limit.

    In Privoxy 3.0.20 (unreleased, available through CVS) the limit has been increased to 30.

     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    • assigned_to: nobody --> fabiankeil
    • status: open --> pending
     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    • status: pending --> open
     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    Hi,

    A big thank for your quick answer and your explanations.

    Unfortunatly, i already had a look at the log, and there is no description:

    "...
    2012-12-29 12:44:34.338 00004000 Info: Privoxy version 3.0.19
    2012-12-29 12:44:34.338 00004000 Info: Program name: /var/log/copfilter/default/opt/privoxy/default/sbin/privoxy
    2012-12-29 12:44:34.338 00004000 Info: Loading filter file: /var/log/copfilter/default/opt/privoxy/etc/default.filter
    2012-12-29 12:44:34.347 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/neilvandyke.action
    2012-12-29 12:44:34.352 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/match-all.action
    2012-12-29 12:44:34.352 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/copfilter.action
    2012-12-29 12:44:34.368 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/default.action
    2012-12-29 12:44:34.386 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/fanboy.script.action
    2012-12-29 12:44:34.477 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/adblockrules.script.action
    2012-12-29 12:44:34.485 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/malwaredomains.script.action
    2012-12-29 12:44:34.574 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/HpHosts.script.action
    2012-12-29 12:44:36.078 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/malwaredomainlist.script.action
    2012-12-29 12:44:36.089 00004000 Info: Loading actions file: /var/log/copfilter/default/opt/privoxy/etc/user.action
    2012-12-29 12:44:36.091 00004000 Info: Listening on port 8118 on IP address 127.0.0.1
    2012-12-29 12:47:26.155 00004000 Info: exiting by signal 15 .. bye
    ..."

    Regards.

     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    I can't reproduce this. When I reach the limit I get the expected error message:

    13:05:16.994 000 Fatal error: Too many 'actionsfile' directives in config file - limit is 30.
    (You can increase this limit by changing MAX_AF_FILES in project.h and recompiling).

    In Privoxy 3.0.20 only the limit has been increased, the code that enforces it is the same as in 3.0.19.

    Does your configuration have any action files between
    /var/log/copfilter/default/opt/privoxy/etc/user.action
    and /var/log/copfilter/default/opt/privoxy/etc/user.action?

    What are your debug directives?

     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    • status: open --> pending
     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    Hi,

    In my config files, the actions files are:

    #
    actionsfile neilvandyke.action
    actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
    actionsfile copfilter.action
    actionsfile default.action # Main actions file
    actionsfile fanboy.script.action
    actionsfile adblockrules.script.action
    actionsfile malwaredomains.script.action
    #actionsfile peter_lowe.script.action
    actionsfile HpHosts.script.action
    actionsfile malwaredomainlist.script.action
    actionsfile user.action # User customizations
    #

    The debug directives are:

    #debug 1 # Log the destination for each request Privoxy let through.
    #debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
    #debug 32
    #debug 64
    #debug 128
    debug 4096 # Startup banner and warnings
    #debug 8192 # Non-fatal errors
    #

    "(You can increase this limit by changing MAX_AF_FILES in project.h and
    recompiling)."
    Sorry, i don't find MAX_AF_FILES in Privoxy files. Where is this directive?

    Thanks again.

     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    • status: pending --> open
     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    • status: open --> pending
     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    Hi,

    "...I count only 10 enabled action files..."
    You're right, but there is problem if i enable the eleventh (Privoxy stops).

    Well, I will wait for Privoxy 3.0.20 . Do you know when it will be published ?

    Thanks a lot for your help.

    Regards.

     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    • status: pending --> open
     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    • status: open --> pending
     
  • Fabian Keil
    Fabian Keil
    2012-12-29

    You're welcome.

    Can you clarify what you mean by "Privoxy stops"?
    Is the process really gone and you get no message in the log?
    Can you reproduce the problem with the debug directives recommended at:
    http://www.privoxy.org/user-manual/contact.html#CONTACT-BUGS?

    The release date for Privoxy 3.0.20 hasn't been set yet. It should be soonish, though.

     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    • status: pending --> open
     
  • ShelbyGT500
    ShelbyGT500
    2012-12-29

    Hi,

    "...Can you clarify what you mean by "Privoxy stops"?
    Is the process really gone and you get no message in the log?.."
    Yes it is exactly that.

    The exact Privoxy version you are using: Privoxy 3.0.19
    The operating system and versions you run Privoxy on: IPCOP 1.4.21, and Copfilter 0.85.3beta5
    Whether your version of Privoxy is one supplied by the Privoxy developers via SourceForge, or if you got your copy somewhere else: it's from Copfilter: http://www.it-connect-unix.de/index.php?option=com_jdownloads&Itemid=67&view=viewdownload&catid=11&cid=281
    Whether you are using Privoxy in tandem with another proxy such as Tor: it is used with SQUID and HAVP
    following debug options are enabled: Done

    it's OK, i've complete informations in the log:
    "...
    2012-12-29 19:31:32.809 00004000 Connect: accepted connection from 127.0.0.1 on socket 3
    2012-12-29 19:31:32.810 00004000 Info: Reloading configuration file '/var/log/copfilter/default/opt/privoxy/etc/config'
    2012-12-29 19:31:32.812 00004000 Fatal error: Too many 'actionsfile' directives in config file - limit is 10.
    (You can increase this limit by changing MAX_AF_FILES in project.h and recompiling).
    2012-12-29 19:40:19.512 00004000 Info: Privoxy version 3.0.19
    2012-12-29 19:40:19.512 00004000 Info: Program name: /var/log/copfilter/default/opt/privoxy/default/sbin/privoxy
    ..."
    I've the message you gave me.
    this is indeed a problem of many files.

    Thanks.

     
  • Fabian Keil
    Fabian Keil
    2012-12-29

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

    Thanks for the confirmation.