Error 503 when Trying to update from 4.8.4 to 5.0.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ivanvison
    Junior Member
    • Nov 2014
    • 15

    Error 503 when Trying to update from 4.8.4 to 5.0.1

    Sorry if I'm posting under the wrong board.

    As per the title, getting ERROR 503 whe trying to update from 4.8.4 to 5.0.1.

    Downloaded the zip file several times. Cleared cache. Still getting same message.

    Opened the Chrome Console, saw the following error: "Failed to load resource: the server responded with a status of 503 (Service Unavailable)" pointing to the following folder: http://......net/crm/api/v1/Admin/ac...UpgradePackage

    Full path leads to: .net/crm/api/v1/Admin/action/uploadUpgradePackage

    Any clues? Please note that I've previously upgraded successfully up until now. (I come from version 4.7.2.

    Thank you.
    Last edited by ivanvison; 12-29-2017, 08:35 PM.
  • ivanvison
    Junior Member
    • Nov 2014
    • 15

    #2

    Comment

    • guschaves
      Junior Member
      • Apr 2017
      • 13

      #3
      Same problem with me

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        Please check 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

        • guschaves
          Junior Member
          • Apr 2017
          • 13

          #5
          I did, but I hadn't found the error that cause the problem

          Comment

          • ivanvison
            Junior Member
            • Nov 2014
            • 15

            #6
            Originally posted by yurikuzn
            Please check server error log.
            [2017-12-29 20:20:06] Espo.ERROR: API [GET]:/:controller/action/:action, Params:Array ( [controller] => Admin [action] => uploadUpgradePackage ) , InputData: - Action 'uploadUpgradePackage' (GET) does not exist in controller 'Admin' [] []
            [2017-12-29 20:20:06] Espo.ERROR: Display Error: Action 'uploadUpgradePackage' (GET) does not exist in controller 'Admin', Code: 404 URL: /crm/api/v1/Admin/action/uploadUpgradePackage [] []
            [2017-12-29 20:20:27] Espo.ERROR: API [GET]:/:controller/action/:action, Params:Array ( [controller] => Admin [action] => uploadUpgradePackage ) , InputData: - Action 'uploadUpgradePackage' (GET) does not exist in controller 'Admin' [] []
            [2017-12-29 20:20:27] Espo.ERROR: Display Error: Action 'uploadUpgradePackage' (GET) does not exist in controller 'Admin', Code: 404 URL: /crm/api/v1/Admin/action/uploadUpgradePackage [] []

            Please note that I upgraded from an earlier version to 4.8.4. At this point the system is working correctly, just missing this last update.

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7

              What server do you use? Hosting or own server?
              Last edited by yuri; 01-04-2018, 07:37 AM.
              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
                I can see mismatch: POST request was sent by browser and then it tries to handle it as GET request on serverside. Have never seen such an issue before.
                Last edited by yuri; 01-04-2018, 07:53 AM.
                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

                  #9
                  As a last resort you can upgrade via CLI https://github.com/espocrm/documenta...pgrade-via-cli
                  But anyway it's interesting to find out what the cause of the issue
                  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

                  • ivanvison
                    Junior Member
                    • Nov 2014
                    • 15

                    #10
                    Originally posted by yurikuzn
                    What server do you use? Hosting or own server?
                    Im using Shared Hosting. NameCheap to be exact. I have two different Espo instances installed in my server (the second one I just installed it today and is working perfectly).

                    Will see if I can connect and make it happen via CLI

                    Comment

                    • ivanvison
                      Junior Member
                      • Nov 2014
                      • 15

                      #11
                      I tried via CLI.

                      ---
                      [************ crm]$ php upgrade.php espoupdate.zip
                      Current version is 4.8.4
                      Start upgrade process...
                      Upgrade is complete. New version is 5.0.1.
                      ---

                      When I try to go to the CRM now I get an Internal Server Error 500.

                      Now, this is weird.

                      Comment

                      • yuri
                        Member
                        • Mar 2014
                        • 8440

                        #12
                        Check error logs. Maybe an issue with permissions or so.
                        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

                        • ivanvison
                          Junior Member
                          • Nov 2014
                          • 15

                          #13
                          Originally posted by yurikuzn
                          Check error logs. Maybe an issue with permissions or so.
                          It is. I see now that all PHP files related to the CRM are in 0664 permissions. Looking for a way to mass update those php files...

                          Comment

                          • ivanvison
                            Junior Member
                            • Nov 2014
                            • 15

                            #14
                            Changing permissions in the Index.php, api/v1/index.php and api/v1/portal-access/index.php files did the job.... Just got a new alter that cron jobs is not working (but it was this morning)... Going after that right now.

                            Comment

                            • tarasm
                              Super Moderator
                              • Mar 2014
                              • 573

                              #15
                              ivanvison could you check what is the value of "post_max_size" in your php.ini.
                              Job Offers and Requests

                              Comment

                              Working...