Error Job Composer version 3.0

Hi,

checking other apps, everything seems to work correctly. But I have an error in the job composer. The characteristics of the installation are:

  • OS: Rocky Linux 8
  • Ondemand: 3.0

When I access the job composer app I get the following error:

Exception: OodApp::SetupScriptFailed
Per user setup failed for script at /var/www/ood/apps/sys/myjobs/./bin/setup-production for user user with output: /usr/share/gems/gems/bundler-2.2.24/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find rdoc-6.3.3 in any of the sources (Bundler::GemNotFound)
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/spec_set.rb:85:in `map!'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/spec_set.rb:85:in `materialize'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/definition.rb:244:in `specs_for'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/runtime.rb:18:in `setup'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler.rb:149:in `setup'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/setup.rb:20:in `block in <top (required)>'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/ui/shell.rb:136:in `with_level'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/ui/shell.rb:88:in `silence'
	from /usr/share/gems/gems/bundler-2.2.24/lib/bundler/setup.rb:20:in `<top (required)>'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:160:in `require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:149:in `require'
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- bundler/setup (LoadError)
	from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'

Thanks in advance

Hey Vandsten.

Glad to see you are giving 3.0 a go. Thanks for that!!!

I’ve found this Discourse Topic, that may be of help. Please check it out and let me know if it indeed helps or not.

Thanks,
-gerald

1 Like

He Gerald,

I tried to fix according discourse topic, but I think that there is something I’m doing bad.

# sudo bin/setup 
cd /var/www/ood/apps/sys/dashboard

== Building Dashboard App ==
RAILS_ENV               = development
RAILS_RELATIVE_URL_ROOT = /pun/dev/dashboard

== Installing dependencies ==
bin/bundle check 1>/dev/null 2>&1 || bin/bundle install --jobs 4 --retry 2
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..........
Using rake 13.0.6
Using concurrent-ruby 1.2.2
Using erubi 1.12.0
Using zeitwerk 2.6.7
Using racc 1.6.2
Using crass 1.0.6
Using rack 2.2.6.4
Using nio4r 2.5.9
Using websocket-extensions 0.1.5
Using marcel 1.0.2
Using mini_mime 1.1.2
Using date 3.3.3
Using timeout 0.3.2
Using public_suffix 5.0.1
Using execjs 2.8.1
Using browser 2.7.1
Using bundler 2.2.24
Using byebug 11.1.3
Using matrix 0.4.2
Using regexp_parser 2.7.0
Using childprocess 4.1.0
Using climate_control 0.2.0
Using coffee-script-source 1.12.2
Using method_source 1.0.0
Using thor 1.2.1
Using dalli 3.2.4
Using minitest 5.18.0
Using dotenv 2.8.1
Using ffi 1.15.5
Using http-accept 1.7.0
Using mime-types-data 3.2023.0218.1
Using mocha 1.16.1
Using multi_json 1.15.0
Using ruby2_keywords 0.0.5
Using netrc 0.11.0
Using ood_support 0.0.5
Using rexml 3.2.5
Using redcarpet 3.6.0
Using rubyzip 2.3.2
Using websocket 1.2.9
Using tilt 2.1.0
Using timecop 0.9.6
Using webrick 1.8.1
Using zip_tricks 5.6.0
Using i18n 1.12.0
Using tzinfo 2.0.6
Using rack-test 2.1.0
Using request_store 1.5.1
Using sprockets 4.2.0
Using rack-protection 3.0.5
Using websocket-driver 0.7.5
Using net-protocol 0.2.1
Using builder 3.2.4
Using autoprefixer-rails 10.2.5.1
Using coffee-script 2.4.1
Using pbs 2.2.1
Using mime-types 3.4.1
Using mustermann 3.0.0
Using ood_core 0.23.4
Using rss 0.2.9
Using selenium-webdriver 4.5.0
Using activesupport 6.1.7.2
Using net-imap 0.3.4
Using net-pop 0.1.2
Using net-smtp 0.3.3
Using sinatra 3.0.5
Using globalid 1.1.0
Using activemodel 6.1.7.2
Using dotiw 5.3.3
Using mail 2.8.1
Using sinatra-contrib 3.0.5
Using activejob 6.1.7.2
Using activerecord 6.1.7.2
Using addressable 2.8.4
Using mini_portile2 2.8.1
Fetching unf_ext 0.0.8.2
Using nokogiri 1.14.2 (x86_64-linux)
Using rails-dom-testing 2.0.3
Using loofah 2.20.0
Using xpath 3.2.0
Using rails-html-sanitizer 1.5.0
Using actionview 6.1.7.2
Using capybara 3.39.0
Using actionpack 6.1.7.2
Using jbuilder 2.11.5
Using actioncable 6.1.7.2
Using activestorage 6.1.7.2
Using railties 6.1.7.2
Using sprockets-rails 3.4.2
Using actionmailbox 6.1.7.2
Using actiontext 6.1.7.2
Using coffee-rails 5.0.0
Using cssbundling-rails 1.1.2
Using dotenv-rails 2.8.1
Using jsbundling-rails 1.1.1
Using lograge 0.12.0
Using local_time 1.0.3
Using actionmailer 6.1.7.2
Using bootstrap_form 4.5.0
Using rails 6.1.7.2
Using ood_appkit 2.1.1
Installing unf_ext 0.0.8.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/share/gems/gems/unf_ext-0.0.8.2/ext/unf_ext
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230410-4162-s6jq2g.rb extconf.rb
checking for -lstdc++... no
creating Makefile

current directory: /usr/share/gems/gems/unf_ext-0.0.8.2/ext/unf_ext
make DESTDIR\= clean
rm -f 
rm -f unf_ext.so  *.o  *.bak mkmf.log .*.time

current directory: /usr/share/gems/gems/unf_ext-0.0.8.2/ext/unf_ext
make DESTDIR\=
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.   -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o
unf.o -c unf.cc
make: g++: Command not found
make: *** [Makefile:213: unf.o] Error 127

make failed, exit code 2

Gem files will remain installed in /usr/share/gems/gems/unf_ext-0.0.8.2 for inspection.
Results logged to /usr/lib64/gems/ruby/unf_ext-0.0.8.2/gem_make.out

An error occurred while installing unf_ext (0.0.8.2), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.8.2' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  rest-client was resolved to 2.1.0, which depends on
    http-cookie was resolved to 1.0.5, which depends on
      domain_name was resolved to 0.5.20190701, which depends on
        unf was resolved to 0.1.4, which depends on
          unf_ext
/usr/share/gems/gems/rake-13.0.6/lib/rake/file_utils.rb:67:in `block in create_shell_runner': Command failed with status (5): [bin/bundle check 1>/dev/null 2>&1 || bin/b...] (RuntimeError)
	from /usr/share/gems/gems/rake-13.0.6/lib/rake/file_utils.rb:57:in `sh'
	from bin/setup:59:in `block in <main>'
	from /usr/share/ruby/fileutils.rb:139:in `chdir'
	from /usr/share/ruby/fileutils.rb:139:in `cd'
	from /usr/share/gems/gems/rake-13.0.6/lib/rake/file_utils_ext.rb:35:in `chdir'
	from bin/setup:50:in `<main>'
 

