Incoming Email Not Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobertGrover
    Junior Member
    • Jun 2018
    • 8

    Incoming Email Not Working

    Hi, I hate to post this actually, as I see many posts around this topic. However, after reading 11 pages of posts I don't see a clear answer other than there may be an error in the path for the cron job. Looking for some direction. Here is the behavior:

    1. Installed several times to see if that was it, but behavior is the same.
    2. Testing all works fine; IMAP tests OK, sending works fine.
    3. For each of two installations, 1 email was received and then nothing. Very odd. Many test mails. Plenty of mail on the server. Each iteration retrieved one email then stopped.
    4. Using a shared hosting service on Bluehost.
    5. Nothing is showing up in error logs.

    Any suggestions?

    I appreciate any suggestions. Have been beating on it for two days!


  • RobertGrover
    Junior Member
    • Jun 2018
    • 8

    #2
    A bit more information. The following is the cron.php file contents
    ========================

    $sapiName = php_sapi_name();

    if (substr($sapiName, 0, 3) != 'cli') {
    die("Cron can be run only via CLI");
    }

    include "bootstrap.php";

    $app = new \Espo\Core\Application();
    $app->runCron();
    ========================

    This is the actual Bluehost directory path down to “Core”

    public_html/arbotics/Espo/application/Espo/Core

    Comment

    • RobertGrover
      Junior Member
      • Jun 2018
      • 8

      #3
      Espo Error log
      Attached Files

      Comment

      • RobertGrover
        Junior Member
        • Jun 2018
        • 8

        #4
        server error log
        Attached Files

        Comment

        • RobertGrover
          Junior Member
          • Jun 2018
          • 8

          #5
          Cronjob added to Cpanel

          Comment

          • RobertGrover
            Junior Member
            • Jun 2018
            • 8

            #6
            TECH SUPPORT FROM BLUEHOST RESPONSE - NOT MUCH HELP
            cases@support.bluehost.com via kr8751ot7fmow9.36-qew6eam.na30.bnc.salesforce.com
            3:06 PM (14 minutes ago)

            to me
            Hello,

            Thank you for that information. We were able to see the cron setup but did notice the cron may not be running. The time increment is set to a minute which could be causing an issue but we ultimately would suggest talking to a developer about the cron job and see if they have any suggestions on how to get it to work. Most cron job issues are do to the actual cron job itself. The server is able to run cron jobs but this one maybe missing an element that is causing it to only run once and then never run again. We apologize for on inconvenience this may cause.


            If you have any further questions please feel free to chat in or you can call support at (888) 401-4678.

            Thank You,

            Alex

            Tech Tier 2

            Comment

            • yuri
              Member
              • Mar 2014
              • 8442

              #7
              Hi,

              Administration > Scheduled Jobs > menu in the top-right corner > Jobs.

              Check whether there are succeed jobs.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • RobertGrover
                Junior Member
                • Jun 2018
                • 8

                #8
                See attached pictures of my configuration. Jobs are scheduled and running, but the personal email fails.
                Attached Files

                Comment

                • yuri
                  Member
                  • Mar 2014
                  • 8442

                  #9
                  Usually such issues produce errors in EspoCRM log.

                  You can try the following:

                  1. Disable cron.
                  2. Run cron manually in command line interface: php cron.php (need to wait 1 minutes between consequent runs).
                  3. See what is printed in the console.
                  If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                  Comment

                  • RobertGrover
                    Junior Member
                    • Jun 2018
                    • 8

                    #10
                    Is there something else I can try, that is going to require a lot of time for me to set up shell access and familiarize myself with CLI again. Can you tell me why I've set the personal email check to happen every minute and it is running every hour and a half? The group check is running like clockwork. See updated attachments. If there is some way for me to check or edit a file through cpanel that would be much faster on this end. Thanks.
                    Attached Files
                    Last edited by RobertGrover; 06-15-2018, 04:08 PM.

                    Comment

                    • yuri
                      Member
                      • Mar 2014
                      • 8442

                      #11
                      It could be that php script fails and cron doesn't handle it and waits until a timeout, treating the job as running. You also can try to configure in your cpanel to send cron errors to the specific email address.
                      Last edited by yuri; 06-15-2018, 05:12 PM.
                      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                      Comment

                      Working...