-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Upload a CSV, not working with MySQL #4287
Comments
I have also posted an issue on the docker image at amancevice/docker-superset#45 |
Does the user you are connecting to MySQL with have the correct permissions? I've never used this feature, but it looks like that's the root of your issue to me. |
As I put in the issue, the user has all the privs it needs and I can successfully import data through mysql workbench using this newly created user. |
@britishbadger does testing the connection from the database page work fine? |
yeah that produces the message "Seems OK" |
Check this stackoverflow issue: https://stackoverflow.com/questions/2221335/access-denied-for-load-data-infile-in-mysql |
I took a look at that post but I don't really understand it's relevance. I can connect directly to the database from MySQL workbench and the data loads in fine, indicating the user has all the right privileges. |
@britishbadger you did say you tried the connection not the data upload with workbench, it was a fair shot :) |
Have you tried adding Oddly enough I just ran into this myself for a different Python project and this was the only thing that fixed it. |
Thanks for taking a look at this, With the following connection string: I still get the following:
|
@britishbadger give it a try to #4298 as it's supposed to fix your issue |
Thanks, I'll keep an eye on it or build it when I get some free time. |
I have a very similar issue, where "Upload a csv" form yields this error
even though the path for the data is different. Further, /usr/local/lib/python3.6/site-packages/superset/app/static/uploads does not seem to exist. There is no 'app' folder in the superset folder. |
Also getting similar error message ([Errno 13] Permission denied: '/usr/local/lib/python3.5/site-packages/superset/app') despite updating to newest version. |
@shinabarger Are you running superset within a docker image? |
I ran this command and it worked |
I had the same problem and solved it properly by changing the path where Superset uploads the CSV. Here is Stackoverflow answer that worked for me. |
@welshamy I am doing the same thing as mentioned in the stackoverflow answer but it still throws the same error. This is for superset installed on Ubuntu server. For mac I never got csv error. Could u help? Here is how my superset_config.py looks like:
Here is my docker-compose.yml file. Notice the Development option is commented out since I was getting Mkdir permission denied issue then. Commenting it out fixed that.
Any suggestion how to fix it? |
@robertozerbini Where do u find this folder in Ubuntu server? I installed superset on ubuntu server but I don't have any superset folder in this path. Any idea where that could be installed on server? So that I can run similar docker exec command? |
in superset_config.py I also commented out the line |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.22.1
Expected results
CSV upload should create new table and load data into mysql
Actual results
Steps to reproduce
I'm using the following docker image : https://github.com/amancevice/superset
add the following to mysql/supertset_config.py
UPLOAD_FOLDER='/tmp/'
I created a new database called TEST and ensured the user has permissions to do stuff with this schema:
GRANT ALL PRIVILEGES ON TEST.* TO 'superset'@'%' WITH GRANT OPTION;
Password was set to superset and I can prove external connection by using sql workbench (external client) to connect directly to the mysql container.
CSV file called x.csv contained the following
The text was updated successfully, but these errors were encountered: