Magento 2.1.6 - cronjob only working if i run commands not by scheduleconfiguring cron jobs for Magento on Centos Magento 1.7Cron generating a lot of process causing the server to hang (Magento 2.0.2)Can someone give detailed explanation about scheduling in Magento 2 cron job?Magento 2.1, Help figuring out Cron job errorCron stopped working after setting up multi store on Magento2No Emails sent to customers or owner after old backup installedCronjob started rollback and files were deleted. Why?escapeshellarg() has been disabled - cronjob - Magento 2Magento 2 update System Upgrade Status: Update pending
How did Monica know how to operate Carol's "designer"?
Is there an wasy way to program in Tikz something like the one in the image?
Lifted its hind leg on or lifted its hind leg towards?
Blender - show edges angles “direction”
Is there enough fresh water in the world to eradicate the drinking water crisis?
My boss asked me to take a one-day class, then signs it up as a day off
What if somebody invests in my application?
Can a Bard use an arcane focus?
What was required to accept "troll"?
Can somebody explain Brexit in a few child-proof sentences?
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
I2C signal and power over long range (10meter cable)
Is a naturally all "male" species possible?
Is exact Kanji stroke length important?
Modern Day Chaucer
Is there a problem with hiding "forgot password" until it's needed?
How will losing mobility of one hand affect my career as a programmer?
Is the next prime number always the next number divisible by the current prime number, except for any numbers previously divisible by primes?
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
Have I saved too much for retirement so far?
How can I raise concerns with a new DM about XP splitting?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?
Meta programming: Declare a new struct on the fly
Magento 2.1.6 - cronjob only working if i run commands not by schedule
configuring cron jobs for Magento on Centos Magento 1.7Cron generating a lot of process causing the server to hang (Magento 2.0.2)Can someone give detailed explanation about scheduling in Magento 2 cron job?Magento 2.1, Help figuring out Cron job errorCron stopped working after setting up multi store on Magento2No Emails sent to customers or owner after old backup installedCronjob started rollback and files were deleted. Why?escapeshellarg() has been disabled - cronjob - Magento 2Magento 2 update System Upgrade Status: Update pending
I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: bin/magento cron:run. I know this because if i empty 'cron_schedule' table and wait, nothing will show but then running that command will bring up the list of cronjobs expected, leaving me to repeat the same.
Here are the lines that are written into crontab:
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/bin/magento cron:run | grep -v "Ran jobs by
schedule" >> /home/admin/public_html/mag/var/log/magento.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/update/cron.php >>
/home/admin/public_html/mag/var/log/update.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/bin/magento setup:cron:run >>
/home/admin/public_html/mag/var/log/setup.cron.log
It's showing the same in cPanel.
Do i need to use the command crontab -u magento user -e where my magento user is modxpc or do i need to use admin which is the cPanel username which is the user which has ownership to the directories. Both allow me to edit the lines but the changes in cPanel show up using 'admin'.
To add to the problem - i have noticed that every time i want to install an extension it'll throw an internal 500 error which i found keeps happening because the rights and owner gets reset to 0 every time, so i need to apply find ./var -type d -exec chmod 777 ; to get the back end running again. Why are the permissions being changed?
magento-2.1 cron permissions
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: bin/magento cron:run. I know this because if i empty 'cron_schedule' table and wait, nothing will show but then running that command will bring up the list of cronjobs expected, leaving me to repeat the same.
Here are the lines that are written into crontab:
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/bin/magento cron:run | grep -v "Ran jobs by
schedule" >> /home/admin/public_html/mag/var/log/magento.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/update/cron.php >>
/home/admin/public_html/mag/var/log/update.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/bin/magento setup:cron:run >>
/home/admin/public_html/mag/var/log/setup.cron.log
It's showing the same in cPanel.
Do i need to use the command crontab -u magento user -e where my magento user is modxpc or do i need to use admin which is the cPanel username which is the user which has ownership to the directories. Both allow me to edit the lines but the changes in cPanel show up using 'admin'.
To add to the problem - i have noticed that every time i want to install an extension it'll throw an internal 500 error which i found keeps happening because the rights and owner gets reset to 0 every time, so i need to apply find ./var -type d -exec chmod 777 ; to get the back end running again. Why are the permissions being changed?
magento-2.1 cron permissions
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: bin/magento cron:run. I know this because if i empty 'cron_schedule' table and wait, nothing will show but then running that command will bring up the list of cronjobs expected, leaving me to repeat the same.
Here are the lines that are written into crontab:
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/bin/magento cron:run | grep -v "Ran jobs by
schedule" >> /home/admin/public_html/mag/var/log/magento.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/update/cron.php >>
/home/admin/public_html/mag/var/log/update.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/bin/magento setup:cron:run >>
/home/admin/public_html/mag/var/log/setup.cron.log
It's showing the same in cPanel.
Do i need to use the command crontab -u magento user -e where my magento user is modxpc or do i need to use admin which is the cPanel username which is the user which has ownership to the directories. Both allow me to edit the lines but the changes in cPanel show up using 'admin'.
To add to the problem - i have noticed that every time i want to install an extension it'll throw an internal 500 error which i found keeps happening because the rights and owner gets reset to 0 every time, so i need to apply find ./var -type d -exec chmod 777 ; to get the back end running again. Why are the permissions being changed?
magento-2.1 cron permissions
I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: bin/magento cron:run. I know this because if i empty 'cron_schedule' table and wait, nothing will show but then running that command will bring up the list of cronjobs expected, leaving me to repeat the same.
Here are the lines that are written into crontab:
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/bin/magento cron:run | grep -v "Ran jobs by
schedule" >> /home/admin/public_html/mag/var/log/magento.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/update/cron.php >>
/home/admin/public_html/mag/var/log/update.cron.log
*/1 * * * * /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini
/home/admin/public_html/mag/bin/magento setup:cron:run >>
/home/admin/public_html/mag/var/log/setup.cron.log
It's showing the same in cPanel.
Do i need to use the command crontab -u magento user -e where my magento user is modxpc or do i need to use admin which is the cPanel username which is the user which has ownership to the directories. Both allow me to edit the lines but the changes in cPanel show up using 'admin'.
To add to the problem - i have noticed that every time i want to install an extension it'll throw an internal 500 error which i found keeps happening because the rights and owner gets reset to 0 every time, so i need to apply find ./var -type d -exec chmod 777 ; to get the back end running again. Why are the permissions being changed?
magento-2.1 cron permissions
magento-2.1 cron permissions
edited Apr 16 '17 at 18:33
Mehdi Rafiai
asked Apr 16 '17 at 17:43
Mehdi RafiaiMehdi Rafiai
99115
99115
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
It looks like your service is with GoDaddy? In any case, I think you have extra commands that may not be necessary to run the cron. Also check the path to your /var/log folder. You have "admin" but it should be replaced by your site/account name.
try the following:
/usr/local/bin/php /home/yoursite/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/yoursite/public_html/var/log/magento.cron.log
/usr/local/bin/php /home/yoursite/public_html/update/cron.php >> /home/yoursite/public_html/var/log/update.cron.log
/usr/local/bin/php /home/yoursite/public_html/bin/magento setup:cron:run >> /home/yoursite/public_html/var/log/setup.cron.log
I would also change "1" for minutes to "*" as it would be the same thing.
Let me know how this works out.
add a comment |
Please check this link
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
here is guide how to set cron and get php path.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f170366%2fmagento-2-1-6-cronjob-only-working-if-i-run-commands-not-by-schedule%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It looks like your service is with GoDaddy? In any case, I think you have extra commands that may not be necessary to run the cron. Also check the path to your /var/log folder. You have "admin" but it should be replaced by your site/account name.
try the following:
/usr/local/bin/php /home/yoursite/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/yoursite/public_html/var/log/magento.cron.log
/usr/local/bin/php /home/yoursite/public_html/update/cron.php >> /home/yoursite/public_html/var/log/update.cron.log
/usr/local/bin/php /home/yoursite/public_html/bin/magento setup:cron:run >> /home/yoursite/public_html/var/log/setup.cron.log
I would also change "1" for minutes to "*" as it would be the same thing.
Let me know how this works out.
add a comment |
It looks like your service is with GoDaddy? In any case, I think you have extra commands that may not be necessary to run the cron. Also check the path to your /var/log folder. You have "admin" but it should be replaced by your site/account name.
try the following:
/usr/local/bin/php /home/yoursite/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/yoursite/public_html/var/log/magento.cron.log
/usr/local/bin/php /home/yoursite/public_html/update/cron.php >> /home/yoursite/public_html/var/log/update.cron.log
/usr/local/bin/php /home/yoursite/public_html/bin/magento setup:cron:run >> /home/yoursite/public_html/var/log/setup.cron.log
I would also change "1" for minutes to "*" as it would be the same thing.
Let me know how this works out.
add a comment |
It looks like your service is with GoDaddy? In any case, I think you have extra commands that may not be necessary to run the cron. Also check the path to your /var/log folder. You have "admin" but it should be replaced by your site/account name.
try the following:
/usr/local/bin/php /home/yoursite/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/yoursite/public_html/var/log/magento.cron.log
/usr/local/bin/php /home/yoursite/public_html/update/cron.php >> /home/yoursite/public_html/var/log/update.cron.log
/usr/local/bin/php /home/yoursite/public_html/bin/magento setup:cron:run >> /home/yoursite/public_html/var/log/setup.cron.log
I would also change "1" for minutes to "*" as it would be the same thing.
Let me know how this works out.
It looks like your service is with GoDaddy? In any case, I think you have extra commands that may not be necessary to run the cron. Also check the path to your /var/log folder. You have "admin" but it should be replaced by your site/account name.
try the following:
/usr/local/bin/php /home/yoursite/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/yoursite/public_html/var/log/magento.cron.log
/usr/local/bin/php /home/yoursite/public_html/update/cron.php >> /home/yoursite/public_html/var/log/update.cron.log
/usr/local/bin/php /home/yoursite/public_html/bin/magento setup:cron:run >> /home/yoursite/public_html/var/log/setup.cron.log
I would also change "1" for minutes to "*" as it would be the same thing.
Let me know how this works out.
answered Apr 16 '17 at 21:54
TipoFloeTipoFloe
163
163
add a comment |
add a comment |
Please check this link
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
here is guide how to set cron and get php path.
add a comment |
Please check this link
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
here is guide how to set cron and get php path.
add a comment |
Please check this link
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
here is guide how to set cron and get php path.
Please check this link
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
here is guide how to set cron and get php path.
answered Apr 21 '18 at 6:46
PriyaPriya
12510
12510
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f170366%2fmagento-2-1-6-cronjob-only-working-if-i-run-commands-not-by-schedule%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown