I installed latest version of zammad 3.2 with NGINX proxy successfully and used existing postgres database used by zammad 2.8 at different hosting ip by configuring /zammad/config/database.yml file. I can successfully open zammad at http://localhost but when i try to login i am not able to login instead it is saying CSRF token verification failed
Actual behavior:
I installed latest version of zammad 3.2 and used existing postgres database used by zammad 2.8 at different hosting ip. I used NGINX for reverse proxy but when i try to log in in my local host server it shows error CSRF token verification failed.
I tried different solution suggested like to convert “$scheme” to “$https” in “location /” and “location ws/” but that does not worked for me.
Please provide the complete nginx configuration of that vhost file, because the provided is incomplete.
You’re telling Zammad that your connection is a HTTPs one, however, you’re actually using HTTP.
That’s the issue here, correct https to http and it should be fine.
If i downgrade zammad version to 3.1 then it is perfectly working fine but in that case elasticsearch 7.5 not working
If there is any problem with 3.2 can you tell me the perfect versions of zammad 3.1 and its supported latest elastic search version and ruby version.
Any help will be greatly appreciated
Currently can’t the nginx issue. Still it’s weird because I’m using http on test environments without issues.
You may want to ensure that within system you didn’t choose “https” as http type by accident, because this will cause Zammad to suspect https connections (and cookies) which could cause your issue as well.
zammad run rake r "Setting.set (‘http_type’, ‘http(s)’)"
i always received the answer command r unknown
i went then directly to the rails console with zammad run rails c
checked the setting with
Setting.get ('http_type')
and received https as answer.
I changed it then to http(s) with setting.set('http_type', 'http(s)')
i went out of the console, restartet zammad and nginx but it still didnt work.
So i tried again the same but changed this time to http in the console with Setting.set('http_type', 'http')
restarted again zammad and nginx and finally it works now again