• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Execution salearn has failed with exit code 1

se2e-dev

New Pleskian
Server operating system version
Debian 12.11
Plesk version and microupdate number
18.0.69 Update 3

Back then, the same error occurred… however, with the current version, the following issue still persists:

Code:
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

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()

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:

Although some time has passed, the error still occurs daily when running the cron job.
 
In order to gather more details about the error, I can recommend running:

/opt/psa/admin/bin/php /opt/psa/admin/plib/scripts/task-async-executor.php -task-id 619

Also, checking the /var/log/cron.log file for any relevant entries.

I am afraid, cannot identify the issue by the provided errors only.
 
I’m still stuck with the same issue and haven’t been able to resolve it.

The daily cronjob that runs:

Code:
/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php ‘/opt/psa/admin/plib/modules/email-security/scripts/sa-train-bayes.php’

keeps failing with the following error – and that’s all I get:

Code:
ERR
extension/email-security
Execution salearn has failed with exit code 1, stdout: Learned tokens from 0 message(s) (0 message(s) examined)
, stderr:

There are no additional logs or errors in /var/log/cron.log – just this message over and over again.

However, I’m 100% sure that there is plenty of spam data available for learning. Here’s an anonymized output showing the number of messages in various .Spam folders:

Code:
/var/qmail/mailnames/domain1.tld/user1/Maildir/.Spam: 1862


/var/qmail/mailnames/domain2.tld/user2/Maildir/.Spam: 1351


/var/qmail/mailnames/domain2.tld/user3/Maildir/.Spam: 1333


/var/qmail/mailnames/domain3.tld/info/Maildir/.Spam: 942


/var/qmail/mailnames/domain4.tld/info/Maildir/.Spam: 752


/var/qmail/mailnames/domain5.tld/info/Maildir/.Spam: 675


/var/qmail/mailnames/domain6.tld/user4/Maildir/.Spam: 584


/var/qmail/mailnames/domain7.tld/info/Maildir/.Spam: 536


/var/qmail/mailnames/domain8.tld/info/Maildir/.Spam: 523


/var/qmail/mailnames/domain9.tld/info/Maildir/.Spam: 490

Yet, salearn reports that 0 messages were processed.

I’m starting to think this might be a permissions issue, a broken script, or even an internal bug in the module.

Any help or guidance would be greatly appreciated!
 
Thank you for the update. I am still unsure what could be causing the issue. I would suggest opening a ticket with Plesk support for further investigation on your server. To sign-in and open a ticket please go to:


If you got your license from a reseller, your reseller is in charge of providing you with support. You can raise the inquiry with them and they can forward it to our team for further processing.

If the reseller does not provide support, here is an alternative to get support directly from Plesk:

 
Am I understanding correctly that if I subscribe to the support plan, I will be charged €10 per month – and if I cancel the subscription after one month, I only pay for that month? And if I need support again in a year, I can simply re-subscribe without having to pay for the months in between or make any back payments?
 
Additional note:

I’m unable to reproduce the issue either! On several other servers, this message does not appear, and at first glance, the configuration seems to be the same everywhere.

On those servers, the error only occurs when no emails are present, maybe once or twice a month – if at all, and definitely not daily.

As a result, we are experiencing serious spam issues!

In this context, is it possible to contact support specifically for the “Plesk Email Security” extension?

This extension was purchased directly through Plesk.
 
@se2e-dev , yes, you are right. You can cancel the subscription at any given moment and renew it in future if required without any outstanding payments. Considering the issue occurs only on one server indicates that the issue is likely related to the local configuration. However, that needs to be further checked on the server in question.
 
In this context, is it possible to contact support specifically for the “Plesk Email Security” extension?

This extension was purchased directly through Plesk.
Yes, if you purchased the paid version of “Plesk Email Security” extension you are eligible for support using the license key of the extension (and there is no need to purchase the additional support subscription).
 
Back
Top