• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Daily cronjob "email-security/scripts/sa-train-bayes.php" fails

AvaDev

New Pleskian
Server operating system version
Debian 11.11
Plesk version and microupdate number
Plesk Obsidian 18.0.67 Update 3 Web Host Edition
Since 13.03.2025 the daily cronjob "/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/email-security/scripts/sa-train-bayes.php" fails.
"Plesk E-Mail Security Pro" version 1.5.12-5258

Admin error e-mail:
Code:
Cron <psaadm@REMOVED> /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/email-security/scripts/sa-train-bayes.php'

[2025-03-13 11:02:03.736] 237234:67d2ad1bb3742 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/eseyIGPJ' '/tmp/eseyIGPJ.gz' '--allow-root'] with exit code [1]
[2025-03-13 11:02:03.887] 237234:67d2ad1bb3742 ERR [extension/email-security] filemng failed: Archive: /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/eseyIGPJ.gz or
/tmp/eseyIGPJ.gz.zip, and cannot find /tmp/eseyIGPJ.gz.ZIP, period.
filemng: Error during unpacking of /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
unzip: cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

Plesk panel log-browser:
Code:
2025-03-14 11:02:03    
ERR
extension/email-security [332305:67d3fe9bb197a]
filemng failed: Archive:  /tmp/esC8s9Pw.gz
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/esC8s9Pw.gz or
        /tmp/esC8s9Pw.gz.zip, and cannot find /tmp/esC8s9Pw.gz.ZIP, period.
filemng: Error during unpacking of /tmp/esC8s9Pw.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

---

2025-03-14 11:02:03    
ERR
panel [332305:67d3fe9bb197a]
'/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/esC8s9Pw' '/tmp/esC8s9Pw.gz' '--allow-root' failed with code 1.

stdout:
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/esC8s9Pw.gz or
        /tmp/esC8s9Pw.gz.zip, and cannot find /tmp/esC8s9Pw.gz.ZIP, period.
filemng: Error during unpacking of /tmp/esC8s9Pw.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

stderr:
Archive:  /tmp/esC8s9Pw.gz
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/esC8s9Pw.gz or
        /tmp/esC8s9Pw.gz.zip, and cannot find /tmp/esC8s9Pw.gz.ZIP, period.
filemng: Error during unpacking of /tmp/esC8s9Pw.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

---

2025-03-14 11:02:03    
ERR
util_exec [332305:67d3fe9bb197a]
proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/esC8s9Pw' '/tmp/esC8s9Pw.gz' '--allow-root'] with exit code [1]

---

2025-03-13 11:02:03    
ERR
extension/email-security [237234:67d2ad1bb3742]
filemng failed: Archive:  /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/eseyIGPJ.gz or
        /tmp/eseyIGPJ.gz.zip, and cannot find /tmp/eseyIGPJ.gz.ZIP, period.
filemng: Error during unpacking of /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

---

2025-03-13 11:02:03    
ERR
panel [237234:67d2ad1bb3742]
'/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/eseyIGPJ' '/tmp/eseyIGPJ.gz' '--allow-root' failed with code 1.

stdout:
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/eseyIGPJ.gz or
        /tmp/eseyIGPJ.gz.zip, and cannot find /tmp/eseyIGPJ.gz.ZIP, period.
filemng: Error during unpacking of /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

stderr:
Archive:  /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/eseyIGPJ.gz or
        /tmp/eseyIGPJ.gz.zip, and cannot find /tmp/eseyIGPJ.gz.ZIP, period.
filemng: Error during unpacking of /tmp/eseyIGPJ.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

---

2025-03-13 11:02:03    
ERR
util_exec [237234:67d2ad1bb3742]
proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/eseyIGPJ' '/tmp/eseyIGPJ.gz' '--allow-root'] with exit code [1]

Is the cronjob still correct? What exactly can i do here? Thanks for any help and hints!
 
