Amazon Ses Web Api doesn't work anymore

Ludovic

Member
Hi there,
First of all, I must tell you that I'm glad to be able to post here again, as my support had expired (and I took the opportunity to subscribe to the extended offer).

Anyway, I'm writing to you today to let you know that the Amazon Ses Web Api delivery server is doing its own again after the last update (it's pretty regular), I had to switch on Amazon SMTP so that everything sends correctly.

Thank you for your help.
Ludovic from Reunion island
 
Also, a screenshot of my sendings before 2.0 with Amazon SES Web API as proof that it worked
 

Attachments

  • Screen Shot 2021-08-19 at 19.52.36.png
    Screen Shot 2021-08-19 at 19.52.36.png
    58.8 KB · Views: 5
Also, a screenshot of my sendings before 2.0 with Amazon SES Web API as proof that it worked
Can you try to pause then unpause it and see how it behaves afterwards. Also can you check for some errors in: Backend > Miscellaneous > Application log
 
Here a screencast of what I tried:

And here my log (I have the impression that it is the Backup Manager extension that is causing problems):
Code:
2021/08/20 00:00:04 [error] [exception.Error] Error: Undefined class constant 'VERSION' in /home/kingcourriel/domains/app.kingcourriel.fr/public_html/vendor/guzzlehttp/guzzle/src/functions.php:136
Stack trace:
#0 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php(40): GuzzleHttp\default_user_agent()
#1 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php(87): Aws\Handler\GuzzleV6\GuzzleHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#2 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php(126): Aws\WrappedHttpHandler->__invoke(Object(Aws\Command), Object(GuzzleHttp\Psr7\Request))
#3 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/Middleware.php(126): Aws\ClientSideMonitoring\AbstractMonitoringMiddleware->__invoke(Object(Aws\Command), Object(GuzzleHttp\Psr7\Request))
#4 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/FulfilledPromise.php(41): Aws\Middleware::Aws\{closure}(Object(Aws\Credentials\Credentials))
#5 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\FulfilledPromise::GuzzleHttp\Promise\{closure}()
#6 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run(true)
#7 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#8 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#9 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#10 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#11 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): GuzzleHttp\Promise\Promise->wait()
#12 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/extensions/backup-manager/vendors/php72/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute(Object(Aws\Command))
#13 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/common/models/DeliveryServerAmazonSesWebApi.php(101): Aws\AwsClient->__call('sendRawEmail', Array)
#14 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(2051): DeliveryServerAmazonSesWebApi->sendEmail(Array)
#15 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(1508): SendCampaignsCommand->processSubscribersLoop(Array)
#16 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(1265): SendCampaignsCommand->sendCampaignStep3(Array)
#17 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(1138): SendCampaignsCommand->sendCampaignStep2(Array)
#18 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(982): SendCampaignsCommand->sendCampaignStep1(311, 1)
#19 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(510): SendCampaignsCommand->sendCampaignStep0(Array)
#20 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/commands/SendCampaignsCommand.php(253): SendCampaignsCommand->process()
#21 [internal function]: SendCampaignsCommand->actionIndex()
#22 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleCommand.php(178): ReflectionMethod->invokeArgs(Object(SendCampaignsCommand), Array)
#23 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#24 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#25 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/vendor/yiisoft/yii/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#26 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/init.php(216): CApplication->run()
#27 /home/kingcourriel/domains/app.kingcourriel.fr/public_html/apps/console/console.php(23): require_once('/home/kingcourr...')
#28 {main}
 
And here my log (I have the impression that it is the Backup Manager extension that is causing problems):

There are notes in the upgrade steps that say before upgrading, you need to disable the existing extensions that are enabled (except core extensions), run the upgrade, and then upgrade the extensions as well.

In your case, go to envato, download latest version of the backup manager, and upload it again in MailWizz, this will fix your sending problem.
As a reference, here's the notes for when upgrading: https://kb.mailwizz.com/articles/upgrading-notes-for-maiwizz-1-x-to-mailwizz-2-x/
 
