OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Cron error

This topic contains 3 replies, has 2 voices, and was last updated by  Mauro Chojrin 2 weeks, 6 days ago.

  • Creator
    Topic
  • #40285

    Mauro Chojrin
    Participant

    Hi:

    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…)

    Thanks

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

    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

    #40297

    Mauro Chojrin
    Participant

    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…

    Thanks

    #40336

    Mauro Chojrin
    Participant

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

    Thanks

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

You must be logged in to reply to this topic.

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

Yes No