Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Service HAVP don't start

    Scheduled Pinned Locked Moved Cache/Proxy
    11 Posts 5 Posters 3.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pierrot76
      last edited by

      Hi!

      I have a problem, so i have installed a HAVP package and the service "HAVP" does not start.

      Could you help me please

      1 Reply Last reply Reply Quote 0
      • H
        hedberg
        last edited by

        Same problem here.

        A 2.2.1 upgraded from 2.2

        Just installed HAVP (stand-alone without Squid) and it can't start. On the top of the page there is an error:

        Warning: file_put_contents(/usr/local/etc/havp/havp_conf.xml): failed to open stream: No such file or directory in /usr/local/pkg/havp.inc on line 604

        Does anybody knows what this mean?

        Br,

        1 Reply Last reply Reply Quote 0
        • M
          messerchmidt
          last edited by

          i cannot get it working either

          1 Reply Last reply Reply Quote 0
          • L
            Longhair
            last edited by

            I have not tried this yet - no access to a test machine until later tonight.

            Could you please specify how you edited the config file?
            I (and i presume many others) are suffering this same warning, thus HAVP wont start!!!

            EDIT: ok, here's how I did it:

            vi /usr/local/pkg/havp.inc

            did this:
            #define('HVDEF_WORK_DIR',                '/usr/local/etc/havp');
            define('HVDEF_WORK_DIR',                '/usr/pbi/havp-amd64/local/etc');

            SOURCE: laamanni

            1 Reply Last reply Reply Quote 0
            • L
              Longhair
              last edited by

              I could not get it to work with v2.2.1

              1 Reply Last reply Reply Quote 0
              • N
                ncolunga
                last edited by

                Hi.

                I noticed that clamav is using /var/run/clamav.

                I have changed on /usr/local/pkg/havp.inc  define('HVDEF_CLAM_RUNDIR',  '/var/run');  to define('HVDEF_CLAM_RUNDIR',  '/var/run/clamav'); and now clamd is running.

                Then HAVP mode has to be changed from Daemon to Library.

                Finally i needed to uncomment some more lines on /usr/local/pkg/havp.inc to get all running after rebooting.

                _  # =-= ClamAV =-=
                    # catalog for Pid and Socket files
                    if (!file_exists(HVDEF_CLAM_RUNDIR))
                        mwexec("mkdir -p " . HVDEF_CLAM_RUNDIR);
                    havp_set_file_access(HVDEF_CLAM_RUNDIR, HVDEF_USER, '0774');_

                1 Reply Last reply Reply Quote 0
                • M
                  messerchmidt
                  last edited by

                  @ncolunga:

                  Hi.

                  I noticed that clamav is using /var/run/clamav.

                  I have changed on /usr/local/pkg/havp.inc  define('HVDEF_CLAM_RUNDIR',  '/var/run');  to define('HVDEF_CLAM_RUNDIR',  '/var/run/clamav'); and now clamd is running.

                  Then HAVP mode has to be changed from Daemon to Library.

                  Finally i needed to uncomment some more lines on /usr/local/pkg/havp.inc to get all running after rebooting.

                  _  # =-= ClamAV =-=
                      # catalog for Pid and Socket files
                      if (!file_exists(HVDEF_CLAM_RUNDIR))
                          mwexec("mkdir -p " . HVDEF_CLAM_RUNDIR);
                      havp_set_file_access(HVDEF_CLAM_RUNDIR, HVDEF_USER, '0774');_

                  could you kindly upload a copy of the modified file that is working?

                  1 Reply Last reply Reply Quote 0
                  • N
                    ncolunga
                    last edited by

                    You only need to apply that changes and the one posted by Longhair.

                    1 Reply Last reply Reply Quote 0
                    • M
                      messerchmidt
                      last edited by

                      @ncolunga:

                      You only need to apply that changes and the one posted by Longhair.

                      can you explain it to us step by step as if we were 5 years old so we can figure it out…not everyone is a tech guy or pfsense head yet  8)

                      edit: tried to do the mod myself with file editor, no dice. can you upload a working file?

                      1 Reply Last reply Reply Quote 0
                      • N
                        ncolunga
                        last edited by

                        It's possible that you need to force a clamav update after making that changes.

                        /usr/local/etc/rc.d/havp_avupdate

                        1 Reply Last reply Reply Quote 0
                        • N
                          ncolunga
                          last edited by

                          HAVP update to 0.91_3 pkg v1.05_1 doesn't solve this problem, manual changes to havp.inc file must be done.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.