There are notes in the upgrade steps that say before upgrading, you need to disable the existing extensions that are enabled (except core extensions), run the upgrade, and then upgrade the extensions as well.

In your case, go to envato, download latest version of the backup manager, and upload it again in MailWizz, this will fix your sending problem.
As a reference, here's the notes for when upgrading: https://kb.mailwizz.com/articles/upgrading-notes-for-maiwizz-1-x-to-mailwizz-2-x/
I assure you that I followed these instructions for the upgrade, and that Backup Manager asked me for an update afterwards, but I will redo the procedure and I will keep you posted ...
 
Okay guys, this is what I accomplished:
# 1 Campaigns paused, app and API offline, all extensions disabled, default language US
# 2 Re-install the latest version (but I have a doubt on my command line)
# 3 Installation of extension updates (Backup manager and Subscribe by email concerning me)
Good news: no more errors in the log application

# 4 Disabling send-campaign cron from the server
# 5 Launching the debug send-campaign from the command line

Bad news: campaign sending via Amazon SES Web API remains in 'processing (0%)'

If you have other leads, I am interested.

Here a saved output of my ssh command lines:
Code:
root@sr:~# rsync -av --update --progress /home/############/domains/app.############.fr/maj_tmp/update/ /home/############/domains/app.############.fr/public_html/
sending incremental file list
./
apps/
apps/common/extensions/

sent 436,135 bytes  received 3,554 bytes  293,126.00 bytes/sec
total size is 161,988,875  speedup is 368.42

------------------------------------------------------------------------------------------------------

root@sr:~# /usr/bin/php /home/############/domains/app.############.fr/public_html/apps/console/console.php update
[2021-08-20 13:18:25] - You are already at latest version!

------------------------------------------------------------------------------------------------------

root@sr:~# rsync -av --update --progress /home/############/domains/app.############.fr/maj_tmp/backup-manager/ /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/
sending incremental file list
./
BackupManagerExt.php
         22,098 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=39/41)