After, I tried

# scl enable ondemand -- bundle update
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using rake 13.0.6
Using concurrent-ruby 1.2.2
Using minitest 5.18.0
Using mini_portile2 2.8.1
Using racc 1.6.2
Using crass 1.0.6
Using rack 2.2.6.4
Using nio4r 2.5.9
Using websocket-extensions 0.1.5
Using marcel 1.0.2
Using mini_mime 1.1.2
Using date 3.3.3
Using timeout 0.3.2
Using public_suffix 5.0.1
Using execjs 2.8.1
Using browser 2.7.1
Using bundler 2.2.24
Using byebug 11.1.3
Using matrix 0.4.2
Using regexp_parser 2.7.0
Using childprocess 4.1.0
Using erubi 1.12.0
Using coffee-script-source 1.12.2
Using method_source 1.0.0
Using thor 1.2.1
Using dalli 3.2.4
Using unf_ext 0.0.8.2
Using dotenv 2.8.1
Using ffi 1.15.5
Using http-accept 1.7.0
Using mime-types-data 3.2023.0218.1
Using mocha 1.16.1
Using multi_json 1.15.0
Using ruby2_keywords 0.0.5
Using netrc 0.11.0
Using ood_support 0.0.5
Using rexml 3.2.5
Using redcarpet 3.6.0
Using rubyzip 2.3.2
Using websocket 1.2.9
Using tilt 2.1.0
Using timecop 0.9.6
Using webrick 1.8.1
Using zip_tricks 5.6.0
Using i18n 1.12.0
Using tzinfo 2.0.6
Using nokogiri 1.14.2 (x86_64-linux)
Using rack-test 2.1.0
Using request_store 1.5.1
Using sprockets 4.2.0
Using rack-protection 3.0.5
Using websocket-driver 0.7.5
Using net-protocol 0.2.1
Using addressable 2.8.4
Using autoprefixer-rails 10.2.5.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using pbs 2.2.1
Using mime-types 3.4.1
Using mustermann 3.0.0
Using ood_core 0.23.4
Using rss 0.2.9
Using selenium-webdriver 4.5.0
Using loofah 2.20.0
Using xpath 3.2.0
Using net-imap 0.3.4
Using net-pop 0.1.2
Using net-smtp 0.3.3
Using domain_name 0.5.20190701
Using sinatra 3.0.5
Using rails-html-sanitizer 1.5.0
Using capybara 3.39.0
Using mail 2.8.1
Using http-cookie 1.0.5
Using sinatra-contrib 3.0.5
Using rest-client 2.1.0
Using builder 3.2.4
Using climate_control 0.2.0
Using zeitwerk 2.6.7
Using activesupport 6.1.7.2
Using rails-dom-testing 2.0.3
Using globalid 1.1.0
Using actionview 6.1.7.2
Using activejob 6.1.7.2
Using dotiw 5.3.3
Using jbuilder 2.11.5
Using actionpack 6.1.7.2
Using activemodel 6.1.7.2
Using actioncable 6.1.7.2
Using activerecord 6.1.7.2
Using bootstrap_form 4.5.0
Using activestorage 6.1.7.2
Using actionmailer 6.1.7.2
Using actionmailbox 6.1.7.2
Using sprockets-rails 3.4.2
Using actiontext 6.1.7.2
Using railties 6.1.7.2
Using coffee-rails 5.0.0
Using lograge 0.12.0
Using dotenv-rails 2.8.1
Using local_time 1.0.3
Using cssbundling-rails 1.1.2
Using rails 6.1.7.2
Using jsbundling-rails 1.1.1
Using ood_appkit 2.1.1
Bundle updated!
Gems in the group 'doc' were not updated.