Hello, @AvaDev . If the issue still persists, could you please check the number of emails in the queue:

postqueue -p | wc -l

If there are, please try temporarily disabling the cron job until the queue is cleaned. You might try flushing it using:

postqueue -f

If there aren't many queued emails, what I can suggest is re-installing the Plesk Email Security extension as there might be some missing or corrupted files. If you decide to take this route, please make sure to create a backup:

plesk db dump emailsecurity > emailsecurity.sql

If the issue continues afterward, I would advise on getting in touch with Plesk support for further investigation.
 
@Sebahat.hadzhi thanks for your feedback. The email queue was empty. I have reinstalled the Plesk Email Security Pro extension including clamav. All settings have been reconfigured via the UI and the Bayes database is empty. The cronjob is now running in the early morning hours. Unfortunately the problem still exists.

Code:
Cron <psaadm@REMOVED> (/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/email-security/scripts/sa-train-bayes.php')  > /dev/null
[2025-03-19 03:20:03.693] 830463:67da29d3a8ed3 ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'unzip-noclobber' '-d' '/tmp/esiaJDdT' '/tmp/esiaJDdT.gz' '--allow-root'] with exit code [1]
[2025-03-19 03:20:03.825] 830463:67da29d3a8ed3 ERR [extension/email-security] filemng failed: Archive:  /tmp/esiaJDdT.gz
filemng: /usr/bin/unzip execution failed:
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/esiaJDdT.gz or
        /tmp/esiaJDdT.gz.zip, and cannot find /tmp/esiaJDdT.gz.ZIP, period.
filemng: Error during unpacking of /tmp/esiaJDdT.gz
filemng: /usr/bin/unzip execution failed:
unzip:  cannot find or open ./--allow-root, ./--allow-root.zip or ./--allow-root.ZIP.
filemng: Error during unpacking of --allow-root

The error occurs since the extension update on 13.03.2025 / v1.5.12-5258, but perhaps only in the Pro version, as the bayes training is only available in the Pro version.
 
Thank you for the confirmation and your cooperation, @AvaDev . I forwarded the report to our engineers for further review and this behavior was recognized as a bug identified with ID EXTPLESK-8847. The ETA for the fix release is by the end of the week. At this point, I cannot provide a workaround. Thank you for bringing our attention to the issue.
 
The same error was present...

The update has been installed. However, there is now a different and new error!

2025-03-20 18:03:41
ERR
panel [1011927:67dc4a693d095]

Long task executor: id=619 completed with error: Scheduled task failed:
0: /opt/psa/admin/plib/Task/Async/Executor.php:56
Task_Async_Executor->execute()
1: /opt/psa/admin/plib/scripts/task-async-executor.php:6


2025-03-20 18:03:41
ERR
panel [1011927:67dc4a693d095]

Task failed: id=619, pid=1011927, type=scheduler-run-task, error=PleskUserException: Scheduled task failed
file: /opt/psa/admin/plib/Scheduler/RunTask.php
line: 54
code: 0
trace: #0 /opt/psa/admin/plib/Db/Table/Broker/LongTasks.php(178): Scheduler_RunTask->run()
#1 /opt/psa/admin/plib/Db/Table/Broker/LongTasks.php(113): Db_Table_Broker_LongTasks->_syncStart(object of type Db_Table_Row_LongTask)
#2 /opt/psa/admin/plib/Task/Async/Executor.php(54): Db_Table_Broker_LongTasks->runTaskWithinExecutor(object of type Db_Table_Row_LongTask)
#3 /opt/psa/admin/plib/scripts/task-async-executor.php(6): Task_Async_Executor->execute()


2025-03-20 18:03:41
ERR
extension/email-security [1011935:67dc4a6d09ca0]

Execution salearn has failed with exit code 1, stdout: Learned tokens from 0 message(s) (0 message(s) examined)
, stderr:
 
Back
Top