Mautic
4.1.0
PHP 7.4.3 :
*MySQL version 8.0.25-0ubuntu0.20.04.1
Apache Error Log
[Sun Dec 05 00:26:23.615442 2021] [fcgid:warn] [pid 3809488] [client 162.158.26.13:56518] mod_fcgid: stderr: PHP Notice: fwrite(): write of 877 bytes failed with errno=122 Disk quota exceeded in /home/training/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 133, referer: Mautic
[Sun Dec 05 00:26:23.615464 2021] [fcgid:warn] [pid 3809488] [client 162.158.26.13:56518] mod_fcgid: stderr: PHP Notice: fwrite(): write of 251 bytes failed with errno=122 Disk quota exceeded in /home/training/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 133, referer: Mautic
[Sun Dec 05 00:26:23.615467 2021] [fcgid:warn] [pid 3809488] [client 162.158.26.13:56518] mod_fcgid: stderr: PHP Warning: SessionHandler::write(): write wrote less bytes than requested in /home/training/public_html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php on line 66, referer: Mautic
[Sun Dec 05 00:26:23.615470 2021] [fcgid:warn] [pid 3809488] [client 162.158.26.13:56518] mod_fcgid: stderr: PHP Notice: fwrite(): write of 8192 bytes failed with errno=122 Disk quota exceeded in /home/training/public_html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 133, referer: Mautic
[Sun Dec 05 00:26:23.615472 2021] [fcgid:warn] [pid 3809488] [client 162.158.26.13:56518] mod_fcgid: stderr: PHP Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /home/training/tmp) in /home/training/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php on line 268, referer: Mautic
[Sun Dec 05 00:26:31.121177 2021] [fcgid:warn] [pid 3789490] [client 162.158.26.13:10136] mod_fcgid: stderr: PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/training/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php on line 156, referer: Mautic
[Sun Dec 05 02:21:37.699532 2021] [fcgid:warn] [pid 3969018] (32)Broken pipe: [client 172.70.142.187:10702] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: Mautic
[Sun Dec 05 02:35:35.172439 2021] [ssl:warn] [pid 3990071] AH01906: training.sohoby.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Dec 05 02:35:35.185553 2021] [ssl:warn] [pid 3990072] AH01906: training.sohoby.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
These errors are showing in the Mautic log :
[2021-12-05 00:00:51] mautic.WARNING: Command mautic:update:apply
exited with status code 1
[2021-12-05 00:01:01] mautic.NOTICE: Symfony\Component\Console\Exception\RuntimeException: The “-y” option does not exist. (uncaught exception) at /home/training/public_html/vendor/symfony/console/Input/ArgvInput.php line 187 while running console command mautic:update:apply
[2021-12-05 00:01:01] mautic.WARNING: Command mautic:update:apply
exited with status code 1
[2021-12-05 00:01:08] mautic.NOTICE: TypeError: Argument 1 passed to Swift_Transport_AbstractSmtpTransport::send() must be an instance of Swift_Mime_SimpleMessage, bool given, called in /home/training/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/FileSpool.php on line 169 (uncaught exception) at /home/training/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 178 while running console command swiftmailer:spool:send
[2021-12-05 00:01:08] mautic.WARNING: Command swiftmailer:spool:send
exited with status code 1
[2021-12-05 00:01:10] mautic.NOTICE: Symfony\Component\Console\Exception\RuntimeException: The “-Y” option does not exist. (uncaught exception) at /home/training/public_html/vendor/symfony/console/Input/ArgvInput.php line 187 while running console command mautic:update:apply
[2021-12-05 00:01:10] mautic.WARNING: Command mautic:update:apply
exited with status code 1
[2021-12-05 00:04:38] mautic.NOTICE: Symfony\Component\Console\Exception\CommandNotFoundException: Command “cache:wamup” is not defined. Did you mean one of these? cache:clear cache:pool:clear cache:pool:delete cache:pool:list cache:pool:prune cache:warmup (uncaught exception) at /home/training/public_html/vendor/symfony/console/Application.php line 676 while running console command UNKNOWN
[2021-12-05 00:05:39] mautic.ERROR: Invalid clickthrough value: Yjo4OntmOjk6ImZiaGVkZiI7Yjo1Ont2OjM7Zjo0NzoiZGJ6Y2J2dGEuZmlmYWciO3Y6NDt2Ojk7fWY6ODoiZnpidnkiO3Y6ODtmOjc6ImZnYmciO2Y6NTU6Ijk0YjI0M2I1NDE5MmM1ODMxOTAzMjYiO2Y6NzoieWZiZSI7Zjo4OiI1MDMwNSI7ZjowOiJkdWJhYWZ5IjtiOjQ6e2Y6ODoiZnpidnkiO3Y6ODt9fQ== {“exception”:“[object] (Mautic\CoreBundle\Exception\InvalidDecodedStringException(code: 0): The string b:8:{f:9:"fbhedf";b:5:{v:3;f:47:"dbzcbvta.fifag";v:4;v:9;}f:8:"fzbvy";v:8;f:7:"fgbg";f:55:"94b243b54192c583190326";f:7:"yfbe";f:8:"50305";f:0:"dubaafy";b:4:{f:8:"fzbvy";v:8;}} is not a serialized array at /home/training/public_html/app/bundles/CoreBundle/Helper/ClickthroughHelper.php:46)”}
[2021-12-05 00:06:33] mautic.NOTICE: TypeError: Argument 1 passed to Swift_Transport_AbstractSmtpTransport::send() must be an instance of Swift_Mime_SimpleMessage, bool given, called in /home/training/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/FileSpool.php on line 169 (uncaught exception) at /home/training/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 178 while running console command mautic:emails:send
[2021-12-05 00:06:33] mautic.WARNING: Command mautic:emails:send
exited with status code 1
Your problem
I can send emails without issues when quee is not enabled. But when I try to use quee, emails are not sent. I am using an external SMTP server (postfix) on another self hosted ubuntu machine.
This all started after a huge campaign that I sent (approx 70K emails). I thought all emails were sent, but seems like some are stuck in spool.
Also I do not know how to check the local quee/spool. I read somewhere that spooling is only done if I use the local system for sending emails. but in my case I am using an external smtp, so will 2 places will be used for spooling? (one on my location machine and the other on the external one).
On the other machine I am using virtualmin and postfix . I am able to see the messages in quee that are stuck due to blockage from other email providers. so I am clearing those messages…
Steps I have tried to fix the problem : when I try to run the following command manually:
/bin/console mautic:emails:send
I see the following:
NO OUTPUT GENERATED
and when I run the following:
bin/console swiftmailer:spool:send
it gives me:
[2021-12-05 00:49:20] Processing default mailer spool…
In AbstractSmtpTransport.php line 178:
Argument 1 passed to Swift_Transport_AbstractSmtpTransport::send() must be
an instance of Swift_Mime_SimpleMessage, bool given, called in /home/traini
ng/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/FileSpool.p
hp on line 169
swiftmailer:spool:send [–message-limit MESSAGE-LIMIT] [–time-limit TIME-LIMIT] [–recover-timeout RECOVER-TIMEOUT] [–mailer MAILER] [–transport TRANSPORT] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]
and when I run the following:
bin/console swiftmailer:spool:send --message-limit=20 --env=prod
it gives me:
[2021-12-05 00:51:49] Processing default mailer spool…
20 emails sent
I also tried clearing and warming the cache. Didn’t help.
Thanks in advance for your time.