Dansguardian fails after update
I was running pfSense 2.1.0 i386 without any problems. Upgraded to 2.1.2 to patch for heartbleed. Now the Dansguardian service does not start. I have removed and reinstalled the package to no avail. Here is the logs related to the error:
Apr 15 08:57:59 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 binding ipc server file (try using the SysV to stop DansGuardian then try starting it again or doing an 'rm /tmp/.dguardianipc'). Exiting with error /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian' Apr 15 08:57:59 root: /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian Apr 15 08:57:59 dansguardian: Exiting with error Apr 15 08:57:59 dansguardian: Error binding ipc server file (try using the SysV to stop DansGuardian then try starting it again or doing an 'rm /tmp/.dguardianipc'). Apr 15 08:57:59 php: /pkg_mgr_install.php: Starting Dansguardian
Error binding urllistsock server file (try using the SysV to stop DansGuardian then try starting it again or doing an 'rm /tmp/.dguardianurlipc').
Exiting with error
/usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian
In case anyone else has this issue like I also did, try this.
Even though the error message tells you to delete a certain file, it is unaware there is actually 3 files that cause the same issue in that folder.
2.1.5-RELEASE][firstname.lastname@example.org]/tmp(25): ls .dguardianipc .dguardianipipc .dguardianurlipc
I have the same problem. is there no fix yet? I keep forgetting to do this and people lose internet access because the proxy is down, as dansguardian cannot start if those files are there. This happens every time I updated pfsense or restart it so you would think i would remember but i never do!!!
Cd /tmp rm .d* /usr/local/etc/rc.d/dansguardian.sh start
I just figured out that i can automate this with the package "shellcmd".
The string I am using is:
rm /tmp/.d* && /usr/local/etc/rc.d/dansguardian.sh start
I believe that will run the two commands back to back. I havent tested it yet, but maybe i will tomorrow morning.
I have the same problem. is there no fix yet?
No sh*t, there's no fix yet when noone reported it properly on Redmine for years…
Fixed in pkg v0.1.13
Ok well no need to swear about it!
Thank you very much for fixing it.
Sometimes people don't report things, it was a minor thing because as you know, rebooting pfsense doesn't happen very often what with it being rock solid. just a minor annoyance but im glad its fixed. Always prefer to use the forums then github or anything like that, incase its not really a bug.
for anyone else who has this problem, go into installed packages and re-run the package install. that will serve to update the package and your config will be preserved. My work around did work as well, i just tested it this AM.
The point here is: there are hundreds of new threads here every day; when you have a verified bug, file it @ https://redmine.pfsense.org/projects/pfsense-packages/issues/new - developers won't be digging for bugs here at the forum, noone has time for that.