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

    Dansguardian (2.12.0.3 pkg v.0.1.8) does NOT start on x64 8-16-13 build

    2.1 Snapshot Feedback and Problems - RETIRED
    3
    11
    5.0k
    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
      Pistolero
      last edited by

      Hi all,

      I am getting no love trying to get Dansguardian to even start on the x64 8/16/13 build. Here's the error I get on the log:

      Aug 18 15:56:17 	root: /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian
      Aug 18 15:56:17 	dansguardian[39299]: Error opening/creating log file. (check ownership and access rights).
      Aug 18 15:55:55 	check_reload_status: Reloading filter
      Aug 18 15:55:54 	php: /pkg_mgr_install.php: The command '/usr/local/etc/rc.d/dansguardian.sh start' returned exit code '1', the output was 'kern.ipc.somaxconn: 16384 -> 16384 kern.maxfiles: 131072 -> 131072 kern.maxfilesperproc: 104856 -> 104856 kern.threads.max_threads_per_proc: 4096 -> 4096 Starting dansguardian. Error opening/creating log file. (check ownership and access rights). I am running as clamav and I am trying to open /var/log/dansguardian/access.log /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian'
      Aug 18 15:55:54 	root: /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian
      Aug 18 15:55:54 	dansguardian[26370]: Error opening/creating log file. (check ownership and access rights).
      Aug 18 15:55:53 	php: /pkg_mgr_install.php: Starting Dansguardian
      Aug 18 15:55:50 	php: /pkg_mgr_install.php: [Dansguardian] - Save settings package call pr: bp:1 rpc:no
      Aug 18 15:55:46 	php: /pkg_mgr_install.php: The command '/usr/local/etc/rc.d/dansguardian.sh start' returned exit code '1', the output was 'kern.ipc.somaxconn: 128 -> 16384 kern.maxfiles: 12328 -> 131072 kern.maxfilesperproc: 11095 -> 104856 kern.threads.max_threads_per_proc: 1500 -> 4096 Starting dansguardian. Error opening/creating log file. (check ownership and access rights). I am running as clamav and I am trying to open /var/log/dansguardian/access.log /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian'
      Aug 18 15:55:46 	root: /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian
      Aug 18 15:55:46 	dansguardian[89981]: Error opening/creating log file. (check ownership and access rights).
      Aug 18 15:55:46 	php: /pkg_mgr_install.php: Starting Dansguardian
      Aug 18 15:55:42 	check_reload_status: Syncing firewall
      Aug 18 15:55:38 	php: /pkg_mgr_install.php: [Dansguardian] - Save settings package call pr: bp:1 rpc:no
      
      

      I have changed the log folder perms to root:wheel, clamd:clamd, proxy:proxy and nobody:nobody to no avail. Right now, the folder has the default perms from the fresh install:

      drwxr-xr-x  3 clamav  nobody   512B Aug 18 15:55 dansguardian
      
      

      I have touched the access.log file to create it, you name it. I have resinstalled, removed, installed again, removed ANY file or folder with the dansguardian name on it, reinstalled… nothing helps :(

      Still refuses to start.

      Any ideas? Please help... think of the children! :)

      Thanks!

      1 Reply Last reply Reply Quote 0
      • P
        Pistolero
        last edited by

        Hello…. anyone? Please?

        1 Reply Last reply Reply Quote 0
        • K
          kejianshi
          last edited by

          "I have touched the access.log"

          I'm lead to believe touching logs on pfsense is "bad" because they are circular.

          I've had problems with dansguardian in the past and I eventually just reinstalled pfsense, reinstalled squid got that running.  Then re-added dansguardian.  Some strange interaction between squid and dansguardian was causing my issue.

          Maybe try blowing away the squid cache, then reinstalling the squid package then the dansguardian package.

          If that doesn't work, maybe just nuke pfsense and reinstall.  Its alot faster than it sounds.  4 minutes or so and you know you have a clean install.

          1 Reply Last reply Reply Quote 0
          • R
            rjcrowder
            last edited by

            @Pistolero:

            Hello…. anyone? Please?

            No idea why yours isn't starting… this is what mine looks like if it helps...

            [root@pfsense /var/log]# ls -ald dansguardian
            drwxr-xr-x  3 clamav  nobody  512 Aug  1 12:46 dansguardian
            [root@pfsense /var/log]# ls -al dansguardian
            total 5478
            drwxr-xr-x   3 clamav  nobody      512 Aug  1 12:46 .
            drwxr-xr-x  10 root    wheel      1024 Aug 13 14:55 ..
            -rw-r--r--   1 clamav  nobody  5575013 Aug 26 14:10 access.log
            drwxr-xr-x   2 clamav  nobody      512 Aug  1 12:32 stats
            [root@pfsense /var/log]# 
            
            
            1 Reply Last reply Reply Quote 0
            • P
              Pistolero
              last edited by

              Thanks RJ,

              are you running the x64 build?

              And I just did a clean install, not even restoring old config… still complains about not being able to write to the log file.

              I wish Marcelloc would look at my thread...

              1 Reply Last reply Reply Quote 0
              • R
                rjcrowder
                last edited by

                Yes… 2.1 RC1 but not sure the exact date (pretty recent though) and x64. I did have some similar rights related issues on the install. I can't remember exactly what I did to fix it, but it is working fine now. If I get a chance this coming weekend, I might do a reinstall and document the steps.

                1 Reply Last reply Reply Quote 0
                • P
                  Pistolero
                  last edited by

                  Thankee-Sai ;D

                  1 Reply Last reply Reply Quote 0
                  • R
                    rjcrowder
                    last edited by

                    @rjcrowder:

                    Yes… 2.1 RC1 but not sure the exact date (pretty recent though) and x64. I did have some similar rights related issues on the install. I can't remember exactly what I did to fix it, but it is working fine now. If I get a chance this coming weekend, I might do a reinstall and document the steps.

                    OK… I just did a full install of yesterdays (8/29) amd64 RC1 build and had no issues at all with dansguardian/squid.  Here's what I did in order...

                    1. Full install on local drive
                    2. Setup wan/lan and appropriate addresses for the LAN with DHCP turned on. Also reset the web to http
                    3. Turn on SSH
                    4. Login via the web UI and install the following packages (in order)
                        cron
                        vhosts
                        dansguardian
                        squid3
                        OpenVPN client export utility
                    5. Reboot
                    6. Login via the web UI and do the following
                        enable DG
                        set squid proxy to localhost
                    7. Reboot

                    Everything worked and came up fine...

                    1 Reply Last reply Reply Quote 0
                    • P
                      Pistolero
                      last edited by

                      @rjcrowder:

                      @rjcrowder:

                      Yes… 2.1 RC1 but not sure the exact date (pretty recent though) and x64. I did have some similar rights related issues on the install. I can't remember exactly what I did to fix it, but it is working fine now. If I get a chance this coming weekend, I might do a reinstall and document the steps.

                      OK… I just did a full install of yesterdays (8/29) amd64 RC1 build and had no issues at all with dansguardian/squid.  Here's what I did in order...

                      1. Full install on local drive
                      2. Setup wan/lan and appropriate addresses for the LAN with DHCP turned on. Also reset the web to http
                      3. Turn on SSH
                      4. Login via the web UI and install the following packages (in order)
                          cron
                          vhosts
                          dansguardian
                          squid3
                          OpenVPN client export utility
                      5. Reboot
                      6. Login via the web UI and do the following
                          enable DG
                          set squid proxy to localhost
                      7. Reboot

                      Everything worked and came up fine...

                      Well, sadly I ain't still not getting no love (wow, way to mangle the Queen's English :P) Just did a reinstall and am still getting the same log access error…

                      Thanks for your info, though. Appreciate it.

                      1 Reply Last reply Reply Quote 0
                      • R
                        rjcrowder
                        last edited by

                        Hmmm… at a little bit of a loss because I can't seem to replicate the problem. Did you install in the same order? Is there any way you could replicate the problem in a Virtualbox VM that I could download and play with?

                        1 Reply Last reply Reply Quote 0
                        • P
                          Pistolero
                          last edited by

                          @rjcrowder:

                          Hmmm… at a little bit of a loss because I can't seem to replicate the problem. Did you install in the same order? Is there any way you could replicate the problem in a Virtualbox VM that I could download and play with?

                          Sadly I am off on business travel all next week and probably the next. Thank you for your offer, I'll set one up as soon as I can.

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