2017-07-23 12 views
0

Das Problem, mit dem ich konfrontiert bin, ist, dass Bestellung E-Mails nicht auf meinem Magento-Shop funktioniert. Ich installierte AOE Scheduler, aber ich bekomme dieses ProblemCron Job-Problem Magento

Keine Heartbeat Task gefunden. Überprüfen Sie, ob Cron richtig konfiguriert ist.

Obwohl ich gesetzt haben die Einstellungen auf cPanel enter image description here

und AOE-Scheduler-Einstellungen auf magento enter image description here

Ich erhalte diese E-Mail jede Sekunde

Available actions: 
    --action listAllCodes 
    --action lastRun --code <code> [--secondsFromNow] Get the timestamp of the last successful run of a job for a given code 
    --action scheduleNow --code <code> Schedule a job to be executed as soon as possible 
    --action runNow --code <code> [--tryLock] [--force]   Run a job directly 
    --action wait [--timout <timeout=60>]    Active wait until no schedules are running. 
    --action flushSchedules --mode (future|all)   Flush schedules. 
    --action listAllRunningSchedules 
    --action killAll 
    --action watchdog 
    --action cron --mode (always|default) [--includeJobs <comma separated list of jobs>] [--excludeJobs <comma separated list of jobs>] [--includeGroups <comma separated list of groups>] [--excludeGroups <comma separated list of groups>] 

Ich bin fest I weiß nicht, wie Sie dieses Problem beheben können, bitte helfen Sie

+0

Ich wähle diese Frage als Wegthema zu schließen, weil Stack-Überlauf ein [Programmierung bezogene] ist (http://stackoverflow.com/help/on -Topic) Q & A-Site. Bei Ihrer Frage geht es nicht um Programmierung. Vielleicht sollten Sie es stattdessen auf http://magento.stackexchange.com veröffentlichen? – Enigmativity

Antwort

0

https://magento.stackexchange.com/questions/186044/cron-jobs-for-order-emails?noredirect=1#comment257244_186044

Sieht aus wie PATH-Variable irgendwie anders in jailshelled cron Umgebung gesetzt. Also nehme ich an, dass verschiedene PHP-Binärdateien verwendet werden. Sie können SSH an Ihr cPanel-Konto senden und PATH in Ihrer crontab festlegen.

So sollte crontab beginnen wie:

SHELL=/bin/sh 
PATH=/usr/local/jdk/bin:/usr/local/bin:/usr/bin:/opt/cpanel/composer/bin:/usr/local/bin:/usr/X11R6/bin:/home/username/.local/bin:/home/username/bin 
-1

Hier ist etwas, was in der Magento 2 Dokumentation versteckt ist. Sobald Sie Magento 2 mit Composer installiert haben, ist die Installation noch nicht abgeschlossen. Man muss unter den Ordner/update/gehen und composer update erneut ausführen, damit es einige benötigte Pakete installiert, damit das Cron ordnungsgemäß funktioniert.

Ich habe viele Magento2-Setups gesehen, wo dieser zusätzliche Schritt nicht gemacht wurde, daher funktioniert alles außer dem Cron.

Wenn Sie Befehlszeile verwenden, sollte es so aussehen:

[html]$ cd update/ 
[update]$ composer update 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Package operations: 29 installs, 0 updates, 0 removals 
    - Installing psr/log (1.0.2): Loading from cache 
    - Installing monolog/monolog (1.16.0): Loading from cache 
    - Installing symfony/yaml (v2.8.25): Loading from cache 
    - Installing sebastian/version (1.0.6): Loading from cache 
    - Installing sebastian/recursion-context (1.0.5): Loading from cache 
    - Installing sebastian/exporter (1.2.2): Loading from cache 
    - Installing sebastian/environment (1.3.8): Loading from cache 
    - Installing sebastian/diff (1.4.3): Loading from cache 
    - Installing sebastian/comparator (1.2.4): Loading from cache 
    - Installing doctrine/instantiator (1.0.5): Loading from cache 
    - Installing phpunit/php-text-template (1.2.1): Loading from cache 
    - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache 
    - Installing phpunit/php-timer (1.0.9): Loading from cache 
    - Installing phpunit/php-file-iterator (1.3.4): Loading from cache 
    - Installing phpunit/php-token-stream (1.4.11): Loading from cache 
    - Installing phpunit/php-code-coverage (2.2.4): Loading from cache 
    - Installing phpunit/phpunit (4.1.0): Loading from cache 
    - Installing symfony/console (v2.6.13): Loading from cache 
    - Installing symfony/process (v3.3.5): Loading from cache 
    - Installing symfony/finder (v3.3.5): Loading from cache 
    - Installing symfony/filesystem (v3.3.5): Loading from cache 
    - Installing seld/phar-utils (1.0.1): Loading from cache 
    - Installing seld/jsonlint (1.6.1): Loading from cache 
    - Installing seld/cli-prompt (1.0.3): Loading from cache 
    - Installing justinrainbow/json-schema (1.6.1): Loading from cache 
    - Installing composer/spdx-licenses (1.1.6): Loading from cache 
    - Installing composer/semver (1.4.2): Loading from cache 
    - Installing composer/composer (1.0.0-beta1): Loading from cache 
    - Installing magento/composer (1.0.3): Loading from cache 
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB) 
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server) 
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server) 
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server) 
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome) 
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server) 
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar) 
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server) 
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib) 
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) 
symfony/console suggests installing symfony/event-dispatcher() 
Writing lock file 
Generating autoload files 
[update]$ 
+0

Ich benutze Magento 2 nicht –

+0

In Magento 1 - die meisten Cron-Probleme beziehen sich auf Dateiberechtigungen ODER etwas ist schrecklich falsch mit einem Ihrer Module, so dass es den Cron in der Mitte abstürzt. – Ron

Verwandte Themen