CSRF token verification failed! Fresh install

  • Used Zammad version: Latest
  • Used Zammad installation type: Build From Repository
  • Operating system: Windows server 2022
  • Browser + version: Edge + Chrome

Expected behavior:

  • To be able to logn

Actual behavior:

  • Once i have finished the install, i am logged in. However, once i logout and want back in i get the CSRF token verification failed!

Steps to reproduce the behavior:

  • Tried reinstalling, but it keeps happening.

close browser, use an email address as login, this works for me

Sadly that does not work :confused:
If i only knew where to find the correct file in the docker container:

I wanted to add: if i install it the same way, but use my local ip of the server, it works perfectly. When i use the domain name that i have for the local server via Cloudflare, i get this CSRF error.

may be add it in /etc/hostname?

add fqdn in /etc/hosts?

lan_ip zammand.someserver.org

So i need to create a file? it’s not there by default when installed with the docker Repository?

You need to read the documentation:
https://docs.zammad.org/en/latest/install/docker-compose/environment.html#nginx

and

https://admin-docs.zammad.org/en/latest/settings/system/base.html

Hi, and ty for the reply!
Ok… so this should work: install Zammad on the server with the ip of the server or the local domain of the server. And then just use that instead of changing the domainname to the name of the domain i bought and i use via cloudflar. right?

Please don’t flag your threads for moderation. For this behavior I will now ignore this thread without answering your further questions. Sorry, but please be patient or get paid support.

Harsh… seems this software might not be the best choice. this error and getting smtp mail not to work… anoying.

Alrighty i fixed the issue! Finnaly! WHOOT!
The solution: if you install it on a local host, and have cloudflare tunnel setup so you have SLL in place and all the good stuff, and do the setup via the domain you will get this anoyin error. To fix this; in the .env file add this depending on your connection: NGINX_SERVER_SCHEME=https or if you use http: NGINX_SERVER_SCHEME=http

1 Like

Hey @oxygenGS

Are you able to configure SMTP?

I have installed Zammad on portainer and unable to setup SMTP.

Have you allowed SMTP AUTH for your mailbox as described in the official docs?

You must also verify that SMTP AUTH is enabled for the mailbox being used. SMTP AUTH is disabled for organizations created after January 2020 but can be enabled per-mailbox.

You may want to create your own topic, because this is completely off topic in this thread.

Hi! yes it works now. i have it also installed in a docker container. But this issue is not related to the one where i made this topic for.

Yes, I installed Zammad two months ago using the Package Manager. I didn’t encounter any difficulties setting up SMTP with the same email ID.

How did you configure SMTP? Can you help me with it?
Currently iam hosted zammad in portainer

I’m closing this thread due to it being off topic. Shlok, please play by the rules.

1 Like