Magento Magmi not updating products through Magmi CLI

1.6k views Asked by At

I need to setup the cron job to update the prices of the products daily. So I tried like this in command prompt first,

php magmi.cli.php -profile=default -mode=update -CSV:filename="/path/magento/var/import/Price.csv"

It is showing the following errors:

fopen(/var/www/html/magento/magmi/state/progress.txt): failed to open stream: Permission denied in /path/magento/magmi/inc/magmi_loggers.php on line 20

PHP Fatal error:  Uncaught exception 'Exception' with message 'CANNOT WRITE PROGRESS FILE ' in /path/magento/magmi/inc/magmi_loggers.php:23
1

There are 1 answers

2
anz On

It's permission issue:

This folder /var/www/html/magento/magmi/state/ and all it's contents should be given either 777 or 755 permission.

Run the following command:

sudo chmod 777 -R /var/www/html/magento/magmi/state/

If you still have some problems then try

sudo chmod 755 -R /var/www/html/magento/magmi/state/