Content
[Error 422] docker https
Added by kdsfn ksldcm about 5 years ago
Hi there :)
So, im using openproject docker and have all my web-hooks, projects etc saved in
pgdata, logs, static
i created a new docker, for example,
docker run -d -p 9999:80 --restart always --name gcrm -e SECRET_KEY_BASE=damnSecert \
-v /settingslocation/pgdata:/var/lib/postgresql/9.6/main \
-v /settingslocation/logs:/var/log/supervisor \
-v /settingslocation/static:/var/db/openproject \
openproject/community
all my settings and projects loaded without a problem and have done this multiple times without any issue, however,
i decided to try out the https setting inside the openproject settings and it just ruined everything.
The error :
[Error 422] Unable to verify Cross-Site Request Forgery token. Did you try to submit data on multiple browsers or tabs? Please close all tabs and try again. The OpenProject cookie is missing. Please ensure that cookies are enabled, as this application will not properly function without.
i entered my docker using "docker exec -it gcrm sh "
tried to change the apache2 settings to accept https and that didn't work, i added the line into my apache2 config
RequestHeader set X-Forwarded-Proto “https”
i have everything ready and it just wont let me in, so i can't change the https to http setting because it will not allow me in
i also tried to change the https to http inside "/config/initializers/session_store.rb", this information i got from a bug fix coming from openproject
I know that the https setting changed something inside the pgdata, logs, static folders. and it is all encrypted, so i can't change anything
I really have put in a lot of work into this project, i really can not afford to lose all this work.
any help will be much appreciated
Replies (1)
@kdsfn were you able to resolve this? I'm up against the same issue and haven't been able to resolve it yet. My config:
running
openproject/community:latest
as a Docker Stack (ie:docker stack deploy ...
)Firewall running Squid reverse-proxy, in order to keep the deployment behind HTTPS.
Have tried both leaving the OpenProject config in the default HTTP and in HTTPS. In both cases, I get the same [error 422] you indicated above, after restarting the container, and am no longer able to log in.
Any help would be appreciated!