Page 1 of 1
Service Unavailable in webinterface
Posted: 14 Feb 2021 07:51
by doggy101
Since this morning this is what I get when accessing the mailscanner webinterface:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
server is running normally and mail seems to be delivered according to the maillog?
any ideas where to start?
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 08:57
by MovingTarget
Same issue here

Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 09:43
by doggy101
weird, was there some update issued?
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 09:44
by MovingTarget
Looks like its updated PHP7.2 to 7.4, could this be the issue?
/etc/cron.daily/0yum-daily.cron:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
eFa noarch 1:4.0.4-8.eFa.el7 eFa4-Testing 116 k
replacing mod_php72u.x86_64 7.2.34-1.el7.ius
replacing php72u-cli.x86_64 7.2.34-1.el7.ius
replacing php72u-common.x86_64 7.2.34-1.el7.ius
replacing php72u-fpm.x86_64 7.2.34-1.el7.ius
replacing php72u-gd.x86_64 7.2.34-1.el7.ius
replacing php72u-json.x86_64 7.2.34-1.el7.ius
replacing php72u-ldap.x86_64 7.2.34-1.el7.ius
replacing php72u-mbstring.x86_64 7.2.34-1.el7.ius
replacing php72u-mysqlnd.x86_64 7.2.34-1.el7.ius
replacing php72u-pdo.x86_64 7.2.34-1.el7.ius
replacing php72u-process.x86_64 7.2.34-1.el7.ius
replacing php72u-xml.x86_64 7.2.34-1.el7.ius
Updating:
MailScanner noarch 5.4.1-1.eFa.el7 eFa4-Testing 598 k
clamav x86_64 0.103.0-3.el7 epel 416 k
clamav-filesystem noarch 0.103.0-3.el7 epel 40 k
clamav-lib x86_64 0.103.0-3.el7 epel 826 k
clamav-update x86_64 0.103.0-3.el7 epel 120 k
clamd x86_64 0.103.0-3.el7 epel 117 k
postfix_eFa x86_64 2:3.5.9-1.eFa.el7 eFa4-Testing 1.5 M
sqlgreywebinterface noarch 1:1.1.9-4.eFa.el7 eFa4-Testing 15 k
Installing for dependencies:
mod_php74 x86_64 7.4.15-1.el7.ius ius 1.6 M
php74-cli x86_64 7.4.15-1.el7.ius ius 3.3 M
php74-common x86_64 7.4.15-1.el7.ius ius 685 k
php74-fpm x86_64 7.4.15-1.el7.ius ius 1.7 M
php74-gd x86_64 7.4.15-1.el7.ius ius 171 k
php74-json x86_64 7.4.15-1.el7.ius ius 75 k
php74-ldap x86_64 7.4.15-1.el7.ius ius 86 k
php74-mbstring x86_64 7.4.15-1.el7.ius ius 477 k
php74-mysqlnd x86_64 7.4.15-1.el7.ius ius 187 k
php74-pdo x86_64 7.4.15-1.el7.ius ius 122 k
php74-process x86_64 7.4.15-1.el7.ius ius 83 k
php74-xml x86_64 7.4.15-1.el7.ius ius 167 k
Transaction Summary
================================================================================
Install 1 Package (+12 Dependent packages) Upgrade 8 Packages The updates were successfully applied
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 10:57
by doggy101
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 10:59
by fperciot
Hi there,
I have the exact same issue :
Code: Select all
/etc/cron.daily/0yum-daily.cron:
warning: /etc/php.ini created as /etc/php.ini.rpmnew
warning: /etc/php-fpm.d/www.conf created as /etc/php-fpm.d/www.conf.rpmnew
warning: /etc/MailScanner/MailScanner.conf created as /etc/MailScanner/MailScanner.conf.rpmnew
Added new: Web Bug Replacement = https://s3.amazonaws.com/msv5/images/spacer.gif
Added new: Archives: Ignore DAT File Executable = no Added new: Lockfile Dir = /var/spool/MailScanner/incoming/Locks
Added new: include /etc/MailScanner/conf.d/*
Summary
-------
Read 387 settings from old /etc/MailScanner/MailScanner.conf.original
Used 385 settings from old /etc/MailScanner/MailScanner.conf.original
Used 5 default settings from new /etc/MailScanner/MailScanner.conf.dist
warning: /etc/postfix/main.cf created as /etc/postfix/main.cf.rpmnew
warning: /etc/postfix/master.cf created as /etc/postfix/master.cf.rpmnew
warning: /etc/postfix/transport created as /etc/postfix/transport.rpmnew
Preparing to update eFa...
checkmodule: loading policy configuration from /var/eFa/lib/selinux/eFa.te
checkmodule: policy configuration loaded
checkmodule: writing binary representation (version 19) to /var/eFa/lib/selinux/eFa.mod Update completed successfully!
The following updates will be applied on efa.xxxxxxxxxxxxxx:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
eFa noarch 1:4.0.4-8.eFa.el7 eFa4-Testing 116 k
replacing mod_php72u.x86_64 7.2.34-1.el7.ius
replacing php72u-cli.x86_64 7.2.34-1.el7.ius
replacing php72u-common.x86_64 7.2.34-1.el7.ius
replacing php72u-fpm.x86_64 7.2.34-1.el7.ius
replacing php72u-gd.x86_64 7.2.34-1.el7.ius
replacing php72u-json.x86_64 7.2.34-1.el7.ius
replacing php72u-ldap.x86_64 7.2.34-1.el7.ius
replacing php72u-mbstring.x86_64 7.2.34-1.el7.ius
replacing php72u-mysqlnd.x86_64 7.2.34-1.el7.ius
replacing php72u-pdo.x86_64 7.2.34-1.el7.ius
replacing php72u-process.x86_64 7.2.34-1.el7.ius
replacing php72u-xml.x86_64 7.2.34-1.el7.ius
Updating:
MailScanner noarch 5.4.1-1.eFa.el7 eFa4-Testing 598 k
clamav x86_64 0.103.0-3.el7 epel 416 k
clamav-filesystem noarch 0.103.0-3.el7 epel 40 k
clamav-lib x86_64 0.103.0-3.el7 epel 826 k
clamav-update x86_64 0.103.0-3.el7 epel 120 k
clamd x86_64 0.103.0-3.el7 epel 117 k
postfix_eFa x86_64 2:3.5.9-1.eFa.el7 eFa4-Testing 1.5 M
sqlgreywebinterface noarch 1:1.1.9-4.eFa.el7 eFa4-Testing 15 k
Installing for dependencies:
mod_php74 x86_64 7.4.15-1.el7.ius ius 1.6 M
php74-cli x86_64 7.4.15-1.el7.ius ius 3.3 M
php74-common x86_64 7.4.15-1.el7.ius ius 685 k
php74-fpm x86_64 7.4.15-1.el7.ius ius 1.7 M
php74-gd x86_64 7.4.15-1.el7.ius ius 171 k
php74-json x86_64 7.4.15-1.el7.ius ius 75 k
php74-ldap x86_64 7.4.15-1.el7.ius ius 86 k
php74-mbstring x86_64 7.4.15-1.el7.ius ius 477 k
php74-mysqlnd x86_64 7.4.15-1.el7.ius ius 187 k
php74-pdo x86_64 7.4.15-1.el7.ius ius 122 k
php74-process x86_64 7.4.15-1.el7.ius ius 83 k
php74-xml x86_64 7.4.15-1.el7.ius ius 167 k
Transaction Summary
================================================================================
Install 1 Package (+12 Dependent packages) Upgrade 8 Packages The updates were successfully applied
When checking th /var/log/messages :
There are a lot of trhoses lines :
Code: Select all
Feb 14 11:48:38 efa php: Notice: Trying to access array offset on value of type null in /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_milter_relay.php on line 86
Feb 14 11:48:38 efa php: PHP Notice: Trying to access array offset on value of type null in /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_milter_relay.php on line 86
Feb 14 11:48:48 efa php: PHP Notice: Trying to access array offset on value of type null in /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_milter_relay.php on line 91
Feb 14 11:48:48 efa php: Notice: Trying to access array offset on value of type null in /usr/bin/mailwatch/tools/Postfix_relay/mailwatch_milter_relay.php on line 91
Seems that a DB query returns a null value :
Code: Select all
function follow($file)
{
$size = filesize($file);
while (true) {
clearstatcache();
$currentSize = filesize($file);
if ($size == $currentSize) {
sleep(1);
continue;
}
$fh = fopen($file, "r");
if (!$fh) {
die(__('diepipe56'));
}
fseek($fh, $size);
while ($line = fgets($fh)) {
if (preg_match('/^.*postfix\/cleanup.*: (\S+): message-id=(\S+)$/', $line, $explode)) {
$smtp_id = safe_value($explode[1]);
$message_id = safe_value($explode[2]);
$result = dbquery("SELECT id from `maillog` where messageid='" . $message_id . "' LIMIT 1;");
$smtpd_id = $result->fetch_row()[0];
if ($smtpd_id === null) {
// Add a delay to prevent race condition between mailwatch logger and maillog
sleep(10);
$result = dbquery("SELECT id from `maillog` where messageid='" . $message_id . "' LIMIT 1;");
$smtpd_id = $result->fetch_row()[0];
}
if ($smtpd_id !== null && $smtpd_id !== $smtp_id) {
dbquery("REPLACE INTO `mtalog_ids` VALUES ('" . $smtpd_id . "','" . $smtp_id . "')");
}
}
}
fclose($fh);
$size = $currentSize;
}
}
The 2 related instruction lines are :
Code: Select all
$result = dbquery("SELECT id from `maillog` where messageid='" . $message_id . "' LIMIT 1;");
Any clue on this problem ?
Regards,
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 11:21
by e-d-i-t
PHP 7.4 differs from PHP 7.2 on a specific part I guess?
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 11:32
by hugorosa
Hello
i think it's something about selinux
i have php7.4 a few days and no problem
if you check your efa updates
ls -alrt /var/log/eFa
you could see update.log have date of today
vi /var/log/eFa/update.log
"
checkmodule: loading policy configuration from /var/eFa/lib/selinux/eFa.te
checkmodule: policy configuration loaded
checkmodule: writing binary representation (version 19) to /var/eFa/lib/selinux/eFa.mod
checkmodule: loading policy configuration from /var/eFa/lib/selinux/eFa.te
checkmodule: policy configuration loaded
checkmodule: writing binary representation (version 19) to /var/eFa/lib/selinux/eFa.mod
"
I try now replace the two updated files from backup yesterday
eFa.pp
and
eFa.mod
reboot
but without success...........
NOW IT'S WORKING !!!
systemctl enable php-fpm
systemctl start php-fpm
Have a nice day
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 12:23
by doggy101
I can confirm that this is working:
systemctl enable php-fpm
systemctl start php-fpm

Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 12:27
by fperciot
Same for me.
Thanks all
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 14:18
by ayh20
Same problem, thanks @hugorosa !!
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 14:19
by shawniverson
yep keep the reports coming on any issues, actively working on fixes. IUS has made a sudden repo change that is impacting things. Having to rewrite some code and get things back in order.
Re: Service Unavailable in webinterface
Posted: 14 Feb 2021 19:46
by MovingTarget
doggy101 wrote: 14 Feb 2021 12:23
systemctl enable php-fpm
systemctl start php-fpm
Working for me as well now. Thanks guys.
Re: Service Unavailable in webinterface
Posted: 15 Feb 2021 14:00
by max_of_tl
I got this error this morning too. I thought it was something I did so I grabbed a backup copy of the VM.
Re: Service Unavailable in webinterface
Posted: 15 Feb 2021 18:35
by elfranko
I had this error, but did nothing and now I can log in again. Just have a small issue with GreyListing
ElFranko
Re: Service Unavailable in webinterface
Posted: 17 Feb 2021 16:12
by max_of_tl
hugorosa wrote: 14 Feb 2021 11:32
I try now replace the two updated files from backup yesterday
eFa.pp
and
eFa.mod
I think it's worth noting that the .pp and .mod files weren't changed. (I diff'ed them). The only thing that needs to be done is enabling and starting the php-fpm service.