Content
Error with precompiling
Added by Matthias Körner over 10 years ago
Hi!
After trying the demo instance, I wanted to install OpenProject on my machine tonigt. But unfortunately, it failed to do so.
I followed the instructions given at[[https://www.openproject.org/projects/openproject/wiki/Installation_on_Centos_65_x64_with_Apache_and_PostgreSQL_93]]. The only difference was using MySQL instead of PostgreSQL.
When it came to this step:
[openproject
centos]# RAILS_ENV=“production” bundle exec rake assets:precompile@
it resulted in the following error message:
$ RAILS_ENV="production" bundle exec rake assets:precompile require 'rails/all'... 0.390s Bundler.require... 1.130s /home/openproject/.rvm/rubies/ruby-2.1.0/bin/ruby /home/openproject/.rvm/gems/ruby-2.1.0/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets require 'rails/all'... 0.420s Bundler.require... 1.250s Application.initialize!... [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. 2.440s rake aborted! couldn't find file 'jquery' (in /home/openproject/openproject/app/assets/javascripts/application.js.erb:13) [...]
I found similar tickets with precompile complaing about missing jquery.atwho, but I did not bring it to work…
Could anybody help?
Replies (7)
I have the exact same issue.
I tried with CentOS 5/6, Ubuntu 12.04 and I always have the same error.
I manually copied some of the .js files to app/assets/javascripts but when I was not able to pass trough the jquery_ujs missing error.
I been trying to get it working for ~ 12 hours without luck.
I also try to use npm for the missing JQuery files but I was not even able to install Bower.
Hello Matthias, hello Alexandre,
I assume that you’re working on the
dev
branch. If so then please consider installation instructions for dev.I hope this helps?
Kind regards,
Hagen
Actually our installation guides were misleading (I fixed them now).
They made you use our development branch, which can break from time to time (but always uses the latest features).
The downloading openproject step is now:
I’d recommend to use the stable branch if you want a production system.
However, if you want to test the latest (and greatest) new features of OpenProject, you may use our development branch with Hagens’ instructions.
yours,
tessi
The precompile worked so far, thanks a lot, Hagen and Philipp!
Anyway, after hitting the end of the installation guide, did the Apache-configuration and opened the browser, I was told that the application could not be started:
Web application could not be started uninitialized constant OpenProject::Concerns (NameError) /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-1ade122a7499/app/controllers/meeting_contents_controller.rb:24:in `<class:MeetingContentsController>' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-1ade122a7499/app/controllers/meeting_contents_controller.rb:21:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-1ade122a7499/app/controllers/meeting_agendas_controller.rb:21:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!' [...]
(from browser window)
Any hints?
Can you, please, show us the contents of your
Gemfile.plugins
?It looks like the (stable?) OpenProject version uses the latest (development) meetings-plugin.
You’re right. I just copied from the installation guide… After changing to “stable”, it worked.
So I suggest to change the wiki this way and also add
RAILS_ENV="production" bundle exec rake db:seed
to enable admin-login.
Thanks!
Matthias
(now starting to test and maybe comes back with more questions)
Thanks Matthias,
I’ve just added the
rake db:seed
step to some guides, where it was missing and recommended to install thestable
branch for all plugins.I also added you to a community member to the openproject-project, so you should be able to edit wiki pages yourself (in case you find other issues).
Thanks again :)