404 after install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grzegrze
    Junior Member
    • May 2020
    • 11

    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?



  • emillod
    Active Community Member
    • Apr 2017
    • 1439

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

    Comment

    • grzegrze
      Junior Member
      • May 2020
      • 11

      #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

      • grzegrze
        Junior Member
        • May 2020
        • 11

        #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

        • emillod
          Active Community Member
          • Apr 2017
          • 1439

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

          Comment

          • emillod
            Active Community Member
            • Apr 2017
            • 1439

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

            Comment

            • grzegrze
              Junior Member
              • May 2020
              • 11

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

              Comment

              • grzegrze
                Junior Member
                • May 2020
                • 11

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

                Comment

                • grzegrze
                  Junior Member
                  • May 2020
                  • 11

                  #9
                  Originally posted by emillod
                  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

                  • grzegrze
                    Junior Member
                    • May 2020
                    • 11

                    #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

                    • emillod
                      Active Community Member
                      • Apr 2017
                      • 1439

                      #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

                      • emillod
                        Active Community Member
                        • Apr 2017
                        • 1439

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

                        Comment

                        • yuri
                          Member
                          • Mar 2014
                          • 8624

                          #13
                          We have "installation and upgrade" section for such issues.
                          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

                          • grzegrze
                            Junior Member
                            • May 2020
                            • 11

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

                            Comment

                            • emillod
                              Active Community Member
                              • Apr 2017
                              • 1439

                              #15
                              No problem. Have a great day

                              Comment

                              Working...