mattermost/mattermost-docker

Mattermost not loading, just three dots animation forever

jagogardiner opened this issue · 1 comments

Mattermost 5.26.0
Chrome 84.0.4147.135

We're using Traefik + MySQL and Cloudflare to proxy with SSL, Mattermost isn't running in SSL. I've managed to get it to the point of the requests going through to the server, and Mattermost is seeming to communicate with the database just fine. Unfortunately, I'm just sat on this loading screen:
image

The same configuration works via localhost (without SSL). Requests are going through to Mattermost:

{"level":"debug","ts":1598307452.635017,"caller":"web/handlers.go:100","msg":"Received HTTP request","method":"GET","url":"/","request_id":"e6wuxe7grjg3jc8tmd1shoj68e","status_code":"200"},
But I'm not getting to the first setup screen like my local server. The only error in my developer console is this:

Refused to load the script 'https://ajax.cloudflare.com/cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js' because it violates the following Content Security Policy directive: "script-src 'self' cdn.rudderlabs.com/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Not sure if this is related but that's the only error I can see, even Mattermost on debug isn't spitting any errors out, just the get requests. I'm really stumped, any help would be appreciated!

Hi @nysascape, I had your same problem. Without cloudflare everything works fine. In the end I found the solution. Just disable "Rocket Loader" in cloudflare or, as I did, create an page rule just for the mattermost domain that disables Rocket Loader.

grafik

Some links:
https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-
https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts-

Hope this solve your problem. Regards.