Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. [Error 422] docker https

[Error 422] docker https

Added by kdsfn ksldcm over 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)

RE: [Error 422] docker https - Added by Joe B over 5 years ago

@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!

  • (1 - 1/1)
Loading...