Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL secure-file-priv Enabled #909

Open
bgant opened this issue Nov 11, 2016 · 0 comments
Open

MySQL secure-file-priv Enabled #909

bgant opened this issue Nov 11, 2016 · 0 comments

Comments

@bgant
Copy link

bgant commented Nov 11, 2016

The e-mail below documents that XC MST stopped working due to a MySQL security update in Ubuntu 14.04. The package update modified the /etc/mysql/my.cnf config to enable the "secure-file-priv" feature.

I recommend modifying MST to work with the new default enabled security feature. Rather than use the folder /var/lib/tomcat6/MST-instances/MetadataServicesToolkit, perhaps we can use the default /var/lib/mysql-files/ folder.

Also, we should avoid hard-coding any version numbers in directories. Especially considering that Tomcat 6.x is End-of-Life on December 31st, 2016: https://tomcat.apache.org/tomcat-60-eol.html

Brandon

Sent: Wednesday, November 09, 2016 1:38 PM
Subject: [Changecontrol] xc-mst.carli.illinios.edu: mysql parameter change

I noticed that the MST was not performing its nightly updates. The MST application was failing to load data into mysql. Apparently during the last upgrade on October 30th, mysql must have been changed its default behavior. Previously the parameter secure-file-priv was disabled by default; now, apparently, it is set to /var/lib/mysql-files/. That means that the mysql server only allows input files to reside in that directory. But since the MST application puts its files in /var/lib/tomcat6/MST-instances/MetadataServicesToolkit, this was causing the application to crash (see error message below).

I've added the following parameter to /etc/mysql/my.cnf disable this feature (and subsequently restarted mysql and tomcat6):

secure-file-priv = ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant