You are not logged in.
Hi,
Recently update glpi from 10.0.2 to 10.0.3
every 5 minuts we recive an alert from our crontab about Laminas and POP3.
thecrontab sentence: /usr/bin/php /var/www/html/glpi/front/cron.php
I don't know why only after updated version of glpi we have this problem.
[2022-11-03 11:57:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Protocol\Exception\RuntimeException: last request failed in /mnt/disc/glpi-10.0.3/vendor/laminas/laminas-mail/src/Protocol/Pop3.php at line 156
Backtrace :
.../laminas/laminas-mail/src/Protocol/Pop3.php:186 Laminas\Mail\Protocol\Pop3->readResponse()
.../laminas/laminas-mail/src/Protocol/Pop3.php:236 Laminas\Mail\Protocol\Pop3->request()
...r/laminas/laminas-mail/src/Storage/Pop3.php:160 Laminas\Mail\Protocol\Pop3->login()
src/Toolbox.php:2155 Laminas\Mail\Storage\Pop3->__construct()
src/MailCollector.php:1375 Toolbox::getMailServerStorageInstance()
src/MailCollector.php:698 MailCollector->connect()
src/MailCollector.php:1852 MailCollector->collect()
src/CronTask.php:1018 MailCollector::cronMailgate()
front/cron.php:84 CronTask::launch()
/mnt/disc/glpi-10.0.3/vendor/laminas/laminas-mail/src/Protocol/Pop3.php
content of this file:
public function readResponse($multiline = false)
{
ErrorHandler::start();
$result = fgets($this->socket);
$error = ErrorHandler::stop();
if (! is_string($result)) {
throw new Exception\RuntimeException('read failed - connection closed?', 0, $error);
}
$result = trim($result);
if (strpos($result, ' ')) {
list($status, $message) = explode(' ', $result, 2);
} else {
$status = $result;
$message = '';
}
if ($status != '+OK') { #######error is in this line
throw new Exception\RuntimeException('last request failed');
}
if ($multiline) {
$message = '';
$line = fgets($this->socket);
while ($line && rtrim($line, "\r\n") != '.') {
if ($line[0] == '.') {
$line = substr($line, 1);
}
$message .= $line;
$line = fgets($this->socket);
}
}
return $message;
}
Someone can help me?
Last edited by victorvargas (2022-11-04 08:35:47)
Offline