_info/
backend/
backend/controllers/
backend/controllers/BackupManagerExtBackendAmazonS3Controller.php
          1,800 100%  878.91kB/s    0:00:00 (xfr#2, to-chk=29/41)
backend/controllers/BackupManagerExtBackendDigitaloceanSpacesController.php
          1,869 100%  912.60kB/s    0:00:00 (xfr#3, to-chk=28/41)
backend/controllers/BackupManagerExtBackendDropboxController.php
          1,784 100%  871.09kB/s    0:00:00 (xfr#4, to-chk=27/41)
backend/controllers/BackupManagerExtBackendFtpController.php
          1,755 100%  856.93kB/s    0:00:00 (xfr#5, to-chk=26/41)
backend/controllers/BackupManagerExtBackendSettingsController.php
          1,955 100%  954.59kB/s    0:00:00 (xfr#6, to-chk=25/41)
backend/controllers/BackupManagerExtBackendSftpController.php
          1,762 100%  860.35kB/s    0:00:00 (xfr#7, to-chk=24/41)
backend/controllers/BackupManagerExtBackendSnapshotsController.php
          4,316 100%    2.06MB/s    0:00:00 (xfr#8, to-chk=23/41)
backend/views/
backend/views/amazon-s3/
backend/views/amazon-s3/index.php
          3,346 100%    1.60MB/s    0:00:00 (xfr#9, to-chk=15/41)
backend/views/digitalocean-spaces/
backend/views/digitalocean-spaces/index.php
          2,958 100%    1.41MB/s    0:00:00 (xfr#10, to-chk=14/41)
backend/views/dropbox/
backend/views/dropbox/index.php
          2,504 100%    1.19MB/s    0:00:00 (xfr#11, to-chk=13/41)
backend/views/ftp/
backend/views/ftp/index.php
          3,353 100%    1.60MB/s    0:00:00 (xfr#12, to-chk=12/41)
backend/views/settings/
backend/views/settings/index.php
          4,102 100%    1.96MB/s    0:00:00 (xfr#13, to-chk=11/41)
backend/views/sftp/
backend/views/sftp/index.php
          3,354 100%    1.60MB/s    0:00:00 (xfr#14, to-chk=10/41)
backend/views/snapshots/
backend/views/snapshots/list.php
          7,587 100%    3.62MB/s    0:00:00 (xfr#15, to-chk=9/41)
common/
common/models/
common/models/BackupManagerExtCommon.php
          6,045 100%    2.88MB/s    0:00:00 (xfr#16, to-chk=5/41)
common/models/BackupManagerSnapshot.php
         20,341 100%    6.47MB/s    0:00:00 (xfr#17, to-chk=0/41)

sent 92,772 bytes  received 410 bytes  186,364.00 bytes/sec
total size is 437,935  speedup is 4.70

------------------------------------------------------------------------------------------------------

root@sr:~# rsync -av --update --progress /home/############/domains/app.############.fr/maj_tmp/subscribe-by-email/ /home/############/domains/app.############.fr/public_html/apps/extensions/subscribe-by-email/
sending incremental file list
./
SubscribeByEmailExt.php
          4,661 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=23/25)
worker.php
            700 100%  683.59kB/s    0:00:00 (xfr#2, to-chk=22/25)
_info/
_info/590x300-subscribe-by-email.jpg
        115,638 100%   22.06MB/s    0:00:00 (xfr#3, to-chk=18/25)
_info/80x80-subscribe-by-email.png
          4,525 100%  883.79kB/s    0:00:00 (xfr#4, to-chk=17/25)
_info/README.txt
          2,654 100%  518.36kB/s    0:00:00 (xfr#5, to-chk=16/25)
_info/ss.zip
        105,242 100%   16.73MB/s    0:00:00 (xfr#6, to-chk=15/25)
_info/ss/
_info/ss/1.jpg
        115,638 100%   15.75MB/s    0:00:00 (xfr#7, to-chk=13/25)
backend/
backend/controllers/
backend/controllers/SubscribeByEmailExtBackendSettingsController.php
          1,748 100%  243.86kB/s    0:00:00 (xfr#8, to-chk=10/25)
backend/views/
backend/views/settings/
backend/views/settings/index.php
          7,235 100% 1009.35kB/s    0:00:00 (xfr#9, to-chk=8/25)
common/
common/components/
common/components/utils/
common/components/utils/SubscribeByEmailWorker.php
         13,483 100%    1.61MB/s    0:00:00 (xfr#10, to-chk=3/25)
common/models/
common/models/SubscribeByEmailExtCommon.php
          2,930 100%  357.67kB/s    0:00:00 (xfr#11, to-chk=2/25)
common/views/
common/views/info-subscribe-form.php
          1,756 100%  214.36kB/s    0:00:00 (xfr#12, to-chk=1/25)
common/views/info-unsubscribe-form.php
          1,779 100%  217.16kB/s    0:00:00 (xfr#13, to-chk=0/25)

sent 379,359 bytes  received 326 bytes  759,370.00 bytes/sec
total size is 377,989  speedup is 1.00

------------------------------------------------------------------------------------------------------

root@sr:~# php -q /home/############/domains/app.############.fr/public_html/apps/console/console.php send-campaigns --verbose=1
[2021-08-20 14:13:09] - Starting the work for this batch...
[2021-08-20 14:13:09] - Loading 1 campaigns, starting with offset 0...
[2021-08-20 14:13:09] - Found 1 campaigns and now starting processing them...
[2021-08-20 14:13:09] - Since PCNTL is active, we will send 5 campaigns in parallel and for each campaign, 5 batches of subscribers in parallel.
[2021-08-20 14:13:09] - Starting pre-checks for campaigns...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Starting...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Populating customer data...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Pre-counting campaign subscribers...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Pre-counting campaign subscribers, start counting...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Pre-counting campaign subscribers, finished counting in 0.00042 seconds...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Finding campaign max subscribers count and adjusting quota left...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Currently quota left is 75000 and campaign available subscribers for this batch is 21...
[2021-08-20 14:13:09] - [Worker 1] Campaign id 317 pre-checks: Done!
[2021-08-20 14:13:09] - Campaigns pre-checks are done now, it took 0.21061 seconds!
[2021-08-20 14:13:09] - Campaign Worker #1 looking into the campaign with ID: 317
[2021-08-20 14:13:09] - This campaign belongs to Ludovic ######### (uid: #############).
[2021-08-20 14:13:09] - Changing the campaign status into PROCESSING!
[2021-08-20 14:13:10] - This cycle completed in 1.72499 seconds and used 2 MB of memory!
[2021-08-20 14:13:10] - CPU usage in last minute: 1.09, in last 5 minutes: 1.20, in last 15 minutes: 1.24!
 
BREAKING NEWS!
Something happened in the middle of the night, all the emails in 'processing (0%)' were sent, and this morning by retrying a sending, everything goes correctly from now on, but I got this error in my application log:

Code:
2021/08/20 20:02:13 [error] [exception.Error] Error: Undefined class constant 'FLYSYSTEM_MIN_PHP_VERSION' in /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/common/models/BackupManagerExtAmazonS3.php:122
Stack trace:
#0 /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/BackupManagerExt.php(598): BackupManagerExtAmazonS3->getIsEnabled()
#1 /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/BackupManagerExt.php(267): BackupManagerExt->sendBackupRemote(Object(BackupManagerSnapshot), Object(BackupManagerExtAmazonS3))
#2 /home/############/domains/app.############.fr/public_html/apps/common/components/managers/HooksManager.php(113): BackupManagerExt->_sendBackupToAmazonS3(Object(CEvent))
#3 /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/common/models/BackupManagerSnapshot.php(489): HooksManager->doAction('backup_manager_...', Object(CEvent))
#4 /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/common/models/BackupManagerSnapshot.php(392): BackupManagerSnapshot->onBackupFinish(Object(CEvent))
#5 /home/############/domains/app.############.fr/public_html/apps/extensions/backup-manager/BackupManagerExt.php(244): BackupManagerSnapshot->backup()
#6 /home/############/domains/app.############.fr/public_html/apps/common/components/managers/HooksManager.php(113): BackupManagerExt->_runBackup(Object(DailyCommand))
#7 /home/############/domains/app.############.fr/public_html/apps/console/commands/DailyCommand.php(53): HooksManager->doAction('console_command...', Object(DailyCommand))
#8 [internal function]: DailyCommand->actionIndex()
#9 /home/############/domains/app.############.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleCommand.php(178): ReflectionMethod->invokeArgs(Object(DailyCommand), Array)
#10 /home/############/domains/app.############.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#11 /home/############/domains/app.############.fr/public_html/vendor/yiisoft/yii/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#12 /home/############/domains/app.############.fr/public_html/vendor/yiisoft/yii/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#13 /home/############/domains/app.############.fr/public_html/apps/init.php(216): CApplication->run()
#14 /home/############/domains/app.############.fr/public_html/apps/console/console.php(23): require_once('/home/#########...')
#15 {main}
---
 
Last edited:
Undefined class constant 'FLYSYSTEM_MIN_PHP_VERSION' in /home
This is something from the old version of the backup manager :(
Please get latest version of the backup manager and upload it via FTP, but first, via FTP, delete the one you already have.
It has to go in the /apps/extensions folder.
 
This is something from the old version of the backup manager :(
Please get latest version of the backup manager and upload it via FTP, but first, via FTP, delete the one you already have.
It has to go in the /apps/extensions folder.
Hi guys, thank you very much for your guidance, everything looks okay now, no more outdated cron jobs and errors in my log. May the force be with you!
 
Back
Top