# Example\_ps fails to start with nginx error

**URL:** <https://discourse.openondemand.org/t/example-ps-fails-to-start-with-nginx-error/998>\
**Category:** Get Help\
**Created:** [June 30, 2020, 7:01pm UTC](https://discourse.openondemand.org/t/example-ps-fails-to-start-with-nginx-error/998 "2020-06-30T19:01:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [June 30, 2020, 7:01pm UTC](https://discourse.openondemand.org/t/example-ps-fails-to-start-with-nginx-error/998/1 "2020-06-30T19:01:10Z")

</div>

I extracted [https://github.com/OSC/ood-example-ps/archive/master.zip](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/](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

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 30, 2020, 8:36pm UTC](https://discourse.openondemand.org/t/example-ps-fails-to-start-with-nginx-error/998/2 "2020-06-30T20:36:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/example-ps-fails-to-start-with-nginx-error/998/3 "2022-05-26T15:43:12Z")

</div>

Closed on May 26, 2022, 3:43pm UTC


