Cron Jobs Errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kimzhou
    Junior Member
    • Feb 2025
    • 3

    #1

    Cron Jobs Errors

    I encountered a strange problem

    I set up email forwarding and it was successful. Then I opened the Cron Jobs. I hope to receive notification emails about assigned customers and registered accounts.

    I am using: EspoCRM-upgrade-8.4.2-to-9.0.4
    Server: hostinger

    I have set up Cron Jobs on hostingers
    Click image for larger version

Name:	WX20250221-100439@2x.png
Views:	91
Size:	64.7 KB
ID:	115347

    Click "view output" and the message "Could not open input file: cron.php" appears.

    I made sure I set the file permissions to 755 or 777.

    The current situation is: I can receive the email notification information of creating customers normally
    But I can't receive the email notification information of assigning customers.

    When I run /opt/alt/php83/usr/bin/php -f /home/u690910408/domains/****.cn/public_html/cron.php, I will receive the email notification information of assigning customers once, but I will not receive it again after that.​
    Attached Files
  • lazovic
    Super Moderator
    • Jan 2022
    • 1004

    #2
    Hi kimzhou,

    Please try to use the following command to run in Cron Job on Hostinger:
    Code:
    /opt/alt/php83/usr/bin/php -f /home/u690910408/domains/****.cn/public_html/cron.php > /dev/null 2>&1
    Or this one:
    Code:
    /opt/alt/php83/usr/bin/php -f /home/u690910408/domains/****.cn/public_html/cron.php > /dev/null 2>&1

    Comment

    • Steve2000
      Junior Member
      • May 2025
      • 6

      #3
      I've tried everything I can, but unfortunately, I'll need to move on to a different CRM as time is moving on. I've successfully configured many cron jobs in Hostinger without issues — this is the only one that's consistently been a problem.

      Comment

      • lazovic
        Super Moderator
        • Jan 2022
        • 1004

        #4
        Steve2000,

        You can also try to set up cron via daemon: https://docs.espocrm.com/administration/jobs/#daemon.

        Comment

        Working...