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. OpenProject 11.0.3 rpm based installation Centos8

OpenProject 11.0.3 rpm based installation Centos8

Added by Rudolf Kastl over 4 years ago

Hello,

First time installation attempt and failing with the following errors:

Server prefix is set. Need to recompile rails assets. Setting RECOMPILE_RAILS_ASSETS=true
Traceback (most recent call last):
	16: from <internal:abrt_prelude>:5:in `<internal:abrt_prelude>'
	15: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
	14: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
	13: from /usr/share/rubygems/rubygems.rb:213:in `try_activate'
	12: from /usr/share/rubygems/rubygems/specification.rb:1063:in `find_by_path'
	11: from /usr/share/rubygems/rubygems/specification.rb:850:in `stubs'
	10: from /usr/share/rubygems/rubygems/specification.rb:782:in `installed_stubs'
	 9: from /usr/share/rubygems/rubygems/specification.rb:790:in `map_stubs'
	 8: from /usr/share/rubygems/rubygems/specification.rb:790:in `flat_map'
	 7: from /usr/share/rubygems/rubygems/specification.rb:790:in `each'
	 6: from /usr/share/rubygems/rubygems/specification.rb:793:in `block in map_stubs'
	 5: from /usr/share/rubygems/rubygems/specification.rb:768:in `gemspec_stubs_in'
	 4: from /usr/share/rubygems/rubygems/specification.rb:768:in `select'
	 3: from /usr/share/rubygems/rubygems/stub_specification.rb:208:in `valid?'
	 2: from /usr/share/rubygems/rubygems/stub_specification.rb:118:in `data'
	 1: from /usr/share/rubygems/rubygems/stub_specification.rb:118:in `open'
/usr/share/rubygems/rubygems/stub_specification.rb:118:in `initialize': Permission denied @ rb_sysopen - /opt/openproject/vendor/bundle/ruby/2.7.0/specifications/disposable-0.4.7.gemspec (Errno::EACCES)

Looking at the actual file it seems it has only r/w permissions for root. I guess that the installer is dropping privileges on that operation and thats why it fails. Note that even when manually editing permissions there are more errors coming up down the road, but i think the first thing to do here is to ensure that the permissions on the files are correct that get installed by the rpm.

ll /opt/openproject/vendor/bundle/ruby/2.7.0/specifications/disposable-0.4.7.gemspec
-rw-------. 1 root root 2207 12. Okt 06:46 /opt/openproject/vendor/bundle/ruby/2.7.0/specifications/disposable-0.4.7.gemspec

The rpm i used for the installation attempt is this one:

[root@openproject bin]# rpm -q openproject
openproject-11.0.3-1605515802.b0a993b4.centos8.x86_64

What are the next steps here? Should i open a report in the tracker?

Thank you!


Replies (1)

RE: OpenProject 11.0.3 rpm based installation Centos8 - Added by Cyril Rohr over 4 years ago

Hi Rudolf,

I just tested and it went fine on my CentOS 8 server:

Server prefix is set. Need to recompile rails assets. Setting RECOMPILE_RAILS_ASSETS=true
Server prefix was changed from / to /openproject-prefix/. Need to recompile rails assets. Setting RECOMPILE_RAILS_ASSETS=true
[...]
/opt/openproject/lib/tasks/assets.rake:53:in `block (2 levels) in <top (required)>': RECOMPILE_RAILS_ASSETS was set by installation, but RECOMPILE_ANGULAR_ASSETS is false. Skipping
angular compilation. Set RECOMPILE_ANGULAR_ASSETS='true' if you need to force it. (StructuredWarnings::StandardWarning)
Nothing to do.                             
Nothing to do.                                                                    
Redirecting to /bin/systemctl restart openproject.service


[ec2-user@ip-10-0-0-254 ~]$ rpm -q openproject                 
openproject-11.0.3-1605515802.b0a993b4.centos8.x86_64

Can you try installing without server path prefix, and then running sudo openproject reconfigure to set a new path, and see if that makes a difference?

Thank you,

Cyril

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