Announcement

Collapse
No announcement yet.

404 after install

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

  • 404 after install

    Hello, i make a clean Ubuntu 20.04 server machine.
    Standard install is php7.4, Apache, MariaDB + php mods for espoCRM.
    Installer don't show any missing modules.


    Code:
    /api/v1/Settings:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    /api/v1/I18n?default=true:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    DevTools failed to load source map: Could not load content for http://192.168.20.152/purify.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    First run:
    missing /api/1/Settings 404 in Network tab
    missing api/v1/I18n?default=true in Network tab



    What could I have done wrong?




  • #2
    Hello,
    did you set correct permissions and ownership?

    Comment


    • #3
      Yes, i have www-data:www-data for all files in html/*
      After install /api/v1/Settings don't exists, api/v1/I18n?default=true too.
      I dont know why EspoCRM don't create this files.

      Comment


      • #4
        Errors in apache logs:
        Code:
        192.168.20.170 - - [23/Aug/2021:12:23:35 +0000] "GET /api/v1/I18n?default=true HTTP/1.1" 404 492 "http://192.168.20.152/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
        192.168.20.170 - - [23/Aug/2021:12:23:35 +0000] "GET /api/v1/Settings HTTP/1.1" 404 492 "http://192.168.20.152/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
        192.168.20.170 - - [23/Aug/2021:12:23:35 +0000] "GET /purify.min.js.map HTTP/1.1" 404 492 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"

        Comment


        • #5
          I have similar situation many times. I create this script: https://gist.github.com/emillod/a640...ce26d44d0fad69

          Comment


          • #6
            You can get access to api folder from browser?

            Comment


            • #7
              Originally posted by emillod View Post
              I have similar situation many times. I create this script: https://gist.github.com/emillod/a640...ce26d44d0fad69
              Problem is not resolved...
              Code:
              
              

              Comment


              • #8
                Originally posted by emillod View Post
                You can get access to api folder from browser?
                ? Postman or other RestAPI testing tool?
                EspoCRM refuse connections on /api/ in browser.

                Comment


                • #9
                  Originally posted by emillod View Post
                  You can get access to api folder from browser?
                  If i call
                  Code:
                  http://192.168.20.152/api/v1/
                  in webbrowser EspoCRM want username and password, its correct?

                  Comment


                  • #10
                    Seems to be a problem with the installer.

                    I can't see the files that should be loaded.
                    Installing them does not create them despite having full rights to build them.

                    Comment


                    • #11
                      Yeah, i meant /api/v1/ and credentials dialog is propper response if you're not logged in.
                      I'm pretty sure that EspoCRM installer in version 6.1.8 is okay, because i use it

                      Comment


                      • #12
                        Did you checked path in config? Also do you have properly configured apache/htaccess?

                        Comment


                        • #13
                          We have "installation and upgrade" section for such issues.

                          Comment


                          • #14
                            Solved. mv don't copy hidden files, .htaccess is not copied...
                            Damn, sorry for this. Thx

                            Comment


                            • #15
                              No problem. Have a great day

                              Comment

                              Working...
                              X