First Crash - Newby Needs Help

General eFa discussion
Archer
Posts: 27
Joined: 30 Oct 2014 13:38

Re: First Crash - Newby Needs Help

Post 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
Archer
Posts: 27
Joined: 30 Oct 2014 13:38

Re: First Crash - Newby Needs Help

Post 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)
Archer
Posts: 27
Joined: 30 Oct 2014 13:38

Re: First Crash - Newby Needs Help

Post by Archer »

Looking into increasing size.....

PS: In the event I forget. Thank you!
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: First Crash - Newby Needs Help

Post 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

Code: Select all

sudo service mysqld start
if it starts, then try the maintenance script again
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: First Crash - Newby Needs Help

Post 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.
Archer
Posts: 27
Joined: 30 Oct 2014 13:38

Re: First Crash - Newby Needs Help

Post 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".
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: First Crash - Newby Needs Help

Post 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
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: First Crash - Newby Needs Help

Post 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

Code: Select all

#!/bin/sh
with

Code: Select all

#!/bin/bash
This will be fixed in 3.0.0.8.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: First Crash - Newby Needs Help

Post by shawniverson »

pdwalker - If you are ever in my neck of the woods let me know. I owe you!
:text-bravo: :text-goodpost:
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: First Crash - Newby Needs Help

Post by pdwalker »

Shawn,

You did the hard work, I'm just trying to return the favor.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: First Crash - Newby Needs Help

Post 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)
Post Reply