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
Unable to log in to matomo after 4.0.3 upgrade - Nginx/Ubuntu #16866
Comments
Hi, Could you check if https://forum.matomo.org/t/cant-sign-in-on-my-own-servers-matomo/39537/4?u=lukas applies for you. Some other people reported it also here: |
The condition of "Nginx and are using multiple domains, for example (matomo.onesite.example and matomo.anothersite.example)" does not apply in our case. I've reviewed and contributed to both of those posts before submitting this bug. |
@psec not sure if you say the recent comment in the forum. Does it maybe help to clear cookies? Any chance you are accessing your Matomo with HTTP instead of HTTPS? OR maybe there is a redirect somehow to a different domain on log in? |
You could temporarily also try setting in the |
@tsteur yes, clearing cookies and cache was the first thing that was tested. Have tried a number of edits listed in the various posts in the user forum to config.ini.php including the above without success. No, I am not trying to access over HTTP instead of HTTPS. Guys, nothing has changed on my end except the 4.0.3 update. I had zero issues before applying this update. I do appreciate the suggested workarounds but this is a regression and should be treated as such. |
@psec we are treating it as such but we need to find out what helps/what causes it as it's not clear just yet unfortunately. If you could maybe try that other config setting that would help too. We're not understanding yet what is causing it and we can't reproduce it ourselves. |
I had the same problem. For me the problem was that I was using two different domains to access Matomo, even though it worked perfectly before the upgrade to 4.0.3 from version 3. I fixed it by removing the second domain from my nginx configs and from the |
Hi @venarius, This sounds a lot like what I described in https://forum.matomo.org/t/cant-sign-in-on-my-own-servers-matomo/39537/4?u=lukas |
Just updated to matomo 4.0.4 . I also use Nginx. Login is not longer possible. Same issue as above. |
@Findus23 workaround works, but why not use $_SERVER['HTTP_HOST'] as fallback? The web has 2 domains example.com and www.example.com and everything is redirected to www. SERVER_NAME is without www and the added trusted host won't work/fix it. I had www.example.com in trustedHosts and added example.com in a new line as well in array syntax. |
I don't have two domains. I use Nginx with Apache. Matomo sees my hostname as |
I had the same problem on my dev machine. I use the following url: https://mylocalurl:8080 When I try to login, I get the same error msg, because the $origins array doesn't contain mylocalurl |
that logic was already updated in 3.14.0 @psec or someone else reading this to do you remember from what Matomo version you updated to Matomo 4? |
Any chance you have the |
I was on the latest stable v3 before i updated. No suggested updates the last weeks. This was always enabled [General]
force_ssl=1 |
@tricsusz could you check in your |
This should hopefully be fixed with #16899. Please let us know if the issue still occurs in Matomo 4.0.5 |
I can confirm that after manually adding your changes to my files and using the following settings in config.ini.php: |
Hi @Bllacky can you also log in when |
I did the manual merge so I could log in and do the update to matomo 4.0.5 from the matomo. |
Great, thanks for testing and confirming @Bllacky |
No problem! It's the least I could do given all your hard work on this. |
@tsteur works without the extra line in vhost- fixed for me |
I am able to log in now after updating to 4.0.5. Appreciate your attention to this issue! I will close this bug. |
Running Nginx on Ubuntu, using the nginx config supplied here: https://github.com/matomo-org/matomo-nginx and no changes to the default matomo config.
After upgrading to 4.0.3, I am unable to log in to matomo receiving the error:
Error: Form security failed. Please reload the form and check that your cookies are enabled. If you use a proxy server, you must configure Matomo to accept the proxy header that forwards the Host header. Also, check that your Referrer header is sent correctly.
It seems a number of users are experiencing this bug after visiting the bugs section of the user forums.
The text was updated successfully, but these errors were encountered: