2

I can't find a definitive answer to this, but I can see a lot of people are having the same issue.

I have setup magento 2.1.0 and all is going well. However the cron job fails on the update script.

I have the following error:

 [2016-08-26 08:21:02] update-cron.ERROR: Cron readiness check failure! 
 Found non-writable paths:  /home/<USER>/public_html/app/design/frontend/Magento [] []

Furthermore this file only exists under the pub/static folder and not under app/design/frontend. Its all very confusing.

I have run the permission changes from magento via ssh, I even tested this with cmod 777 but still to no avail. I have also tried running the cron job as both the user and root but still the same issue.

This is on a VPS running CPanel and WHM PHP version 5.6.24

Am I missing something stupid here or can anyone advise a way to fix this?

  • You shouldn't run anything as root because if it creates files or directories owned by root, other users can't access them. You might, however, have to reset permissions as root if that's the case. The app/design/frontend/Magento directory should be there though. How did you get the Magento software: GitHub, Composer, archive? – Steve Johnson Aug 27 '16 at 13:31
  • Thanks so much for your response Steve. It was just a test with root everything is running as the account user now, but still the same issue. Ref the folder app/design/frontend/Magento this isn't there. I downloaded the package from the magento main website. I have just checked the github repository and you're right the folder is there on that package. But it isn't in the vendor folder, where as it is on my current install. I am hoping swapping their locations over may correct this. Im uploading the new folders now so hopefully that works and will report back. Thanks :) – justnorm Aug 27 '16 at 21:39
1

This is mainly to help others suffering with the same issue. This is what I have discovered.

There are 2 versions of Magento, the Magento download package which comes with composer installed and Magento from Github where you need to install composer.

The file path above wasn't there and doesn't need to be there because those files are stored under vendor.

My issue was mainly relating to the .setup_cronjob_status & .update_cronjob_status files under /var/ these are created on cron and store info.

It seems these store cache info. On deleting those files and all files under pub/static solved my issue.

I hope that helps someone else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.