Cronjob BPM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zdrojak
    Junior Member
    • Nov 2017
    • 28

    Cronjob BPM

    Hi, from around one month ago BPM stopped working and all processes are as "Started" and don't changed to "Ended". CronJob in Scheduled Jobs are execute in "Process Pending Flows" ( I can see there execute in every minute ).
    In Data/Logs I have below errors:
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5ae9867819767cd5d. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5ae986781bba94887. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5af1b934320969561. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5af1b934343af6af4. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5af4a7c63ed59bd27. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5af4a7c6415dafdf7. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5af4a7da8792c0841. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5afee039ccbf38cab. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0ede60eb5e667da. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0ede60ed79168c7. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0edf2a30e48ff7e. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0edf2a332f6bd04. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0edff814611ec05. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b0edff81683637ce. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b1120ec252d2fa27. [] []
    [2018-07-30 18:28:08] Espo.ERROR: Can't get locked Flow Node 5b235724a824c48e7. [] []
    Earlier, BPM worked perfectly.

    Can you please help me fix it ?

    Best Regards,
    ​​​​​​​Bartek
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    what is your current version of EspoCrm and Advanced Pack?

    Comment

    • zdrojak
      Junior Member
      • Nov 2017
      • 28

      #3
      HI Tanya,
      My Version EspoCRM is 5.2.2
      Advanced Pack is 1.28.0

      Best Regards.
      Bartek

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        could you upgrade EspoCRM and Advanced Pack?

        Comment

        • zdrojak
          Junior Member
          • Nov 2017
          • 28

          #5
          Yes, I was updated EspoCRM to 5.2.4 and Advanced Pack to 1.32.10 and then stopped working also Process Pending Flows in Scheduled Jobs (empty Log).
          Other actions working fine but only Process Pending Flows stoped working.

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            why not to 5.3.5 (the latest version)?

            Comment

            • zdrojak
              Junior Member
              • Nov 2017
              • 28

              #7
              I've made update my testing environment to 5.3.5 and also Advanced Pack to 1.32.9 and now in scheduled job "Process Pending Flows" not working. Log is empty.

              Comment

              • tanya
                Senior Member
                • Jun 2014
                • 4308

                #8
                Could you share your flowchart? And check for other records in log?

                Comment

                • zdrojak
                  Junior Member
                  • Nov 2017
                  • 28

                  #9
                  I've sent you video how it looks.


                  of course status for process is still "Started"
                  Last edited by zdrojak; 07-30-2018, 10:09 PM.

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8440

                    #10
                    Hi,

                    Try changing the line in the file application/Espo/Modules/Advanced/Core/Bpmn/BpmnManager.php:

                    PHP Code:
                    protected function checkFlowIsActual(Entity $target, BpmnFlowNode $flowNode, BpmnProcess $process) 
                    
                    to

                    PHP Code:
                    protected function checkFlowIsActual($target, $flowNode, $process) 
                    

                    Please let me know if it worked out. Thanks.
                    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

                    • zdrojak
                      Junior Member
                      • Nov 2017
                      • 28

                      #11
                      Hi,
                      I've changed it and still doesn't work. In Processes statuses still are as "Started". In data/log still I can see:
                      [2018-07-31 06:14:02] Espo.ERROR: Can't get locked Flow Node 5b0edf2a332f6bd04. [] []
                      [2018-07-31 06:14:02] Espo.ERROR: Can't get locked Flow Node 5b0edff814611ec05. [] []
                      [2018-07-31 06:14:02] Espo.ERROR: Can't get locked Flow Node 5b0edff81683637ce. [] []
                      [2018-07-31 06:14:02] Espo.ERROR: Can't get locked Flow Node 5b1120ec252d2fa27. [] []
                      [2018-07-31 06:14:02] Espo.ERROR: Can't get locked Flow Node 5b235724a824c48e7. [] []

                      ESPO version 5.2.2
                      AdvancedPack 1.28.0
                      Last edited by zdrojak; 07-31-2018, 06:30 AM.

                      Comment

                      • yuri
                        Member
                        • Mar 2014
                        • 8440

                        #12
                        Hi,

                        Are there still '..null given..' errors (seen in the video)?

                        Did you try starting a new process?
                        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

                        • zdrojak
                          Junior Member
                          • Nov 2017
                          • 28

                          #13
                          Video is after updated to newset version 5.3.5 but there "Process Pending Flows" definitly has been stopped. I would like fix it on the 5.2.2 because there "Process Pending Flows" still working, because I can see new logs in every minute.
                          Yes, I created new lead and then sytem created new task in the procesesses.

                          Yuri can I create cloned machine (testing enviroment) and I will give you access to CRM and SFTP ? And you look into what's going on ?

                          BR
                          Bartek

                          Comment

                          • yuri
                            Member
                            • Mar 2014
                            • 8440

                            #14
                            Yes. Could please create a case in the customer portal.
                            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

                              #15
                              Can you also try to set espocrm logger to DEBUG level: https://github.com/espocrm/documenta...ing-debug-mode

                              Maybe some additional useful information will be logged.
                              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...