Open link in a new tab

Content

Expand project menu

OpenProject 11.0.3 rpm based installation Centos8

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!

Message actions

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