Issue with Manual Upgrade of EspoCRM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • astieche
    Junior Member
    • Sep 2024
    • 10

    Issue with Manual Upgrade of EspoCRM


    While attempting to upgrade EspoCRM manually, I encountered an issue. The system prompts me to upgrade it via CLI. However, when I try to perform the upgrade through the CLI, it is showing " Downloading but it's not upgrading at all, it doesn’t proceed as expected.

    Could you please guide me on resolving this issue? Let me know if you need any additional details or logs to assist in troubleshooting.
  • astieche
    Junior Member
    • Sep 2024
    • 10

    #2

    Comment

    • yuri
      Member
      • Mar 2014
      • 8475

      #3
      Anything in Espo logs? In the data/logs directory.
      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

      • astieche
        Junior Member
        • Sep 2024
        • 10

        #4
        PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6757024 bytes) in /home/adminbhai/public_html/crm.ytbhai.com/application/Espo/Core/Console/Commands/Upgrade.php on line 294

        Comment

        • yuri
          Member
          • Mar 2014
          • 8475

          #5
          You need to increase the memory limit for PHP CLI.
          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

          • astieche
            Junior Member
            • Sep 2024
            • 10

            #6
            after increasing also its showing the same.

            Comment

            • astieche
              Junior Member
              • Sep 2024
              • 10

              #7
              you can also see allowed memory size is already more than trying to allocate​

              Comment

              • yuri
                Member
                • Mar 2014
                • 8475

                #8
                Originally posted by astieche
                you can also see allowed memory size is already more than trying to allocate​
                This is normal as it does not show what it allocated before.
                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

                • astieche
                  Junior Member
                  • Sep 2024
                  • 10

                  #9
                  Okay so what I have to do?

                  Comment

                  • rabii
                    Active Community Member
                    • Jun 2016
                    • 1250

                    #10
                    You can try to provide the memory limit on the process of upgrading something as below would work, i have used this many times for different clients

                    PHP Code:
                    php -d memory_limit=524M command.php upgrade 
                    
                    Rabii
                    Web Dev

                    Comment

                    • yuri
                      Member
                      • Mar 2014
                      • 8475

                      #11
                      I recommend to increase the value. If it can't handle upgrade it might not handle something else in the future.

                      32M you have set is way to little. Set it to 512M. Your current value does not satisfy our minimum requirement.

                      Last edited by yuri; 12-05-2024, 04:32 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

                      • astieche
                        Junior Member
                        • Sep 2024
                        • 10

                        #12

                        Comment

                        • astieche
                          Junior Member
                          • Sep 2024
                          • 10

                          #13
                          Can you please tell Rabii​ how I can fix it.

                          Comment

                          • yuri
                            Member
                            • Mar 2014
                            • 8475

                            #14
                            Upgrade spawns sub-processes. Memory limit set through a command line parameter won't work for sub-processes.
                            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
                              • 8475

                              #15
                              You can also add -s parameter. This will enforce using a single process making the memory limit parameter applied via a command parameter to work. But it's not a recommended to do as not all upgrades can be handled in a single process.



                              I highly recommend to increase memory limit to 256M or 512M for CLI.
                              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...