[Solved] Login error - Browser blinks but not load the panel

Your software
My Mautic version is: 2.16
My PHP version is: PHP (7.2.34-21)
My Database type and version is: MySQL (10.5.10-MariaDB)
Nginx version: NGINX (1.18.0 )

Your problem
My problem is: When I try to log in, the browser blinks and doesn’t show the panel. It sticks on the login form.

These errors are showing in the log:

Server error log:

root@mauticevandro:/var/www/info.evandropastor.com/logs# cat error.log 
2021/05/31 01:26:53 [crit] 833#833: *905 SSL_read_early_data() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 74.82.47.2, server: 0.0.0.0:443
2021/05/31 13:20:14 [error] 833#833: *962 FastCGI sent in stderr: "PHP message: PHP Notice:  SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/info.evandropastor.com/htdocs/vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php on line 86" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "POST /index.php/s/ajax?action=updateUserStatus&mauticUserLastActive=61&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:12:51 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:12:53 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-two-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:12:56 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:12:59 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-two-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:15:10 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=2&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:15:24 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:16:01 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-two-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 18:16:03 [error] 817#817: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: transport in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 210
PHP message: PHP Notice:  Undefined variable: mailer in /var/www/info.evandropastor.com/htdocs/app/bundles/EmailBundle/Controller/AjaxController.php on line 229" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET /s/ajax?action=email:testEmailServerConnection&mauticUserLastActive=1&mauticLastNotificationId= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com", referrer: "https://info.evandropastor.com/index.php/s/config/edit"
2021/05/31 22:09:07 [crit] 880#880: *102 SSL_read_early_data() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 104.131.181.99, server: 0.0.0.0:443
2021/06/01 02:31:48 [crit] 880#880: *130 SSL_read_early_data() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 64.62.197.32, server: 0.0.0.0:443
2021/06/01 03:02:18 [error] 880#880: *135 access forbidden by rule, client: 3.239.204.1, server: info.evandropastor.com, request: "GET /.env HTTP/1.1", host: "149.28.40.140"
2021/06/01 18:49:39 [error] 880#880: *253 FastCGI sent in stderr: "PHP message: Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '=', expecting ')' - in file /var/www/info.evandropastor.com/htdocs/app/config/local.php - at line 3" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com"
2021/06/01 18:50:47 [error] 845#845: *1 FastCGI sent in stderr: "PHP message: Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '=', expecting ')' - in file /var/www/info.evandropastor.com/htdocs/app/config/local.php - at line 3" while reading response header from upstream, client: 189.79.182.211, server: info.evandropastor.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php72-fpm.sock:", host: "info.evandropastor.com"

Steps I have tried to fix the problem:
I tried to clear the cache and rebuild the permissions.
I also tried to log in using 3 different browsers. Tried to use the anonymous mode.
None of those actions worked :confused:

Any idea how to solve this?

Thanks for all your help in advance.

open local.php file and fix the syntax error

Hey EJL!

Thanks for your help. This file is a nightmare. There is a way to generate another file like this or get one as a reference?

line 3 of my local.php file looks like this

‘db_driver’ => ‘pdo_mysql’,

Keep in mind support for Mautic 2.16 ended quite a while ago. I can review my files and settings to help troubleshoot the best I can but we will likely create as many problems and we solve. Have you considered upgrading to Mautic 3.X ?

You’re right. I will upgrade to 3.x. Trying to keep this install became a huge task.

Thanks for all your help :smiley:

No problem! I think you are making the right move. Mautic 3x is light years ahead of 2x and 4x is right around the corner. I have a 4x beta instance with 50+ million contacts and it runs flawlessly. 5 installs of 3.3.x with 5-10 million contacts and they run flawlessly as well.

Let us know if we can help you transition from 2.16 to 3.x
Check out Issue after restore Database in mautic - #2 by rcheesley

Great to hear you are using the Beta at scale (and :scream: … hope it is not a production instance!) - would love to get your thoughts / tests in the Mautic 4 channel on Slack as we are really struggling for testers which is holding back the release.

WOW!!! 50+ milion!!!
Going a bit off-topic here: do you mind sharing your server specifications? In my mind, to handle this number of contacts needs a huge server.

@evandropastor
6 mautic installs and 8 medium wordpress installs with moderate traffic.
2 x AMD EPYC 7282 - 2 Processors x 16 x 2.80 GHz
256 GB REG ECC
1.9 TB NVMe SSD + 1TB SSD for backups.
This is overkill as I am terrible at tuning Mariadb. Someone smarter than me could probably run this on a much smaller machine depending on the number of segments, campaigns, and email operations. Overall the machine hovers at 15%-25% CPU utilization and 25%-50% Memory looking at the last 30 days.
CRON timing mistakes will create problems and pruning the audit_log is imperative for my purposes.

Thanks for sharing!
Really impressive setup :slight_smile:

My setup is really basic: Vultr account with:
1 processor
1gb ram
32 GB NVMe