Added by Joaquin Henriquez almost 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)
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
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.
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
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
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………
Restart “memcached” service.
Centos /ubuntu - /etc/init.d/memcached restart