dweeves/magmi-git

Magmi remote csv url

Closed this issue · 10 comments

I am using magmi 0.7.18 . In data source url I want to fetch csv from remote url which is as under
http://xx.xx.xx.xx:8080/fetch.csv . When I run profile it shows error that magmi couldn't fetch data from url . Any clue in which format remote url should be ? When I avigate to that url using normal browser it downloads file without any problem

I have same problem, receive info that in Magmi download directory file not found. Through browser can download file but through Magmi Remote CSV url its impossible (with and without Force Download). I just try local CSV file, all works.
Please help.

@ivantuzov Now what I was thinking is to setup cronjob to download file into cpanel specific directory and set import local csv . Then set another cronjob to run that magmi everyday . What you think about that ?

@mohammadobaid1 yes, it possible. But why Magmi not work?! i try change all permissions... not help.

PS. Thank you for idea with cronjob

Hey @ivantuzov try one thing . Create an empty file in that specific directory where you want magmi to download that file and see if magmi overwrite that file or not ?

@mohammadobaid1 Magmi delete this file. I try copy original file too, but Magmi delete both files from this directory magmi/plugins/base/datasources/csv/downloads/

@mohammadobaid1 i think that issue with my hosting (where is installed Magmi) because with CURL i download 0kb file and in log i see "... connection refused"
BR

Yes @ivantuzov I am facing the same exact issue. I think its more like a cpanel issue. If you setup cronjob with curl command on it it will also show refused connection . Can you ask your hosting site whether they block curl or wget ?

@mohammadobaid1 yes, problem was in my hosting (magmi hosted) with cpanel. I sent request to hosting support, they not answered yet but now WGET start working, and Magmi get remote CSV files normally! :)

Still waiting answer from hosting support.

@ivantuzov Great to hear that . What's your external url looks like ? My url is something like http://ec2-xx-xx-xxx-4.compute-1.amazonaws.com:8000/data.csv . Also did you make any changes in cpanel to run wget command ?

Indeed it was cpanel issue blocking requests.