Error faced while installing OpenProject in Linux

Keywords: OpenProject - Installers - Technical issue - Other

bnsupport ID: 1a9ae98d-7481-192a-b265-7f19156dc344

Description:
While installing OpenProject I got below error:
24 verbose npm v6.14.13
25 error code ELIFECYCLE
26 error errno 137
27 error openproject-frontend@0.1.0 build: node --max_old_space_size=2048 ./node_modules/@angular/cli/bin/ng build --prod --named-chunks --extract-css --source-map
27 error Exit status 137
28 error Failed at the openproject-frontend@0.1.0 build script.
28 error This is probably not a problem with npm. There is likely additional logging output above.
29 verbose exit [ 137, true

How to solve this issue. I don’t want Hit and Trail on our server.

Hi @prashantkumar.india,

On which Linux distro and version are you installing OpenProject? Are you using the latest version of the installer?

Regards,
Michiel

Yes, Sir. I have download the one (11.3.4-0) on the website for the Linux 64 - Installer.

OS: Ubuntu Linux 20.04.3

Kindly Help.

Hi @prashantkumar.india,

It seem the instance is running out of memory, I recommend trying in a more powerful instance.

Regards,
Michiel

I am sorry, I took time. But thank you so much will increase my memory and will check and will let you know.

I tried again after increasing the and it worked but not new issue came:
Please guide me, how to solve this issue.

e3a8936b-9be2-7b8c-0651-2a53a93942f5

Warning: Problem running post-install step. Installation may not complete
correctly
 Error running /opt/openproject-11.3.4-0/apps/openproject/htdocs/pass.sh :
Beginning in Rails 4, Rails ships with a `rails` binstub at ./bin/rails that
should be used instead of the Bundler-generated `rails` binstub.

If you are seeing this message, your binstub at ./bin/rails was generated by
Bundler instead of Rails.

You might need to regenerate your `rails` binstub locally and add it to source
control:

 rails app:update:bin           # Bear in mind this generates other binstubs
                                # too that you may or may not want (like yarn)

If you already have Rails binstubs in source control, you might be
inadvertently overwriting them during deployment by using bundle install
with the --binstubs option.

If your application was created prior to Rails 4, here's how to upgrade:

  bundle config --delete bin    # Turn off Bundler's stub generator
  rails app:update:bin          # Use the new Rails executables
  git add bin                   # Add bin/ to source control

You may need to remove bin/ from your .gitignore as well.

When you install a gem whose executable you want to use in your app,
generate it and add it to source control:

  bundle binstubs some-gem-name
  git add bin/new-executable

/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ubytree-1.0.0/lib/tree/utils/camel_case_method_handler.rb:61:in `protected':
calling protected without arguments inside a method may not have the intended
effect (StructuredWarnings::BuiltInWarning)
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/a
ctivesupport-6.1.3.2/lib/active_support/dependencies.rb:326:in `load': key :if
is duplicated and overwritten on line 319 (StructuredWarnings::BuiltInWarning)
bundler: failed to load command: rails
(/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/bin/r
ails)
pass.rb:3:in `<top (required)>': undefined method `password_confirmation=' for
nil:NilClass (NoMethodError)
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/commands/runner/runner_command.rb:42:in `load'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/commands/runner/runner_command.rb:42:in `perform'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/t
hor-1.1.0/lib/thor/command.rb:27:in `run'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/t
hor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/t
hor-1.1.0/lib/thor.rb:392:in `dispatch'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/commands.rb:18:in `<top (required)>'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/app_loader.rb:59:in `require'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/app_loader.rb:59:in `block in exec_app'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/app_loader.rb:48:in `loop'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/app_loader.rb:48:in `exec_app'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/lib/rails/cli.rb:7:in `<top (required)>'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/exe/rails:10:in `require'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/gems/r
ailties-6.1.3.2/exe/rails:10:in `<top (required)>'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/bin/ra
ils:23:in `load'
        from
/opt/openproject-11.3.4-0/apps/openproject/htdocs/vendor/bundle/ruby/2.7.0/bin/ra
ils:23:in `<top (required)>'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli/exec.rb:63:in `load'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli/exec.rb:63:in `kernel_load'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli/exec.rb:28:in `run'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli.rb:475:in `exec'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/vendor/thor/lib/thor/command.rb:27:in `run'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/vendor/thor/lib/thor.rb:392:in `dispatch'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli.rb:31:in `dispatch'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/vendor/thor/lib/thor/base.rb:485:in `start'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/cli.rb:25:in `start'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/exe/bundle
:49:in `block in <top (required)>'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/lib/bundle
r/friendly_errors.rb:128:in `with_friendly_errors'
        from
/opt/openproject-11.3.4-0/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.24/exe/bundle
:37:in `<top (required)>'
        from /opt/openproject-11.3.4-0/ruby/bin/bundle:23:in `load'
        from /opt/openproject-11.3.4-0/ruby/bin/bundle:23:in `<main>'

Hi @prashantkumar.india,

Thanks for your message. We are in the process of removing most of our native installers, but we will continue offering the virtual machines. We recommend you to use it instead of the installer

https://bitnami.com/stack/openproject/virtual-machine

You can also get more information about the installer deprecation process in the next blog post

https://blog.bitnami.com/2021/04/amplifying-our-focus-on-cloud-native.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.