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

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token.

Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token.

Added by Joaquin Henriquez about 9 years ago

HI Guys

I have two problems after installation:
1- I get error 422 Unable to verify Cross-Site Request Forgery token when entering admin/admin as the user
2- The Look and Feel is as you see form the picture. How come I do not have the look and feel like in this web?

Thanks

BR

Joaquin


Replies (6)

RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Oliver Günther about 9 years ago

Hi Joaquin,

something in your installation went wrong, the application assets (styles, javascript) cannot be accessed by the user / the application.
This causes both the 422 errors and the botched L&F.

Do you use the packaged installation?

Best,
Oliver

RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Joaquin Henriquez about 9 years ago

I used the manual installation, and i went through al steps without errors. I had to run twice the “npm install” because i run out of disk space.

RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Oliver Günther about 9 years ago

Hi Joaquin,

please re-run RAILS_ENV=production bundle exec rake assets:precompile to re-pack the assets. Please watch the output for any errors.

Best,
Oliver

RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Joaquin Henriquez about 9 years ago

Executed the precompile.

Now when starting i get error 502:
App 2737 stdout:
App 2737 stderr: /home/openproject/openproject/vendor/bundle/ruby/2.3.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: key “name” is duplicated and overwritten on line 80
App 2737 stderr: /home/openproject/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/svg-graph-e79abffa6663/lib/SVG/Graph/Graph.rb:142: warning: key :y_label_font_size is duplicated and overwritten on line 144
App 2737 stderr: /home/openproject/openproject/app/seeders/random_data/work_package_seeder.rb:84: warning: key :user is duplicated and overwritten on line 87
App 2955 stdout:
App 2737 stderr: Passenger RubyApp: /home/openproject/openproject: symbol lookup error: /usr/local/lib64/ruby/gems/2.3.0/gems/passenger-5.0.26/buildout/ruby/ruby-2.3.0-x86_64-linux/passenger_native_support.so: undefined symbol: rb_thread_blocking_region
[ 2016-04-01 01:01:31.7288 2629/7fd84bfff700 age/Cor/Con/InternalUtils.cpp:105 ]: [Client 1-1] Sending 502 response: application did not send a complete response
[ 2016-04-01 01:01:35.0288 2629/7fd852dac700 age/Cor/App/Poo/AnalyticsCollection.cpp:102 ]: Process (pid=2955, group=/home/openproject/openproject) no longer exists! Detaching it from the pool.
[ 2016-04-01 01:01:35.0296 2629/7fd852dac700 age/Cor/CoreMain.cpp:819 ]: Checking whether to disconnect long-running connections for process 2955, application /home/openproject/openproject
App 2970 stdout:

Check various web and say to compile ruby with —enabled-shared which I have had done and then when I come to the last step I get this error.
I downloaded ruby source and complied with: ./configure —prefix=/usr/local/ruby —with-openssl —enable-shared; make; make install

RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Joaquin Henriquez about 9 years ago

Commands that save my live:
ruby —> ./configure —prefix=/usr/local/ruby —with-openssl —enable-shared; make; make install —> Solve issue of rb_thread_blocking_region
npm cache clean —> Remove all content from npm
bower cache clean —> remove all content from bower
npm install —> Reintsall
RAILS_ENV=“production” ./bin/rake assets:precompile —> Re-run
gem install passenger —> Reinstall it after enable-shared.
passenger-install-apache2-module —> Everything runs smoothly now

now it WORKS!!!. finally………

RE: RE: Look&Feel Awful and Error 422 Unable to verify Cross-Site Request Forgery token. - Added by Chethan anchan about 8 years ago

Restart “memcached” service.
Centos /ubuntu - /etc/init.d/memcached restart

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