#818·crater

Error: CSRF Mismatch and Error: Unauthenticated

Author: darrylgibbsCreated Mar 3, 2022Updated Jul 13, 2026

OS: Ubuntu 20.04.4 (Virtualbox VM) Docker: 20.10.12

My goal here was to migrate my install to a new server.

I have just downloaded and run the git repo as instructed here for a docker install. I used all the default settings, except changing the APP_URL in the .env file to my need. I went to the URL and ran through the setup process (I'm not sure if this is my failing)

What I want to do is restore a previous backup. I've copied to my server (VM) the zip file with the DB and FILES. I successfully uploaded my DB into the DB container, no errors. I changed all 3 "./:/var/www" bind mounts to my backup folder that I imported, and restarted the containers, and reran the "./docker-compose/setup.sh" command from the root CRATER folder.

If I go to the URL (updated for new VM in the .env) I get the login screen. I type in the credentials and the I get 3 notifications in the top right, in this order: LOGIN SUCCESSFUL, Error: Unauthenticated, Error CSRF Mismatch. I then remain on the login screen.

What am I doing wrong here?

Thanks in advance.

Screenshot 2022-03-03 173504

Source: crater-invoice-inc/crater