Bug 1018215 - MySQL socket not re-created after git push from local repo to app
Summary: MySQL socket not re-created after git push from local repo to app
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-11 13:28 UTC by N. Harrison Ripps
Modified: 2015-05-14 23:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-11 20:50:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description N. Harrison Ripps 2013-10-11 13:28:55 UTC
Description of problem:
I wrote a quick ruby script to populate a table in mysql, and I've deployed it into a Ruby 1.9 app with no other framework in place. The intent was simply to push it to the app and then SSH in and run the script by hand.

When I pushed it to the app and tried to run the script using a standard `mysql` command, it couldn't connect to the DB. After some investigation, I found that the socket file listed in $OPENSHIFT_MYSQL_DB_SOCKET had never been created. Interestingly, after running `ctl_all restart`, the socket file magically appeared and everything worked.

This seems to happen every time I `git push` from my local repo to the app. 


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


How reproducible:
Always

Steps to Reproduce:
1. 
2.
3.

Actual results:
Socket file referenced by $OPENSHIFT_MYSQL_DB_SOCKET is not created

Expected results:
Socket file should be recreated after every git push

Additional info:
You can see this behavior on OpenShift Online with my app:

dbtest-emichron.rhcloud.com

You will need to log into the app to look around; ping me when you are ready to investigate.

Comment 1 Jhon Honce 2013-10-11 20:50:26 UTC
Please reopen with additional details if this can be reproduced.

Cartridge worked as expected using https://github.com/nhr/dbtest


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