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

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

    Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
    18 Posts 4 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.
    • NollipfSenseN
      NollipfSense
      last edited by

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

      Screen Shot 2020-02-05 at 11.19.08 AM.png

      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

        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.

        NollipfSenseN 1 Reply Last reply Reply Quote 0
        • NollipfSenseN
          NollipfSense @Impatient
          last edited by

          @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
          • kiokomanK
            kiokoman LAYER 8
            last edited by

            it work for me.

            Immagine1.jpg

            try to change regional clamav database update mirror

            Immagine2.jpg

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

            Immagine3.jpg

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

            Immagine4.jpg

            Immagine5.jpg

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            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.

            NollipfSenseN 1 Reply Last reply Reply Quote 0
            • NollipfSenseN
              NollipfSense @kiokoman
              last edited by

              @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!

              Screen Shot 2020-02-05 at 3.09.22 PM.png

              Screen Shot 2020-02-05 at 3.14.03 PM.png

              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
              • kiokomanK
                kiokoman LAYER 8
                last edited by kiokoman

                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.

                NollipfSenseN 1 Reply Last reply Reply Quote 0
                • NollipfSenseN
                  NollipfSense @kiokoman
                  last edited by NollipfSense

                  @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
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    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.

                    NollipfSenseN 1 Reply Last reply Reply Quote 0
                    • NollipfSenseN
                      NollipfSense @kiokoman
                      last edited by

                      @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!
                      Screen Shot 2020-02-06 at 11.05.22 AM.png

                      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
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by

                        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.

                        NollipfSenseN 1 Reply Last reply Reply Quote 0
                        • NollipfSenseN
                          NollipfSense @kiokoman
                          last edited by NollipfSense

                          @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.

                          Screen Shot 2020-02-06 at 11.51.07 AM.png
                          Screen Shot 2020-02-06 at 11.56.57 AM.png
                          Screen Shot 2020-02-06 at 11.58.27 AM.png

                          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 Reply Quote 0
                          • J
                            jdeloach @NollipfSense
                            last edited by jdeloach

                            @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?

                            NollipfSenseN 1 Reply Last reply Reply Quote 0
                            • kiokomanK
                              kiokoman LAYER 8
                              last edited by kiokoman

                              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.

                              NollipfSenseN 1 Reply Last reply Reply Quote 0
                              • NollipfSenseN
                                NollipfSense @jdeloach
                                last edited by

                                @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
                                • NollipfSenseN
                                  NollipfSense @kiokoman
                                  last edited by NollipfSense

                                  @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
                                  • NollipfSenseN
                                    NollipfSense
                                    last edited by

                                    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
                                    • NollipfSenseN
                                      NollipfSense
                                      last edited by

                                      This was the fix...
                                      Screen Shot 2020-02-07 at 11.43.33 AM.png

                                      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
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.