Apr 29th, 2023 08:23 AM
I've published to DigitalOceans app platform, but now I'm having issues logging in or staying logged in. I get a 419 error when trying to login to the admin section. Sometimes the admin section will load, but then when I try to save a setting change I'll be redirected to a 419 page. I've been tinkering with the Session.php but haven't been able to fix this issue. I've also updated the .env to production and the production URL
current settings -
'domain' => env('SESSION_DOMAIN'), 'secure' => env('SESSION_SECURE_COOKIE'), 'http_only' => true, 'same_site' => "lax",
Apr 29th, 2023 08:31 AM・
This usually happens when you deploy Wave on multiple containers:
There are two ways to fix this:
- Downgrade to use only one container, there should be no need to run Wave in two containers initially, if you need more resources you can choose a larger plan but still keep 1 container.
- If you want to run wave under multiple containers, you should add a Managed Redis Cluster to your App Platfrom and set your Wave sessions to be stored in Redis
That way when the sessions are stored in Redis rather than the local file system of each container, each instance will have access to the correct session rather than the session file stored locally on the container filesystem itself.
There was a similar discussion here which might be helpful.
Let me know if you have any questions!