New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF token validation failed #2741

Closed
xxmoC opened this Issue Sep 26, 2017 · 12 comments

Comments

6 participants
@xxmoC

xxmoC commented Sep 26, 2017

I am totally sure it has to do something with my environment but I could need a little help. I alway had Cachet good working on Redhat OpenShift, as they are moving to a new platform I decided to move away to my own FreeBSD server.

As for my enviroment I have downloaded the source with Git and followed the whole documentation https://docs.cachethq.io/docs/installing-cachet. I use FreeBSD 10, PHP56, NGINX, composer and PDO MySQL extension.

As for this issue I already cleared cache, did a new app:install, config:cache, got my app:key nicely filled in my .env-file, correctly set permissions for my WWW-user:777 (temp) and such sort of things.

I have no caching apps tho. Any idea what this could be? When I browse to https://status.domain.com/setup I see the config page and as soon as I fill in my stuff I get: "CSRF TOKEN VALIDATION FAILED".

`APP_ENV=production
APP_DEBUG=true
APP_URL=http://status.xxxxxxxxx.nl
APP_KEY=base64:dtZmW2niOo/JUD+1lJDJPbZz/ywuAKUFN7xxxxxxxxx

DB_DRIVER=mysql
DB_HOST=localhost
DB_UNIX_SOCKET=null
DB_DATABASE=xxxxxxxxx
DB_USERNAME=xxxxxxxxx
DB_PASSWORD=xxxxxxxxx
DB_PORT=null
DB_PREFIX=null

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

CACHET_BEACON=true
CACHET_EMOJI=false
CACHET_AUTO_TWITTER=true
`

@lyandr

This comment has been minimized.

Show comment
Hide comment
@lyandr

lyandr Sep 28, 2017

I did the same thing but on Cloud Foundry few days ago and it was ok.

I did it yesterday and i have the same problem. I tried different commit and it seems that commit after the one with sha 1dd3061 are not ok.

lyandr commented Sep 28, 2017

I did the same thing but on Cloud Foundry few days ago and it was ok.

I did it yesterday and i have the same problem. I tried different commit and it seems that commit after the one with sha 1dd3061 are not ok.

@jbrooksuk

This comment has been minimized.

Show comment
Hide comment
@jbrooksuk

jbrooksuk Sep 30, 2017

Member

Seems to be working again now.

image

Member

jbrooksuk commented Sep 30, 2017

Seems to be working again now.

image

@jbrooksuk jbrooksuk closed this Sep 30, 2017

@xxmoC

This comment has been minimized.

Show comment
Hide comment
@xxmoC

xxmoC Oct 1, 2017

Still the same.
2017-10-01_08-21-33

xxmoC commented Oct 1, 2017

Still the same.
2017-10-01_08-21-33

@syui

This comment has been minimized.

Show comment
Hide comment
@syui

syui Oct 1, 2017

I am getting the same error.
I hope you can help me with this issue.

all.js:11 POST http://cachet-syui.1d35.starter-us-east-1.openshiftapps.com/setup/step1 400 (Bad Request)

cachet version 2.4 : https://github.com/syui/Cachet

I am using openshift online (free) and mysql (oc new-app mysql).

http://cachet-syui.1d35.starter-us-east-1.openshiftapps.com/setup

I have followed most of the steps below.

CachetHQ/Docker#175 (comment)

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

Setting CACHE_DRIVER=apc will result in 500 error.

syui commented Oct 1, 2017

I am getting the same error.
I hope you can help me with this issue.

all.js:11 POST http://cachet-syui.1d35.starter-us-east-1.openshiftapps.com/setup/step1 400 (Bad Request)

cachet version 2.4 : https://github.com/syui/Cachet

I am using openshift online (free) and mysql (oc new-app mysql).

http://cachet-syui.1d35.starter-us-east-1.openshiftapps.com/setup

I have followed most of the steps below.

CachetHQ/Docker#175 (comment)

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

Setting CACHE_DRIVER=apc will result in 500 error.

@jbrooksuk

This comment has been minimized.

Show comment
Hide comment
@jbrooksuk

jbrooksuk Oct 1, 2017

Member

Double fixed in e426eff

Member

jbrooksuk commented Oct 1, 2017

Double fixed in e426eff

@syui

This comment has been minimized.

Show comment
Hide comment
@syui

syui Oct 1, 2017

@jbrooksuk I got 500 error.

syui commented Oct 1, 2017

@jbrooksuk I got 500 error.

@jbrooksuk

This comment has been minimized.

Show comment
Hide comment
@jbrooksuk

jbrooksuk Oct 1, 2017

Member

Can you share your log file please.

Member

jbrooksuk commented Oct 1, 2017

Can you share your log file please.

@syui

This comment has been minimized.

Show comment
Hide comment
@syui

syui Oct 1, 2017

@jbrooksuk I'm sorry. I was wrong.
It went well.
Thank you so, so much!

syui commented Oct 1, 2017

@jbrooksuk I'm sorry. I was wrong.
It went well.
Thank you so, so much!

@Apollo2000

This comment has been minimized.

Show comment
Hide comment
@Apollo2000

Apollo2000 Oct 19, 2017

Still same problem.
I install last release v2.3.13, update fix e426eff (manual) and getting "CSRF token validation failed"
My ngnix log is empty

Apollo2000 commented Oct 19, 2017

Still same problem.
I install last release v2.3.13, update fix e426eff (manual) and getting "CSRF token validation failed"
My ngnix log is empty

@jbrooksuk

This comment has been minimized.

Show comment
Hide comment
@jbrooksuk

jbrooksuk Oct 19, 2017

Member

Try running rm -rf bootstrap/cache{,t}/*.

As far as I'm aware v2.3 never had this issue.

Member

jbrooksuk commented Oct 19, 2017

Try running rm -rf bootstrap/cache{,t}/*.

As far as I'm aware v2.3 never had this issue.

@Apollo2000

This comment has been minimized.

Show comment
Hide comment
@Apollo2000

Apollo2000 Oct 19, 2017

Didn't solve it.
I install 2.3.9-2.3.13 all fresh, and same problem.
Debian 8.7,PHP 5.6.30, Nginx

Apollo2000 commented Oct 19, 2017

Didn't solve it.
I install 2.3.9-2.3.13 all fresh, and same problem.
Debian 8.7,PHP 5.6.30, Nginx

@kporembinski

This comment has been minimized.

Show comment
Hide comment
@kporembinski

kporembinski Dec 15, 2017

The same here. Clean install and problem with CSRF.

kporembinski commented Dec 15, 2017

The same here. Clean install and problem with CSRF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment