Mautic v5 - recently cannot login, page refreshes with no alert

Your software
My Mautic version is: 5.2.1
My PHP version is: 8.1.32
My Database type and version is: mysql Ver 15.1 Distrib 10.11.13-MariaDB, for Linux (x86_64) using readline 5.1

My problem is:
I cannot login on incognito pages, the only access to dashboard I have is via saved session. at first i had this empty alert:

        <div class="alert alert-growl alert-growl--error alert-dismissable alert-new">
        <span></span>
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><i class="ri-close-line"></i></button>
    </div>
but after few tries I don't have any alerts, even if password was wrong.

login_check status is 302, i see no errors in network.
in console i had warn on chrome: [DOM] Input elements should have autocomplete attributes (suggested: “current-password”): (More info: Create Amazing Password Forms) <input type=​"password" id=​"password" name=​"_password" class=​"form-control input-lg" required placeholder=​"Password"​ (full on image)
and SyntaxError: Invalid regular expression: invalid group specifier name (builder.js:1) on Safari

Zrzut ekranu 2025-05-29 o 12.44.02

These errors are showing in the log:
In my most recent logs:
/var/logs/mautic_prod-2025-05-28.php

[2025-05-28T13:00:42.228318+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:442702}

[2025-05-28T13:25:27.171238+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:444990}

[2025-05-28T16:56:38.111781+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:461072}

[2025-05-28T18:49:42.097404+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:467181}

[2025-05-28T19:05:09.145834+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:467996}

[2025-05-28T19:36:59.314476+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:470142}

[2025-05-28T19:37:41.447620+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:470185}

[2025-05-28T19:49:56.304093+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:471103}

[2025-05-28T22:57:00.027974+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:482184}

[2025-05-28T22:57:12.190657+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:482184}

/var/logs/mautic_prod-2025-05-29.php

[2025-05-29T08:45:38.252561+00:00] mautic.WARNING: PHP Warning - file_put_contents(/home/my-url/public_html/mautic.my-url.me/var/cache/prod/lastUpdateCheck.txt): Failed to open stream: Permission denied - in file /home/my-url/public_html/mautic.my-url.me/app/bundles/CoreBundle/Helper/UpdateHelper.php - at line 154 {“hostname”:“lyra.my-url.me”,“pid”:519024}

[2025-05-29T09:14:49.622769+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The directory “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/jms_serializer_default” is not writable.” at /home/my-url/public_html/mautic.my-url.me/vendor/jms/metadata/src/Cache/FileCache.php line 49 {“exception”:“[object] (InvalidArgumentException(code: 0): The directory “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/jms_serializer_default” is not writable. at /home/my-url/public_html/mautic.my-url.me/vendor/jms/metadata/src/Cache/FileCache.php:49)”} {“hostname”:“lyra.my-url.me”,“pid”:522631}

[2025-05-29T10:09:32.628499+00:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The directory “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/jms_serializer_default” is not writable.” at /home/my-url/public_html/mautic.my-url.me/vendor/jms/metadata/src/Cache/FileCache.php line 49 {“exception”:“[object] (InvalidArgumentException(code: 0): The directory “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/jms_serializer_default” is not writable. at /home/my-url/public_html/mautic.my-url.me/vendor/jms/metadata/src/Cache/FileCache.php:49)”} {“hostname”:“lyra.my-url.me”,“pid”:528204}

[2025-05-29T10:28:44.318867+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: “Cannot rename “/tmp/url_matching_routes.phpm44Ytx” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_matching_routes.php”: rename(/tmp/url_matching_routes.phpm44Ytx,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_matching_routes.php): Permission denied” at /home/my-url/public_html/mautic.my-url.me/vendor/symfony/filesystem/Filesystem.php line 316 {“exception”:“[object] (Symfony\Component\Filesystem\Exception\IOException(code: 0): Cannot rename “/tmp/url_matching_routes.phpm44Ytx” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_matching_routes.php”: rename(/tmp/url_matching_routes.phpm44Ytx,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_matching_routes.php): Permission denied at /home/my-url/public_html/mautic.my-url.me/vendor/symfony/filesystem/Filesystem.php:316)”} {“hostname”:“lyra.my-url.me”,“pid”:529940}

[2025-05-29T10:28:44.368778+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (“Cannot rename “/tmp/url_generating_routes.phpOOKYUP” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php”: rename(/tmp/url_generating_routes.phpOOKYUP,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php): Permission denied”). at /home/my-url/public_html/mautic.my-url.me/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {“exception”:“[object] (Twig\Error\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (“Cannot rename “/tmp/url_generating_routes.phpOOKYUP” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php”: rename(/tmp/url_generating_routes.phpOOKYUP,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php): Permission denied”). at /home/my-url/public_html/mautic.my-url.me/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\Component\Filesystem\Exception\IOException(code: 0): Cannot rename “/tmp/url_generating_routes.phpOOKYUP” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php”: rename(/tmp/url_generating_routes.phpOOKYUP,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php): Permission denied at /home/my-url/public_html/mautic.my-url.me/vendor/symfony/filesystem/Filesystem.php:316)”} {“hostname”:“lyra.my-url.me”,“pid”:529940}

[2025-05-29T10:28:44.401269+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (“Cannot rename “/tmp/url_generating_routes.phpOOKYUP” to “/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php”: rename(/tmp/url_generating_routes.phpOOKYUP,/home/my-url/public_html/mautic.my-url.me/var/cache/prod/url_generating_routes.php): Permission denied”). - in file /home/my-url/public_html/mautic.my-url.me/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 {“hostname”:“lyra.my-url.me”,“pid”:529940}

[2025-05-29T10:35:34.038788+00:00] mautic.WARNING: PHP Warning - file_put_contents(/home/my-url/public_html/mautic.my-url.me/var/cache/prod/lastUpdateCheck.txt): Failed to open stream: Permission denied - in file /home/my-url/public_html/mautic.my-url.me/app/bundles/CoreBundle/Helper/UpdateHelper.php - at line 154 {“hostname”:“lyra.my-url.me”,“pid”:530480}

/var/logs/prod-2025-05-29.php

[2025-05-29T09:04:15.401492+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:521301}

[2025-05-29T09:05:00.295790+00:00] app.ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. {“hostname”:“lyra.my-url.me”,“pid”:521507}

Steps I have tried to fix the problem:
i ran php bin/console cache:clear and rm -rf var/cache/* few times and tried /s/update/schema (it worked when i few years ago had problem with remaining The CSRF token is invalid on mautic 4)

Also i fixed SMTP error
(ERROR: [MAIL ERROR] Failed to authenticate on SMTP server with username “tech@my-url.me” using the following authenticators: “LOGIN”, “PLAIN”. Authenticator “LOGIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data”.”. Authenticator “PLAIN” returned “Expected response code “235” but got code “535”, with message “535 Incorrect authentication data)

But i still hav problem with login
I noticed issue with my segments, campaigns and emails that I added after noticing the problem - they tend to disappear from list sometimes and no emails are added to them.

I had same logs about permissions, i fixed this and then again cleared cache and restarted apache - then i once had successful login, but after that next tries were again reload without taking to dashboard. I’ll try to look up and maybe change session properties

It turned out the reason behind login problems was bad Cloudflare Cache Rule setting my coworker did.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.