Announcement

Collapse
No announcement yet.

error 500 when update 4.5.1 -> 4.6.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • error 500 when update 4.5.1 -> 4.6.0

    I had update from 4.5.0 to 4.5.1 successful.
    After this i try to update from 4.5.1 to 5.6.0, but have error message: permission denied install\core, vendor.

    What i did wrong?

  • #2
    Hello
    Check if this folders are writable for apache user. If not - change permissions

    Comment


    • #3
      i set nginx owner for my www forder. Upgrade complited and CRM cant load.
      1. Request URL:
        https://bascrm.tk/api/v1/
      2. Request Method:
        GET
      3. Status Code:
        403 Forbidden

      Comment


      • #4
        it is look like user not autentificated. After delete cookie i can use login form, success login still have 403 for api/v1/ request
        Last edited by MaTT; 07-03-2017, 06:37 AM.

        Comment


        • #5
          i have same problem with clear install of 4.7.1
          Setting 777 for all files and dir did not solve this problem

          Comment


          • #6
            problem located in IF instructions in NGINX conf

            location /api/v1/ {
            if (!-e $request_filename) {
            rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
            }

            Comment


            • #7
              Hello
              did you fix the problem?

              This post may not be actual at this moment. Please follow to the article in the documentation. These instructions are supplementary to the Server Configuration guideline. Please note that all configuration settings listed here are made on Ubuntu server.

              In this guide, we will show how to configure a virtual host on Nginx for EspoCRM on Ubuntu server. Create a server block file To create this file, open a terminal and run the command: Now, open this file (/etc/nginx/sites-available/espocrm.

              Comment


              • #8
                "if" statement made 403 error

                location /api/v1/ {
                if (!-e $request_filename){
                rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
                }
                }

                Without this load ok
                location /api/v1/ {
                rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
                }

                This problem starts from 4.6.0
                Last edited by MaTT; 07-04-2017, 07:40 AM.

                Comment


                • #9
                  Did you make any nginx configuration changes when update 4.5.1 -> 4.6.0?
                  Job Offers and Requests

                  Comment


                  • #10
                    no one changes made.
                    Whaen i move back 4.5.1 - it is working good. But after upgrade to 4.6.0 or clear install 4.7.1 i have 403 err

                    Comment


                    • #11
                      Please try to check and correct rewrite rules in Nginx server https://www.espocrm.com/documentatio...configuration/.
                      Also, please set permissions as described here https://www.espocrm.com/documentatio...configuration/, because some hosting providers can block 777 permission.
                      Job Offers and Requests

                      Comment


                      • #12
                        755 for folders, 644 for files.
                        Owner of files and folders in nginx.

                        Everything work ok, if i replace form nginx config for my domain rule
                        location /api/v1/ { if (!-e $request_filename){ rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break; } } on rule
                        location /api/v1/ { rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break; } it is strange rewrite problem, it comes with 4.6.0+ versions

                        Comment


                        • #13
                          It is strange, because there is no changes for routing were made. Is everything works fine after your nginx changes? If so, please provide your configuration changes to be able to understand the problem.
                          Job Offers and Requests

                          Comment


                          • #14
                            everything work fine

                            i made only one change in NGINX conf: delete IF statement for -e check

                            it was:
                            Code:
                            location /api/v1/ {
                               if (!-e $request_filename){
                                  rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
                               }
                            }
                            it's now:
                            Code:
                            location /api/v1/ {
                               rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
                            }
                            Last edited by MaTT; 07-04-2017, 07:39 AM.

                            Comment

                            Working...
                            X