OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Cron error

This topic contains 3 replies, has 2 voices, and was last updated by  Mauro Chojrin 11 months, 1 week ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #40285

    Mauro Chojrin


    I’ve been getting an error report from the oro:cron (php /usr/share/nginx/html/oroapp/console oro:cron –env=prod > /dev/null):

    This hadn’t happen before (Started a few days ago).

    I haven’t done any server update (Not to the code nor any other asset).

    The version I’m currently running is 3.1.4 (I’m a little behind on my updates…)


Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #40290
    Andrey Yatsenko
    Andrey Yatsenko

    The error occurs when an application can’t connect to the database.

    “An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused” usually means you have wrong credentials configured.

    Please double-check the credentials “config/parameters.yml” file on a server where the cron command is running and make sure all the caches are warmed up. I recommend forcing warmup the cache by explicit deleting old records with “rm -rf var/cache/*” command


    Mauro Chojrin

    Hi Andrey:

    Thanks for your reply! I deleted the cache, restarted mysql and php-fpm but the problem seemed to still be there.

    I checked the overall resource consumption and it looked unusually high (Specially memory wise).

    I started noticing errors in the log and alerts about lack of memory…

    What seems to have corrected it all was re-starting the supervisord.

    I’ll keep an eye on it for a while just in case…



    Mauro Chojrin

    I’m not entirely sure what triggered this error, but it seems to be working ok now so I’ll close this issue.


Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No