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

ClamAV Service Not Starting -v2.5-dev (solved)

2.5 Development Snapshots (Retired)
4
18
3.4k
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.
  • N
    NollipfSense
    last edited by NollipfSense Feb 7, 2020, 5:45 PM Feb 5, 2020, 2:56 AM

    I have uninstalled with retain setting removed and reinstall Squid to get ClamAV working with no luck. System log says: /pkg_edit.php: [squid] Missing /var/db/clamav/*.cvd or *.cld files. Running freshclam in background.
    I checked the folder and there is a daily.cvd file...so, I am not understanding!

    login-to-view

    login-to-view

    pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
    pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

    1 Reply Last reply Reply Quote 0
    • N
      NollipfSense
      last edited by Feb 5, 2020, 5:43 PM

      Tried the touch command...still didn't resolve the issue.

      login-to-view

      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

      1 Reply Last reply Reply Quote 0
      • I
        Impatient
        last edited by Feb 5, 2020, 6:03 PM

        Should their not be a cld and a cvd file?

        It has been quite some time since I used clamav or squid for that matter
        that everything is a little foggy.

        N 1 Reply Last reply Feb 5, 2020, 6:05 PM Reply Quote 0
        • N
          NollipfSense @Impatient
          last edited by Feb 5, 2020, 6:05 PM

          @Impatient Yes, daily.cvd file is there!

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          1 Reply Last reply Reply Quote 0
          • K
            kiokoman LAYER 8
            last edited by Feb 5, 2020, 6:31 PM

            it work for me.

            login-to-view

            try to change regional clamav database update mirror

            login-to-view

            press update av button and go chech the realtime log for the antivirus

            login-to-view

            if everything is ok go to status / services and press the start button

            login-to-view

            login-to-view

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            N 1 Reply Last reply Feb 5, 2020, 9:33 PM Reply Quote 0
            • N
              NollipfSense @kiokoman
              last edited by Feb 5, 2020, 9:33 PM

              @kiokoman Thank you for responding...I did changed to Canada, got the temporary file with what appears have data based on size...see image; yet, Squid's logs show connection failed!

              login-to-view

              login-to-view

              pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
              pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

              1 Reply Last reply Reply Quote 0
              • K
                kiokoman LAYER 8
                last edited by kiokoman Feb 5, 2020, 10:27 PM Feb 5, 2020, 10:24 PM

                change to another country
                also check if pfblockerng is blocking it
                go with a browser and see if youcan download https://database.clamav.net/main.cvd
                i have no problem from here to reach that file so it is there but something is blocking you

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                N 1 Reply Last reply Feb 6, 2020, 2:03 AM Reply Quote 0
                • N
                  NollipfSense @kiokoman
                  last edited by NollipfSense Feb 6, 2020, 2:08 AM Feb 6, 2020, 2:03 AM

                  @kiokoman I was just able to download the file via the browser as well as had checked DNSbl logs, and no block reported. So, it's some process that is the cause...will try download from command line. Wondered what's the command...getcvd https://database.clamav.net/main.cvd ?

                  pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                  pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kiokoman LAYER 8
                    last edited by Feb 6, 2020, 8:35 AM

                    the command line to manually update is

                    freshclam --verbose --show-progress
                    

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    N 1 Reply Last reply Feb 6, 2020, 5:08 PM Reply Quote 0
                    • N
                      NollipfSense @kiokoman
                      last edited by Feb 6, 2020, 5:08 PM

                      @kiokoman said in ClamAV Service Not Starting -v2.5-dev:

                      the command line to manually update is

                      freshclam --verbose --show-progress
                      

                      Tried that and got this...see below!
                      login-to-view

                      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiokoman LAYER 8
                        last edited by Feb 6, 2020, 5:47 PM

                        you probably have a running process of clamav somehow

                        try with

                        killall clamd
                        rm /var/run/clamav/clamd.pid
                        freshclam --verbose --show-progress
                        

                        ignore the error for the second command if the clamd.pid is not present

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        N 1 Reply Last reply Feb 6, 2020, 6:13 PM Reply Quote 0
                        • N
                          NollipfSense @kiokoman
                          last edited by NollipfSense Feb 6, 2020, 6:39 PM Feb 6, 2020, 6:13 PM

                          @kiokoman said in ClamAV Service Not Starting -v2.5-dev:

                          freshclam --verbose --show-progress

                          Did as you directed and got the same result...see below! Would coping the file that I downloaded via the browser to both /usr/local/share/clamav-db and /var/db/clamav work! Also, I am running /Var and /Tmp in RAM.

                          login-to-view
                          login-to-view
                          login-to-view

                          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                          J 1 Reply Last reply Feb 6, 2020, 6:55 PM Reply Quote 0
                          • J
                            jdeloach @NollipfSense
                            last edited by jdeloach Feb 6, 2020, 6:59 PM Feb 6, 2020, 6:55 PM

                            @NollipfSense

                            Could the problem be due to the changes in the logging system that @jimp posted about in this post: https://forum.netgate.com/post/862873, since you show some issues with file logs being locked by another process.

                            Maybe ClamAV needs some updates since you are using -v2.5-dev?

                            N 1 Reply Last reply Feb 6, 2020, 8:06 PM Reply Quote 0
                            • K
                              kiokoman LAYER 8
                              last edited by kiokoman Feb 6, 2020, 7:09 PM Feb 6, 2020, 7:03 PM

                              but i'm using 2.5 too without problem
                              the problem could be -> I am running /Var and /Tmp in RAM.
                              i can't test this

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              Please do not use chat/PM to ask for help
                              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                              N 1 Reply Last reply Feb 6, 2020, 8:15 PM Reply Quote 0
                              • N
                                NollipfSense @jdeloach
                                last edited by Feb 6, 2020, 8:06 PM

                                @jdeloach I had the ClamAV service running before in pfSense v2.5-del without issues until update 2.5-02/03/2020...so, the file system had already incorporated it.

                                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                                1 Reply Last reply Reply Quote 0
                                • N
                                  NollipfSense @kiokoman
                                  last edited by NollipfSense Feb 6, 2020, 8:41 PM Feb 6, 2020, 8:15 PM

                                  @kiokoman said in ClamAV Service Not Starting -v2.5-dev:

                                  but i'm using 2.5 too without problem
                                  the problem could be -> I am running /Var and /Tmp in RAM.
                                  i can't test this

                                  I saw this from the Squid: https://github.com/pfsense/FreeBSD-ports/commit/38872566f0001d804f33c3985ca28b199c49049c
                                  /* If /var is in RAM, the AV database will not be persistent there and space is
                                  limited, so relocate it. */
                                  if (isset($config['system']['use_mfs_tmpvar'])) {
                                  define('CLAMAV_DBDIR', '/usr/local/share/clamav-db/');
                                  } else {
                                  define('CLAMAV_DBDIR', '/var/db/clamav/');
                                  }

                                  However, those two places are where the file is supposed downloaded to... In my case, both /var and /tmp are in UFS in RAM.

                                  pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                  pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    NollipfSense
                                    last edited by Feb 7, 2020, 5:09 PM

                                    I ended up removing Squid and will give a week or so to reinstall the package...it seems that the database was downloaded but is not written to /var/db/clamav or to /usr/local/share/clamav-db/...so I'll wait.

                                    pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                    pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      NollipfSense
                                      last edited by Feb 7, 2020, 5:47 PM

                                      This was the fix...
                                      login-to-view

                                      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                                      1 Reply Last reply Reply Quote 0
                                      • B bookie56 referenced this topic on Apr 7, 2024, 8:54 AM
                                      9 out of 18
                                      • First post
                                        9/18
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.