Example_ps fails to start with nginx error

I extracted https://github.com/OSC/ood-example-ps/archive/master.zip into /var/www/ood/apps/sys/example_ps and invoked it with https://ooddev.hpc.arizona.edu/pun/sys/example_ps/
That failed with nginx Error ID: 80f0b5d3. Pawing thru /var/log/ondemand-nginx/… logs turned up this:
[ E 2020-06-30 08:32:16.9715 27632/Tc age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/ood/apps/sys/bc_osc_example_ps: The application encountered the following error: Could not find rack-1.6.12 in any of the sources (Bundler::GemNotFound)

I found by applying this change
root@ooddev sys]# diff -u OSC_Downloaded_Apps/bc_osc_example_ps-master/Gemfile.lock example_ps/
— OSC_Downloaded_Apps/bc_osc_example_ps-master/Gemfile.lock 2019-12-18 14:37:13.000000000 -0700
+++ example_ps/Gemfile.lock 2020-06-30 08:54:32.853911090 -0700
@@ -4,7 +4,7 @@
backports (3.8.0)
erubi (1.6.1)
multi_json (1.12.1)

  • rack (1.6.12)
  • rack (1.6.11)
    rack-protection (1.5.3)
    rack-test (0.7.0)
    the app would run, although I also had to tweak the “grep” string in command.rb, as ‘[A]pp’ doesn’t seem to find anything - changing that to ‘Passenger’ at least got some output which was all I was looking for at this stage.

is the 1.6.12 rack gem supposed to be included with OnDemand or with the example_ps files someplace?


Thanks! Yep it looks like we got an update from github recently that only updated the dependency, not the gems included too.

I’m updating now and should release fairly soon.

As an aside, you should probably enable development for yourself so that you don’t have to escalate privileges to deploy in /var/www/ood, you’ll be able to deploy apps in your home directory instead.