Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] matomo just upgraded from 5.1.1 to 5.1.2 : console ok, web error 500 #22631

Open
4 tasks done
franck-paul opened this issue Oct 1, 2024 · 4 comments
Open
4 tasks done
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@franck-paul
Copy link

What happened?

Cannot use the web interface, only console is working

What should happen?

Should have web interface running, only got:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.58 (Unix) OpenSSL/1.1.1u mod_wsgi/4.9.4 Python/3.11 mod_fastcgi/mod_fastcgi-SNAP-0910052141 Server at localhost.local Port 443

How can this be reproduced?

Had Matomo 5.1.1 installed on local machine, PHP 8.3, MySQL 5.7, Apache 2.4, everything running.
Update directly from web interface and got error 500
Nothing in Apache/PHP logs
MySQL log:
2024-10-01T06:12:25.490880Z 563 [Note] Aborted connection 563 to db: 'matomo' user: 'root' host: 'localhost' (Got an error reading communication packets)
2024-10-01T06:12:34.321220Z 521 [Note] Aborted connection 521 to db: 'unconnected' user: 'root' host: 'localhost' (Got an error reading communication packets)
Tried 127.0.0.1 instead of localhost (for db host) without any success.

Matomo version

5.1.2

PHP version

8.3.10

Server operating system

MacOS 15.0

What browsers are you seeing the problem on?

Firefox, Chrome

Computer operating system

MacOS 15.0

Relevant log output

2024-10-01T06:12:25.490880Z 563 [Note] Aborted connection 563 to db: 'matomo' user: 'root' host: 'localhost' (Got an error reading communication packets)
2024-10-01T06:12:34.321220Z 521 [Note] Aborted connection 521 to db: 'unconnected' user: 'root' host: 'localhost' (Got an error reading communication packets)

Validations

@franck-paul franck-paul added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Oct 1, 2024
@franck-paul
Copy link
Author

Note that all console command run fine (core:update, core:purge-old-archive-data, …)

@franck-paul
Copy link
Author

It seems that the line 34 in file core/Intl/Locale.php : setlocale(LC_CTYPE, ''); causes the error on MacOS.

@des-innocraft
Copy link

@franck-paul Thank you for creating the issue and bringing this to our attention. We are trying to replicate the error and can we ask if you are still experiencing the issue?

If yes, did you encounter the error 500 after clicking this button on the Dashboard?
Screenshot 2024-10-21 at 4 40 05 AM

@michalkleiner
Copy link
Contributor

This is most likely a duplicate of #21126. The issue wouldn't relate to the upgrade of Matomo, it's likely something else changed at the same time within the OS itself, such as a version upgrade of Apache or PHP etc.
I don't think we have a solution to this for MacOS.
@franck-paul are you by chance running Laravel Valet as your webserver setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

3 participants