+++ This bug was initially created as a clone of Bug #1327714 +++
Currently the "start" function in the control script of the mysql cartridge removes the mysql.log, which often makes it impossible for users to find the root cause of an outage.
--- Additional comment from openshift-github-bot on 2016-04-15 17:26:40 EDT ---
Commit pushed to master at https://github.com/openshift/origin-server
Bug 1327714: MySQL cartridge removes logs on start
The "start" function of start script of the MySQL cartridge removes the
mysql.log which is supposed to save some disk space. However, since the
log file is removed, it's very difficult, if not impossible, for users
to debug any issues with MySQL database.
Since the log file removal is unnecessary, the code that is responsible
for that is now removed. As a result, the mysql.log file will remain
after the "start" function in control script is called. Also, replace
an error-log dump with a static message to instruct users to check
mysql.log for errors.
Signed-off-by: Vu Dinh <firstname.lastname@example.org>
--- Additional comment from XiuJuan Wang on 2016-04-25 06:14:28 EDT ---
Verified in devenv_5785
Feature works in mysql-5.1 and mysql-5.5, could save the mysql.log under $OPENSHIFT_LOG_DIR
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.