Magento 2 crontab: not foundmagento 1.9.1.1 cant run my cron jobsBugs after Magento 2 Installationmagento 2 setup freezes browserAre there any creative solutions for launching cron.sh for multiple Magento stores in a distributed architecture?Magento 2 cron job not re-indexing products as expectedMagento2 theme settings not applied to websitesConsumer is not authorized to access %resources selfMagento 1.9, Order email found in core_email_queue, but not sent outMagento 2 Cron jobs are stuck in PendingProblems With Magento installation
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
How do both sides know the MTU
Data normalization before or after train-test split?
Motorcyle Chain needs to be cleaned every time you lube it?
Minimizing medical costs with HSA
Show that there are infinitely more problems than we will ever be able to compute
Is there a typical layout to blocking installed for backing in new construction framing?
What is the maximum amount of diamond in one Minecraft game?
Taking advantage when the HR forgets to communicate the rules
Should I hide my travel history to the UK when I apply for an Australian visa?
How serious is plagiarism in a master’s thesis?
how can i make this execution plan more efficient?
What are the differences of checking a self-signed certificate vs ignore it?
Term for a character that only exists to be talked to
Could you sell yourself into slavery in the USA?
CPA filed late returns, stating I would get money; IRS says they were filed too late
Explain how 'Sharing the burden' puzzle from Professor Layton and the Miracle Mask should be solved
PhD: When to quit and move on?
What instances can be solved today by modern solvers (pure LP)?
What is the difference between a historical drama and a period drama?
Chess problem: Make a crossword in 3 moves
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
Why do we need a bootloader separate than our application program in MCU's?
How to improve the size of cells in this table?
Magento 2 crontab: not found
magento 1.9.1.1 cant run my cron jobsBugs after Magento 2 Installationmagento 2 setup freezes browserAre there any creative solutions for launching cron.sh for multiple Magento stores in a distributed architecture?Magento 2 cron job not re-indexing products as expectedMagento2 theme settings not applied to websitesConsumer is not authorized to access %resources selfMagento 1.9, Order email found in core_email_queue, but not sent outMagento 2 Cron jobs are stuck in PendingProblems With Magento installation
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I read many about problems with setup magento CRON but I don't find something about this error message with putty ssh connection:
Error during saving of crontab: sh: line 6: crontab: command not found
It is a new Magento 2.2.6 installation.
Where is my mistake?
With Mag 1.9 I had zero problems to activate the CRON. But the Mag 2 seems very complicated.
magento2 crontab setup
add a comment |
I read many about problems with setup magento CRON but I don't find something about this error message with putty ssh connection:
Error during saving of crontab: sh: line 6: crontab: command not found
It is a new Magento 2.2.6 installation.
Where is my mistake?
With Mag 1.9 I had zero problems to activate the CRON. But the Mag 2 seems very complicated.
magento2 crontab setup
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16
add a comment |
I read many about problems with setup magento CRON but I don't find something about this error message with putty ssh connection:
Error during saving of crontab: sh: line 6: crontab: command not found
It is a new Magento 2.2.6 installation.
Where is my mistake?
With Mag 1.9 I had zero problems to activate the CRON. But the Mag 2 seems very complicated.
magento2 crontab setup
I read many about problems with setup magento CRON but I don't find something about this error message with putty ssh connection:
Error during saving of crontab: sh: line 6: crontab: command not found
It is a new Magento 2.2.6 installation.
Where is my mistake?
With Mag 1.9 I had zero problems to activate the CRON. But the Mag 2 seems very complicated.
magento2 crontab setup
magento2 crontab setup
edited Oct 5 '18 at 12:00
Aasim Goriya
3,2471 gold badge11 silver badges43 bronze badges
3,2471 gold badge11 silver badges43 bronze badges
asked Oct 5 '18 at 11:40
MarcelMarcel
11012 bronze badges
11012 bronze badges
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16
add a comment |
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16
add a comment |
2 Answers
2
active
oldest
votes
Check out, the document
I guess that you have added cron from cpanel
In order to php bin/magento cron:install
First, your current Cli user have any record at crontab.
So, Check existing cron list using below code
crontab -l
You have to add magento cron
* * * * * /usr/bin/php /ProjectPath/bin/magento cron:run | grep -v Ran jobs by schedule >> /ProjectPath/var/log/magento.cron.log
* * * * * /usr/bin/php /ProjectPath/update/cron.php >> /ProjectPath/var/log/update.cron.log
* * * * * /usr/bin/php /ProjectPath/bin/magento setup:cron:run >> /ProjectPath/var/log/setup.cron.log
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
|
show 2 more comments
Now I find out. I cant create a crontab (Shared-Server). The only way is to create a cronjob by my hoster "all inkl" and call pub/cron.php with the cronjob. In this case this article was helpfull. I've adjust the .htaccess in the /pub with password protection for the cron.php file. Now the cron works.
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%2f245277%2fmagento-2-crontab-not-found%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
Check out, the document
I guess that you have added cron from cpanel
In order to php bin/magento cron:install
First, your current Cli user have any record at crontab.
So, Check existing cron list using below code
crontab -l
You have to add magento cron
* * * * * /usr/bin/php /ProjectPath/bin/magento cron:run | grep -v Ran jobs by schedule >> /ProjectPath/var/log/magento.cron.log
* * * * * /usr/bin/php /ProjectPath/update/cron.php >> /ProjectPath/var/log/update.cron.log
* * * * * /usr/bin/php /ProjectPath/bin/magento setup:cron:run >> /ProjectPath/var/log/setup.cron.log
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
|
show 2 more comments
Check out, the document
I guess that you have added cron from cpanel
In order to php bin/magento cron:install
First, your current Cli user have any record at crontab.
So, Check existing cron list using below code
crontab -l
You have to add magento cron
* * * * * /usr/bin/php /ProjectPath/bin/magento cron:run | grep -v Ran jobs by schedule >> /ProjectPath/var/log/magento.cron.log
* * * * * /usr/bin/php /ProjectPath/update/cron.php >> /ProjectPath/var/log/update.cron.log
* * * * * /usr/bin/php /ProjectPath/bin/magento setup:cron:run >> /ProjectPath/var/log/setup.cron.log
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
|
show 2 more comments
Check out, the document
I guess that you have added cron from cpanel
In order to php bin/magento cron:install
First, your current Cli user have any record at crontab.
So, Check existing cron list using below code
crontab -l
You have to add magento cron
* * * * * /usr/bin/php /ProjectPath/bin/magento cron:run | grep -v Ran jobs by schedule >> /ProjectPath/var/log/magento.cron.log
* * * * * /usr/bin/php /ProjectPath/update/cron.php >> /ProjectPath/var/log/update.cron.log
* * * * * /usr/bin/php /ProjectPath/bin/magento setup:cron:run >> /ProjectPath/var/log/setup.cron.log
Check out, the document
I guess that you have added cron from cpanel
In order to php bin/magento cron:install
First, your current Cli user have any record at crontab.
So, Check existing cron list using below code
crontab -l
You have to add magento cron
* * * * * /usr/bin/php /ProjectPath/bin/magento cron:run | grep -v Ran jobs by schedule >> /ProjectPath/var/log/magento.cron.log
* * * * * /usr/bin/php /ProjectPath/update/cron.php >> /ProjectPath/var/log/update.cron.log
* * * * * /usr/bin/php /ProjectPath/bin/magento setup:cron:run >> /ProjectPath/var/log/setup.cron.log
edited Oct 5 '18 at 13:15
answered Oct 5 '18 at 12:26
Amit Bera♦Amit Bera
61.7k16 gold badges84 silver badges183 bronze badges
61.7k16 gold badges84 silver badges183 bronze badges
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
|
show 2 more comments
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
When I use the command crontab -l I get bash: crontab: command not found
– Marcel
Oct 5 '18 at 12:51
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
In the system.log I find these lines after main.Error: echo [2018-10-04 07:13:41] #~ MAG START 7886code....... * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /www/htdocs/xxx/xxx/magento2.2/var/log/magento.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/update/cron.php >> /www/htdocs/xxx/xxx/magento2.2/var/log/update.cron.log * * * * * /usr/bin/php70 /www/htdocs/xxx/xxx/magento2.2/bin/magento setup:cron:run >> /www/htdocs/xxx/xxx/magento2.2/var/log/setup.cron.log #~ MAG END 788code..
– Marcel
Oct 5 '18 at 12:56
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
How you have add cron job for magento 1?
– Amit Bera♦
Oct 5 '18 at 13:10
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
I can create it on the administration from my hoster. I can set a Path and time.
– Marcel
Oct 5 '18 at 13:12
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
3 cron , need to be at cronjobn list that is enough for magento cron
– Amit Bera♦
Oct 5 '18 at 13:16
|
show 2 more comments
Now I find out. I cant create a crontab (Shared-Server). The only way is to create a cronjob by my hoster "all inkl" and call pub/cron.php with the cronjob. In this case this article was helpfull. I've adjust the .htaccess in the /pub with password protection for the cron.php file. Now the cron works.
add a comment |
Now I find out. I cant create a crontab (Shared-Server). The only way is to create a cronjob by my hoster "all inkl" and call pub/cron.php with the cronjob. In this case this article was helpfull. I've adjust the .htaccess in the /pub with password protection for the cron.php file. Now the cron works.
add a comment |
Now I find out. I cant create a crontab (Shared-Server). The only way is to create a cronjob by my hoster "all inkl" and call pub/cron.php with the cronjob. In this case this article was helpfull. I've adjust the .htaccess in the /pub with password protection for the cron.php file. Now the cron works.
Now I find out. I cant create a crontab (Shared-Server). The only way is to create a cronjob by my hoster "all inkl" and call pub/cron.php with the cronjob. In this case this article was helpfull. I've adjust the .htaccess in the /pub with password protection for the cron.php file. Now the cron works.
answered Oct 8 '18 at 10:16
MarcelMarcel
11012 bronze badges
11012 bronze badges
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%2f245277%2fmagento-2-crontab-not-found%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
Please share what command you have run on putty for add crontab
– Amit Bera♦
Oct 5 '18 at 12:04
I use: php bin/magento cron:install
– Marcel
Oct 5 '18 at 12:09
So, you want to run cron manually ?
– Amit Bera♦
Oct 5 '18 at 12:12
At first yes but in future with a cronjob. With Mag 1.9 I make a cronjob that trigger the cron.php but in Mag 2 i have no plan.
– Marcel
Oct 5 '18 at 12:16