Announcement

Collapse
No announcement yet.

Installation Error: Bad server response

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

  • Installation Error: Bad server response

    Hi,

    i try to install EspoCRM (6.1.7) on a Debian Server and get after the installation a blank Site with the Error:
    Bad server response


    Click image for larger version

Name:	Bildschirmfoto 2021-06-22 um 23.27.29.png
Views:	1004
Size:	23.4 KB
ID:	71936



    PHP Log shows this

    Code:
    PHP Fatal error: Uncaught Espo\Core\Exceptions\Error: Permission denied: unable to create a folder on the server - data/cache/application in /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php:660 Stack trace: #0 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php(250): Espo\Core\Utils\File\Manager->checkCreateFile() #1 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php(351): Espo\Core\Utils\File\Manager->putContents() #2 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/DataCache.php(98): Espo\Core\Utils\File\Manager->putPhpContents() #3 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/Module.php(111): Espo\Core\Utils\DataCache->store() #4 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/Module.php(82): Espo\Core\Utils\Module->init() #5 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/Module.php(137): Espo\Core\Utils\Module->get() #6 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Binding/EspoBindingLoader.php(42): Espo\Core\Utils\Module->getOrderedList() #7 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/ContainerBuilder.php(159): Espo\Core\Binding\EspoBindingLoader->__construct() #8 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Application.php(65): Espo\Core\ContainerBuilder->build() #9 /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Application.php(58): Espo\Core\Application->initContainer() #10 /home/cloudpanel/htdocs/DOMAIN/index.php(38): Espo\Core\Application->__construct() #11 {main} thrown in /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php on line 660

    Code:
    PHP Warning: mkdir(): No such file or directory in /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php on line 534
    Code:
    PHP Warning: mkdir(): Permission denied in /home/cloudpanel/htdocs/DOMAIN/application/Espo/Core/Utils/File/Manager.php on line 534

    i tried it with different permissions like root user for the folders and files.


    thanks in advance

  • #2
    Hello!

    It seems like you have incorrect permissions. More details are here:
    https://docs.espocrm.com/administrat...n/#permissions
    Last edited by Vadym; 06-24-2021, 01:37 PM.

    Comment


    • #3
      I have tried with:
      - root
      - cpl
      - cpl-admin
      user, but it always comes back with the same error message.

      Comment


      • #4
        Hello,

        Try with "www-data".

        Comment


        • #5
          hi DEN,


          unfortunately it did not work with the user either

          Comment


          • #6
            Hi Jass,

            Tell me please which server do you use (Apache or Nginx)?

            Comment


            • #7
              Thanks, you helped me to find the error.
              It was due to the Nginx configuration

              Comment


              • #8
                jass

                Please share the vhost and nginx configuration file

                I am trying to install epocrm on cloudpanel

                Error after installation "Bad server response"

                Comment


                • #9
                  here is the vhost Config for cloudpanel:

                  HTML Code:
                  server {
                  listen 80;
                  listen [::]:80;
                  listen 443 ssl http2;
                  listen [::]:443 ssl http2;
                  {{ssl_certificate_key}}
                  {{ssl_certificate}}
                  server_name domain.com;
                  #{{root}}
                  
                  charset utf-8;
                  index index.html index.php;
                  
                  client_max_body_size 50M;
                  
                  keepalive_timeout 300;
                  types_hash_max_size 2048;
                  
                  server_tokens off;
                  fastcgi_send_timeout 300;
                  fastcgi_read_timeout 300;
                  
                  gzip on;
                  gzip_types text/plain text/css text/javascript application/javascript application/json;
                  gzip_min_length 1000;
                  gzip_comp_level 9;
                  
                  root /home/espo/htdocs/public; # path to public dir
                  
                  location /client {
                  root /home/espo/htdocs; # path to espocrm root dir
                  autoindex off;
                  
                  location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|tpl)$ {
                  access_log off;
                  expires max;
                  }
                  }
                  
                  
                  location = /favicon.ico { access_log off; log_not_found off; }
                  location = /robots.txt { access_log off; log_not_found off; }
                  
                  location ~ \.php$ {
                  include fastcgi_params;
                  fastcgi_intercept_errors on;
                  fastcgi_index index.php;
                  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                  try_files $uri =404;
                  fastcgi_read_timeout 3600;
                  fastcgi_send_timeout 3600;
                  fastcgi_param HTTPS $fastcgi_https;
                  fastcgi_pass 127.0.0.1:{{php_fpm_port}};
                  fastcgi_param PHP_VALUE "{{php_settings}}";
                  }
                  
                  location /api/v1/ {
                  if (!-e $request_filename){
                  rewrite ^/api/v1/(.*)$ /api/v1/index.php last; break;
                  }
                  }
                  
                  location /portal/ {
                  try_files $uri $uri/ /portal/index.php?$query_string;
                  }
                  
                  location /api/v1/portal-access {
                  if (!-e $request_filename){
                  rewrite ^/api/v1/(.*)$ /api/v1/portal-access/index.php last; break;
                  }
                  }
                  
                  location ~ /(\.htaccess|\web.config|\.git) {
                  deny all;
                  }
                  
                  location ~ /.well-known {
                  auth_basic off;
                  allow all;
                  root /home/espo/htdocs/public;
                  try_files $uri $uri/ =404;
                  }
                  
                  if (-f $request_filename) {
                  break;
                  }
                  }​

                  Comment


                  • #10
                    rmf and Jazz were you able to resolve the Bad Server error? I am encountering the same error and it is also looking for the file /client/lib/original/espo-main.js

                    Comment

                    Working...
                    X