OOD missing rails-5.2.8 after update/reinstall

Hi,

I have reinstalled our OOD server (CentOS 7.9) which pulled in an update to current 2.0.28 version. The config did not change from since before the update. We use Dex and ondemand-dex. Got the following RPMs installed.

rpm -qa | grep ondemand

ondemand-gems-2.0.28-2.0.28-1.el7.x86_64
ondemand-2.0.28-1.el7.x86_64
ondemand-nodejs-2.0-2.el7.x86_64
ondemand-runtime-2.0-2.el7.x86_64
ondemand-nginx-1.18.0-2.p6.0.14.el7.x86_64
ondemand-dex-2.32.0-1.el7.x86_64
ondemand-gems-2.0.28-1.el7.x86_64
ondemand-python-2.0-2.el7.x86_64
ondemand-sqlite-3.26.0-4.el7.x86_64
ondemand-apache-2.0-2.el7.x86_64
ondemand-sqlite-libs-3.26.0-4.el7.x86_64
ondemand-ruby-2.0-2.el7.x86_64
ondemand-sqlite-devel-3.26.0-4.el7.x86_64
ondemand-passenger-6.0.14-1.el7.x86_64
ondemand-release-web-2.0-1.noarch

The login happens, but then Dashboard fails to load with an error:

[ E 2022-10-17 12:50:16.4737 9880/T1e age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/ood/apps/sys/dashboard: The application encountered the following error: Could not find rails-5.2.8 in any of the sources (Bundler::GemNotFound)
Error ID: 72a3a1d1
Error details saved to: /tmp/passenger-error-AGuuu5.html

[ E 2022-10-17 12:50:16.4854 9880/Te age/Cor/Con/CheckoutSession.cpp:283 ]: [Client 4-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 72a3a1d1. Please see earlier logs for details about the error.

This used not to happen on earlier reinstalls. Could you please share ideas on how to fix it? Thanks!

Grigory Shamov
University of Manitoba

Hi Grigory.

Thank you for bringing this to our attention. if you can please take the following to steps to where ondemand is installed, it may help.

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

This should install rails for you. Please let me know if this doesn’t help.

Thanks,
-gerald

Did not like it for some reason:

bin/setup:18: syntax error, unexpected ‘,’
def initialize(env:, url:)
^
bin/setup:34: syntax error, unexpected keyword_end, expecting end-of-input

Ok, I have found a problem with main dashboard. I copied it over from the previous version of OOD and it did not initialized at all. I have uninstalled/reinstalled the ondemand rpm, and that made it work.

Also, of course in the above, bin/setup needs to be prefixed with “scl enable ondemand – ruby” to work on CentOS 7.

But now another problem : two little Passenger I have also copied over, stopped working. Is there a way to initialize passenger apps? I do get “Initialize App” prompt , but it fails.

The error is now:

[ E 2022-10-20 15:51:46.0920 13152/T13 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www
/ood/apps/sys/partition_status: The application encountered the following error: Could not find sinatra-2.1.0 in any of the s
ources (Bundler::GemNotFound)

Where do I get this sinatra, if Passenger apps do not have bin/setup?

Ok now, “scl enable ondemand – bundle update” did it.

That’s great news!

Thanks for the follow-up Grigory.

-gerald