Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • Development

Content

Precompilation on Production Server

Added by evaluations consultant over 4 years ago

Hi

I am trying to do precompilation on the production instance and used the following command:
RAILS_ENV=“production” bundle exec rake assets:precompile

I get the following error, which I think asks me to install a javascript runtime. But isn’t node.js included with the open project distribution?

Can you help me understand what I am doing wrong here?

I am using rpms installed on ubuntu (Open Project 7.4)

rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem ‘autoprefixer-rails’.
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `module:ExecJS’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails/processor.rb:2:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails.rb:36:in `require_relative’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails.rb:36:in `<top (required)>’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `require’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `each’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `block in require’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `each’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `require’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler.rb:114:in `require’
/opt/openproject/config/application.rb:70:in `<top (required)>’
/opt/openproject/Rakefile:33:in `require’
/opt/openproject/Rakefile:33:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in `load’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in `load_rakefile’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:688:in `raw_load_rakefile’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:97:in `block in load_rakefile’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:179:in `standard_exception_handling’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:96:in `load_rakefile’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:80:in `block in run’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:179:in `standard_exception_handling’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/lib/rake/application.rb:78:in `run’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/bin/rake:23:in `load’
/opt/openproject/vendor/bundle/ruby/2.4.0/bin/rake:23:in `<top (required)>’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli/exec.rb:74:in `load’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli/exec.rb:74:in `kernel_load’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli/exec.rb:28:in `run’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli.rb:424:in `exec’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli.rb:27:in `dispatch’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/cli.rb:18:in `start’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle:30:in `block in <top (required)>’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors’
/opt/openproject/vendor/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle:22:in `<top (required)>’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `load’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `

’
Bundler Error Backtrace:
/opt/openproject/config/application.rb:70:in `<top (required)>’
/opt/openproject/Rakefile:33:in `require’
/opt/openproject/Rakefile:33:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `load’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `

’
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `module:ExecJS’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails/processor.rb:2:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails.rb:36:in `require_relative’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/autoprefixer-rails-7.1.5/lib/autoprefixer-rails.rb:36:in `<top (required)>’
/opt/openproject/config/application.rb:70:in `<top (required)>’
/opt/openproject/Rakefile:33:in `require’
/opt/openproject/Rakefile:33:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `load’
/opt/openproject/vendor/ruby-2.4.4/bin/bundle:23:in `

’
(See full trace by running task with —trace)


Replies (1)

RE: Precompilation on Production Server - Added by Jens Ulferts over 4 years ago

I understand you are using a packaged installation. If that is the case you can use 

openproject configure

to run asset precompilation. Please also see the documentation

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