I have a problem fetching mails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dionea
    Junior Member
    • Aug 2016
    • 17

    I have a problem fetching mails

    Hello, I have a problem getting emails.

    In two cases, private emails and group emails
    The system sends emails excellently
    But do not get emails

    I checked CRON and everything works excellently

    I add here Screenshots
    01 Mail Settings group
    02 personal email settings
    03 CRON job of both

    I would be grateful for your help!

    Regards
    Orit
  • michalbialkowski
    Junior Member
    • Aug 2016
    • 9

    #2
    Hi, I've got a similar problem:

    After updating EspoCRM (4.1.5 -> 4.1.6 (with error at first time, next update OK) -> 4.2.2) Espo no longer getting e-mails.

    Account type: group email account
    E-mail account: gMail, access via IMAP and SSL, port 993
    Source folder: another that INBOX

    Connection test: OK

    CRON task works fine - when e-mail account is turned off (log OK).
    When I set it to active - CRON task stops working (no further entries in the log).

    It occurs when the folder contains messages and when is empty.

    Deleting CRON task, group email account and creating it again didn't help.

    Apache log looks fine.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Hi,

      Anything in error log? Not EspoCRM log but apache log.

      What is in Administration > Scheduled Jobs > Check Personal Email Accounts > Log ??
      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

      • michalbialkowski
        Junior Member
        • Aug 2016
        • 9

        #4
        This is what I see in EspoCRM Admin Panel

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 15-05-30.png
Views:	376
Size:	26.5 KB
ID:	23318

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 14-50-22.png
Views:	343
Size:	22.0 KB
ID:	23317

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 15-01-26.png
Views:	296
Size:	39.8 KB
ID:	23316

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          server error log
          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

          • michalbialkowski
            Junior Member
            • Aug 2016
            • 9

            #6
            Last position in /var/log/httpd/error_log:

            [Wed Aug 17 06:22:58 2016] [error] [client ***.***.***.***] File does not exist: /etc/***/favicon.ico, referer: http://***/phpinfo/

            No further entries

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7
              1. Please remove Running Job (that you highlighted)
              2. Run in terminal php cron.php immediately after step 1.

              You will see error message.
              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

              • yuri
                Member
                • Mar 2014
                • 8440

                #8
                Or chache your cron expression in crontab to

                >> /path/to/logfile.txt
                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

                • michalbialkowski
                  Junior Member
                  • Aug 2016
                  • 9

                  #9
                  No error message after executing (via PUTTY)

                  php /path/to/espocrm/cron.php


                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8440

                    #10
                    Do you still have the running job? Maybe your max execution time is too little?


                    Can you disable cron for a while and then repeat the same. There should be an error before that job hangs with Running status. That means that error occurred but could not be catched.
                    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

                    • yuri
                      Member
                      • Mar 2014
                      • 8440

                      #11
                      Since cron runs in command line interface errors not recorded in apache log. But they could be recorded in another log defined in php.ini.
                      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

                      • michalbialkowski
                        Junior Member
                        • Aug 2016
                        • 9

                        #12
                        OK, I've got it.

                        My mistake - Scheluded Job "Check Group e-mail Accounts" status was set to Inactive, that's why error message didn't appeared

                        PHP Fatal error: Can't use function return value in write context in /PATH/TO/CRM/application/Espo/Core/Mail/Importer.php on line 75
                        Last edited by michalbialkowski; 08-17-2016, 02:13 PM.

                        Comment

                        • yuri
                          Member
                          • Mar 2014
                          • 8440

                          #13
                          What version of php?
                          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

                          • michalbialkowski
                            Junior Member
                            • Aug 2016
                            • 9

                            #14
                            PHP Version 5.4.45

                            Comment

                            • yuri
                              Member
                              • Mar 2014
                              • 8440

                              #15
                              BTW we will end supporting of php 5.4 in the next major release.
                              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...