Announcement

Collapse
No announcement yet.

404 after install

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

  • #16
    I'm having the exact same problem and it isn't related to permissions or the extraction process. I used the script shown below after modifying the last line to use www-data:

    Code:
    wget https://www.espocrm.com/downloads/EspoCRM-6.1.8.zip
    7z x EspoCRM*.zip
    cd EspoCRM*
    mv * ../
    mv .* ../
    find . -type d -exec chmod 755 {} + && find . -type f -exec chmod 644 {} +;
    find data custom client/custom -type d -exec chmod 775 {} + && find data custom client/custom -type f -exec chmod 664 {} +;
    chmod 775 application/Espo/Modules client/modules;
    chown -R www-data:www-data .;
    During the install process, I saw a 4xx error on the 'v1' folder in the browser's console window. It disappeared almost immediately, but I am sure I saw it. After installation completes, the following errors are shown in the browser's console window:

    Code:
    Request URL: https://crm.odysseypediatric.com/api/v1/I18n?default=true
    Request Method: GET
    Status Code: 404 Not Found
    Code:
    Request URL: https://crm.odysseypediatric.com/api/v1/Settings
    Request Method: GET
    Status Code: 404 Not Found
    Those files are legitimately not present:
    Code:
    (05:10) ubuntu@odped:/var/www/crm-odysseypediatric-com/api/v1 $ ll
    total 24
    -rw-r--r-- 1 www-data www-data  367 Aug 30 10:44 web.config
    -rw-r--r-- 1 www-data www-data 1541 Aug 30 10:44 index.php
    -rw-r--r-- 1 www-data www-data  408 Aug 30 10:44 .htaccess
    drwxr-sr-x 2 www-data www-data 4096 Aug 30 10:53 portal-access
    drwxr-sr-x 3 www-data www-data 4096 Aug 30 10:53 ..
    drwxr-sr-x 3 www-data www-data 4096 Aug 30 10:53 .
    The follow lines are from /var/log/apache2/

    Code:
    1  [27/Sep/2021:05:06:18 +0000] "GET /api/v1/ HTTP/1.1" 401 234 "https://crm.redacted.com/install/"
    2  [27/Sep/2021:05:06:18 +0000] "POST /install/index.php HTTP/1.1" 200 365 "https://crm.redacted.com/install/"
    3  [27/Sep/2021:05:06:20 +0000] "POST /install/ HTTP/1.1" 200 4391 "https://crm.redacted.com/install/"
    4  [27/Sep/2021:05:06:20 +0000] "GET /client/lib/purify.min.js.map HTTP/1.1" 404 525 "-"
    5  [27/Sep/2021:05:06:24 +0000] "GET /actuator/health HTTP/1.1" 404 5055 "-"
    6  [27/Sep/2021:05:06:40 +0000] "-" 408 323 "-" "-"
    7  ...
    8  [27/Sep/2021:05:07:11 +0000] "GET /client/lib/purify.min.js.map HTTP/1.1" 404 525 "-"
    9  ...
    10 [27/Sep/2021:05:07:19 +0000] "GET /client/lib/purify.min.js.map HTTP/1.1" 404 525 "-"
    11 [27/Sep/2021:05:07:21 +0000] "GET /purify.min.js.map HTTP/1.1" 404 525 "-"
    12 [27/Sep/2021:05:07:21 +0000] "GET /api/v1/Settings HTTP/1.1" 404 525 "https://crm.redacted.com/"
    13 [27/Sep/2021:05:07:21 +0000] "GET /api/v1/I18n?default=true HTTP/1.1" 404 525 "https://crm.redacted.com/
    Last edited by bandtank; 09-27-2021, 05:23 AM.

    Comment


    • #17
      I tried to install 6.0.0 instead of 6.1.9 to see if it would behave differently. The installer complained about not being able to access /api/v1, which the 6.1.9 installer did not do. The brief error I mentioned in my previous comment must have been related.

      I added option 2 from the Apache configuration section here: https://docs.espocrm.com/administrat...configuration/

      It started working after that. The latest installer appears to think it can access /api/v1 when it actually can't. The older installers throw errors to help with the diagnosis of the issue.

      Comment


      • #18
        Yes, that was my second guess. htaccess support. Great that you fixed this!

        Comment


        • #19
          Hi, I have same error 404 on apache/debian

          I followed (many times) instructions:
          https://docs.espocrm.com/administrat...configuration/
          https://docs.espocrm.com/administrat...configuration/


          this is my site config file:
          Code:
          <VirtualHost *:80>
          
          DocumentRoot /var/www/html/espocrm
          ServerName localhost/espocrm
          
          <Directory /var/www/html/espocrm>
          AllowOverride All
          </Directory>
          
          ErrorLog /var/log/apache2/espocrm-error.log
          CustomLog /var/log/apache2/espocrm-access.log combined
          Any suggestion?

          Thank's

          Comment

          Working...
          X