CLI import. Error "Unable to queue your import file!"

MarcosHCS

New Member
Hi.

I am trying to queue import a CSV file without success.

1) I have already enabled "CLI import enabled" in settings.
2) Cron is running sucessfully according to "Cron jobs history".
3) The file that I upload in "CSV file (queue import)" gets imported sucessfully in folder apps/common/runtime/list-import
4) The error persists even with light files (~10kb)
5) It shows error message "Unable to queue your import file!"

Thank you.

picture.jpg
 
Last edited:
3) The file that I upload in "CSV file (queue import)" gets imported sucessfully in folder apps/common/runtime/list-import
From here, it has to be moved in apps/common/runtime/list-import-queue from where it is split into multiple smaller files and processed by the cron.
The error message appears when MailWizz cannot copy the file from a location to the other, so it looks like a permissions issue, make sure the /apps/common/runtime folder is chmoded to 0777 recursively.
 
Hi. Thank you for your response.

I have already run the following command in the installation process with success:

sudo chmod -R 777 /var/www/html/apps/common/runtime
 
Did it actually change the folder permissions? Can you do a
ls -alh /var/www/html/apps/common/
and paste here the response?
 
This looks good, could you also please do it for the runtime folder contents:
ls -alh /var/www/html/apps/common/runtime
 
Yeah, so this doesn't look right, your main problem is that your files are owned by root mostly, while some of them, by www-data, which I assume is the web server user and group.
Your files should all be under www-data not root, and then, run again the chmod -R command because the permissions on the subfolders are not correct, they need to look like the ones on the cache folder.
 
Back
Top