Page 2 of 2
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 19:55
by Archer
pdwalker wrote:
edit: after changing those values, run the quarantine_maint.php script
Code: Select all
sudo /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean
df -h
[root@acs-mailscan mailscanner]# sudo /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/mailscanner/functions.php on line 751
Could not connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@acs-mailscan mailscanner]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_00-lv_root 7.9G 1.8G 5.8G 24%
/tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 485M 60M 401M 13% /boot
/dev/mapper/vg_00-lv_tmp 1008M 46M 912M 5% /tmp
/dev/mapper/vg_00-lv_var 21G 20G 0 100%
/var/none 939M 138M 802M 15%
/var/spool/MailScanner/incoming
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 20:01
by Archer
Quarantine changed
Still errors:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/mailscanner/functions.php on line 751
Could not connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 20:04
by Archer
Looking into increasing size.....
PS: In the event I forget. Thank you!
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 20:10
by pdwalker
bah. the maintenance script expects mysql to be running, but mysql won't run until there is enough space.
delete the following two directories. Hopefully this wont break things
Code: Select all
sudo rm -rf /var/spool/MailScanner/quarantine/20150323
sudo rm -rf /var/spool/MailScanner/quarantine/20150324
then try to start mysql
if it starts, then try the maintenance script again
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 20:13
by pdwalker
Archer wrote:PS: In the event I forget. Thank you!
No worries. I just happened to be awake working on something else.
Definitely increase your space though. At least double what you have.
Re: First Crash - Newby Needs Help
Posted: 23 Apr 2015 21:03
by Archer
So the increased space has worked.....we are back up and working......
I would still like to make sure that I do not need to "adjust" something else.
pdwalker - If you are ever in my neck of the woods let me know. I owe you!
Now to leave for that camping trip with the family...the one that I should have already left for......and to make up to the kids and wife for putting the job first "again".
Re: First Crash - Newby Needs Help
Posted: 25 Apr 2015 13:17
by shawniverson
shawniverson - feature request: could these configurable either during the setup and/or through the EFA-Configure program?
Yes
https://github.com/E-F-A/v3/issues/176
Re: First Crash - Newby Needs Help
Posted: 25 Apr 2015 13:19
by shawniverson
Heads up...known issue affected quarantine cleanup scripts
https://github.com/E-F-A/v3/issues/166
Basically, /etc/cron.daily/mailwatch script needs to be running bash, not sh.
Replace
with
This will be fixed in 3.0.0.8.
Re: First Crash - Newby Needs Help
Posted: 25 Apr 2015 13:24
by shawniverson
pdwalker - If you are ever in my neck of the woods let me know. I owe you!

Re: First Crash - Newby Needs Help
Posted: 25 Apr 2015 16:31
by pdwalker
Shawn,
You did the hard work, I'm just trying to return the favor.
Re: First Crash - Newby Needs Help
Posted: 08 May 2015 21:50
by shawniverson
i have the same problem not solved.
Okay, in order for me to help you I need a picture of what is happening...
1) How much disk space is used (df -h)
2) How much memory do you have allocated and used (top -n 1)
3) What services are running (ps -ef)