Left menu disappeared

Hi,

We suddenly saw our left menu disappear (v 11.2 + 11.4). We’re on self hosted edition using docker compose with a caddy/cloudflare front end
We see the following queries return errors even after relogin, clear cookies, etc

  • https://[our domain]/api/v4/users/status/ids > api.context.session_expired.app_error
  • https://[our domain]/api/v4/users/me/channels > api.context.session_expired.app_error
  • https://[our domain]/api/v4/users/y7upkhksuf8htbxczord73uu6c/teams/464qs3dogfrnxpcsnane9jhihc/channels/categories > api.context.session_expired.app_error

The rest seems to work. We have plugins for Bitbucket, Google calendar and Wrangler. But disabling them + restart made no difference.
It’s weird to have this kind of half working app. And I have no idea why this started happening.

Our caddy config

{$MATTERMOST_DOMAIN} {

    reverse_proxy mattermost:8065 {

        header_up Host {host}
        header_up X-Real-IP {remote_host}
        header_up Upgrade {http.request.header.Upgrade}
        header_up Connection {http.request.header.Connection}
        header_up Cookie {http.request.header.Cookie}
    }
}

Any suggestions?

Kind regards,

Marc

So, I managed to resolve this after many, many hours by installing the ClearCache plugin and removing EVERYTHING for Mattermost. Manually removing Cookies, indexed db from the Application tab wasn’t enough. This totally sucks, since if I wasn’t able to do this easily as a developer, imagine a non technical worker.

This is my current Mattermost caddy setup. Feel free to give suggestions


{$MATTERMOST_DOMAIN} {

    # CORS & credentials (for browser API calls)
    header {
        Access-Control-Allow-Origin         "https://{$MATTERMOST_DOMAIN}"
        Access-Control-Allow-Credentials    true
        Access-Control-Allow-Methods        "GET, POST, PUT, DELETE, OPTIONS, PATCH"
        Access-Control-Allow-Headers        "Authorization, Content-Type, X-Requested-With, X-CSRFToken"
        Access-Control-Expose-Headers       "Set-Cookie, Location"
    }

    reverse_proxy mattermost:8065 {
        header_up Host {host}
        header_up X-Real-IP {remote_host}
        header_up X-Forwarded-For {remote_host}
        header_up X-Forwarded-Proto {scheme}
        header_up Upgrade {http.request.header.Upgrade}
        header_up Connection {http.request.header.Connection}
        header_up Cookie {http.request.header.Cookie}
    }
}