Service Unavailable in webinterface
Service Unavailable in webinterface
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?
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?
-
- Posts: 3
- Joined: 14 Feb 2021 08:48
Re: Service Unavailable in webinterface
Same issue here
Re: Service Unavailable in webinterface
weird, was there some update issued?
-
- Posts: 3
- Joined: 14 Feb 2021 08:48
Re: Service Unavailable in webinterface
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
/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
let's hope shawn knows how to fix the webinterface...
Re: Service Unavailable in webinterface
Hi there,
I have the exact same issue :
When checking th /var/log/messages :
There are a lot of trhoses lines :
Seems that a DB query returns a null value :
The 2 related instruction lines are :
Any clue on this problem ?
Regards,
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
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
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;
}
}
Code: Select all
$result = dbquery("SELECT id from `maillog` where messageid='" . $message_id . "' LIMIT 1;");
Regards,
Re: Service Unavailable in webinterface
PHP 7.4 differs from PHP 7.2 on a specific part I guess?
Re: Service Unavailable in webinterface
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
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
I can confirm that this is working:
systemctl enable php-fpm
systemctl start php-fpm
systemctl enable php-fpm
systemctl start php-fpm
Re: Service Unavailable in webinterface
Same for me.
Thanks all
Thanks all
Re: Service Unavailable in webinterface
Same problem, thanks @hugorosa !!
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Service Unavailable in webinterface
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.
-
- Posts: 3
- Joined: 14 Feb 2021 08:48
Re: Service Unavailable in webinterface
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
I had this error, but did nothing and now I can log in again. Just have a small issue with GreyListing
ElFranko
ElFranko