Bug 1083109
| Summary: | MySQL 5.5 never restarts properly, causing repository action_hooks not to fire (leading to data loss in our use case) | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | steven.merrill |
| Component: | Image | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | dmueller2001, steven.merrill, vvitek |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-02 08:11:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
steven.merrill
2014-04-01 13:44:17 UTC
impacts the Drupal-based Origin community site > Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
Did you try connecting to MySQL using explicit $OPENSHIFT_MYSQL_DB_SOCKET env var value instead of 'localhost'? Did you try connecting over 'tcp' protocol ($OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT) instead of 'socket'?
Vojtech, I don't have a problem when the MySQL cartridge is running - PHP and Drupal can connect just fine. There's a problem when the cartridge stops and starts after a git push - since we switched to MySQL 5.5 on this application, it has never successfully started up again after a git push, and that means a few things: 1) The other cartridges (php, cron, pressflow7) don't start up. 2) The action_hooks in the main repository do not run (and thus the symlink for the files directory is not created) To get the application up and running again, I have to SSH into the gear and "gear restart" the mysql, cron, and php cartridges since the cron and php cartridges are not running at that point. An invocation of "gear restart" over SSH stops and starts MySQL 5.5 just fine, but the git post-receive hook version does not for some reason. I've tried to reproduce but have not had much luck. If you can make the error happen reliably, please let me know and I'll resume looking into it. My guess at this point is that something weird is going on either in your pressflow cart or in your quickstart's action hooks. Thanks to the team for the help tracking this down today. The issue ended up being with my post_start_mysql action in the quickstart. I have moved the MySQL innodb_file_per_table setting to post_deploy in https://github.com/smerrill/openatrium-2-quickstart/commit/a1db47410e5df6c5b20c52d2fd8771cbfa69db0b and it appears to be working well. |