markshust / docker-magento2-php

This image is built from the official php repository and contains PHP configurations for Magento 2.
MIT License
52 stars 61 forks source link

cron.php not exist, so perpetual cron/php Error happen: 'Could not open input file: /srv/www/update/cron.php' #28

Closed Anton-Latukha closed 8 years ago

Anton-Latukha commented 8 years ago

In setup-config:

Cron perpetually runs:

/usr/local/bin/php $WWW_DIR/update/cron.php

But there is no file

/srv/www/update/cron.php

So php perpetually says in phpfpm_1 container:

Could not open input file: /srv/www/update/cron.php

P.S.


NOR there is no 'cron.php' anywhere in /srv/www/ volume:


find . -name "*cron*"
./dev/tests/integration/testsuite/Magento/Email/Model/_files/design/adminhtml/Magento/default/Magento_ProductAlert/email/cron_error.html
./vendor/magento/module-cron
./vendor/magento/module-cron/etc/crontab
./vendor/magento/module-catalog-rule-configurable/etc/crontab
./vendor/magento/module-catalog-rule/etc/crontab
./vendor/magento/module-captcha/etc/crontab
Anton-Latukha commented 8 years ago

And there is no mentioning of cron.php in *this repo files exept in mentioned 'setup-config' line:

grep -r 'cron.php' ./docker-magento2-php/ ./bin/setup-config:echo "/1 * * * \ su -c \"/usr/local/bin/php $WWW_DIR/update/cron.php\" -s /bin/sh www-data > /proc/1/fd/2 2>&1" | crontab - \

Anton-Latukha commented 8 years ago

Suddenly closed issue. Don't meant it.

Issue is Open.

Anton-Latukha commented 8 years ago

This all while building from current docker-compose.

Anton-Latukha commented 8 years ago

My bad, This all is because I looked-over docker-compose run --rm setup.

Anton-Latukha commented 8 years ago

Maybe add an exception for stupid people, like me?

Anton-Latukha commented 8 years ago

Now I close this purposefully.