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. Error with precompiling

Error with precompiling

Added by Matthias Körner about 11 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:

[openprojectcentos]# 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)

RE: Error with precompiling - Added by Alexandre Ponton about 11 years ago

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.

RE: Error with precompiling - Added by Hagen Schink about 11 years ago

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

RE: Error with precompiling - Added by Philipp Tessenow about 11 years ago

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:

git clone https://github.com/opf/openproject.git
cd openproject
git checkout stable

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

RE: Error with precompiling - Added by Matthias Körner about 11 years ago

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?

RE: Error with precompiling - Added by Philipp Tessenow about 11 years ago

Can you, please, show us the contents of your Gemfile.plugins ?

It looks like the (stable?) OpenProject version uses the latest (development) meetings-plugin.

RE: Error with precompiling - Added by Matthias Körner about 11 years ago

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)

RE: Error with precompiling - Added by Philipp Tessenow about 11 years ago

Thanks Matthias,

I’ve just added the rake db:seed step to some guides, where it was missing and recommended to install the stable 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 :)

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