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
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,
Ric