Bug 1022439 - Cannot perform app restart with missing httpd.pid file
Summary: Cannot perform app restart with missing httpd.pid file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-23 09:46 UTC by Chris Ryan
Modified: 2015-05-14 23:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:26:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Ryan 2013-10-23 09:46:08 UTC
Description of problem:
This is related to bug 975700. If the httpd.pid file is missing, the app will not restart.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create a php-5.3 application: 
   rhc app-create phptest php-5.3
2. SSH to the app and delete the httpd.pid file:
   rhc ssh phptest
   cd php/run
   rm httpd.pid
3. Restart the app:
   rhc app restart -a phptest

Actual results:
The restart fails with:
Unable to complete the requested operation due to: Failed to correctly execute all parallel operations.
Reference ID: 6773811579144a6f0633299c88259a13

Expected results:
The app should restart.

Additional info:
Note: this works if the app is simply "started," with rhc app start -a phptest. The httpd.pid file is regenerated. It will not regenerate with a 'restart', however.

Comment 2 Michal Fojtik 2013-10-24 11:28:00 UTC
PR: https://github.com/openshift/origin-server/pull/3979

Should be merged shortly. Thanks for reporting this!

Comment 3 openshift-github-bot 2013-10-24 12:52:11 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/b67be29bd2a40947ca50f7502e3605a695ae1988
Bug 1022439 - Restore missing httpd.pid when restarting PHP cart

Comment 4 Meng Bo 2013-10-25 02:56:22 UTC
Checked on devenv_3942,

After httpd.pid file been removed from php cartridge, the app can be restart successfully. And the pid file can be regenerated.


Note You need to log in before you can comment on or make changes to this bug.