But I follow with same issue.

Best regards

That gem should have shipped with the ruby installation. Though it would appear that it hasn’t on your system.

[root@a705e74210af ~]# gem list rdoc

*** LOCAL GEMS ***

rdoc (6.3.3)
[root@a705e74210af ~]# gem which rdoc
/usr/share/gems/gems/rdoc-6.3.3/lib/rdoc.rb
[root@a705e74210af ~]# dnf provides rdoc
Last metadata expiration check: 0:00:35 ago on Mon Apr 10 15:53:06 2023.
rubygem-rdoc-6.3.3-141.module+el8.6.0+1002+a7dba0ac.noarch : A tool to generate HTML and command-line documentation for Ruby projects
Repo        : @System
Matched from:
Provide    : rdoc = 6.3.3-141.module+el8.6.0+1002+a7dba0ac

rubygem-rdoc-6.3.3-141.module+el8.6.0+1002+a7dba0ac.noarch : A tool to generate HTML and command-line documentation for Ruby projects
Repo        : appstream
Matched from:
Provide    : rdoc = 6.3.3-141.module+el8.6.0+1002+a7dba0ac

Check to see if your system installed it by rpm -q rubygem-rdoc and if it hasn’t then install it through DNF.

Hi Jeff,

you’re right. This installation is from an update from version 2. I checked that rdoc was installed but in my haste I didn’t check the version.

I have updated rubygems-rdoc, rubygems-rake and rubygems-bundle and the error is gone.

Thanks for the help

Greetings

1 Like

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