CSRF Authentification failed


  • Used Zammad version: 3.6.X
  • Used Zammad installation source: Package
  • Operating system: Ubuntu 20.06
  • Browser + version: MS Edge Chromium 86.0.622.69

Expected behavior:

  • Normally i should be able to login with the username and passwords, which are correct.

Actual behavior:

  • There is an error: CSFR Token verification failed

Steps to reproduce the behavior:

  • Just try to login

I’ve set up the System Yesterday, and it worked like it should. but after a restart tomorrow morning, the login wasn’t possible anymore.

You have to change Nginx configuration:
proxy_set_header X-Forwarded-Proto $scheme;
replace with
proxy_set_header X-Forwarded-Proto https;
for “/” and “/ws” path.

This topic is not new, you can search the forum.

Here is the solution you may be interested:

docker run \
	-d \
	--net digitaloak \
	--ip \
	--name zammad-docker-compose_zammad-nginx_1 \
	-ti \
	-p 80 \
	--link zammad-docker-compose_zammad-railsserver_1:zammad-docker-compose_zammad-railsserver_1 \
	--link zammad-docker-compose_zammad-railsserver_1:zammad-railsserver \
	--link zammad-docker-compose_zammad-railsserver_1:zammad-railsserver_1 \
	--link zammad-docker-compose_zammad-websocket_1:zammad-docker-compose_zammad-websocket_1 \
	--link zammad-docker-compose_zammad-websocket_1:zammad-websocket \
	--link zammad-docker-compose_zammad-websocket_1:zammad-websocket_1 \
  --mount source=zammad-docker-compose_zammad-data,target=/opt/zammad \
	-v /home/tm/docker/zammad/nginx/zammad.conf:/etc/nginx/sites-available/default \
	zammad/zammad-docker-compose:zammad-3.5.0-20 zammad-nginx

I know, and thats also a reponse i found, but it didn’t worked.

In my opinion, this just resets my nginx config. or not? because this won’t solve my problem at all. I’ve already tried replacing my nginx config…

Try edit again after “initial” reset, then restart and it should work.

This would have worked if i had installed zammad with docker. But zammad is just replying :
“Unable to find image ‘zammad/zammad-docker-compose:zammad-3.5.0-20’ locally”