Announcement

Collapse
No announcement yet.

new install / Bad server response / Version 7.1.7

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

  • new install / Bad server response / Version 7.1.7

    hi
    when I try to change the settings I have Bad server response
    in which logs can I see the error?
    thk

  • #2
    Hi rucrm,

    You can find error logs in [your_instance_folder]/data/logs.

    Comment


    • #3
      Permission?

      [2022-06-02 08:23:17] WARNING: E_WARNING: mkdir(): File exists {"code":2,"message":"mkdir(): File exists","file":"/home/dir/public_html/domain/application/Espo/Core/Utils/File/Manager.php","line":554} []
      [2022-06-02 08:23:17] ERROR: (0) No database name specified.; GET /Activities/action/listUpcoming; line: 152, file: /home/dir/public_html/domain/application/Espo/Core/ORM/EntityManagerFactory.php [] []
      [2022-06-02 08:23:17] ERROR: Could not write file `/home/dir/public_html/domain/data/logs/espo-2022-06-02.log`. Error message: Permission denied: unable to create a folder on the server /home/dir/public_html/domain/data/logs [] []
      [2022-06-02 08:23:19] ERROR: (0) No database name specified.; GET /Notification/action/notReadCount; line: 152, file: /home/dir/public_html/domain/application/Espo/Core/ORM/EntityManagerFactory.php [] []
      [2022-06-02 08:24:02] ERROR: Uncaught Exception RuntimeException: "No database name specified." at /home/dir/public_html/domain/application/Espo/Core/ORM/EntityManagerFactory.php line 152 {"exception":"[object] (RuntimeException(code: 0): No database name specified. at /home/dir/public_html/domain/application/Espo/Core/ORM/EntityManagerFactory.php:152)"} []
      [2022-06-02 08:31:44] ERROR: Email sending error: Could not read from smtp.mail.ru [] []
      [2022-06-02 08:31:44] WARNING: Email sending:Email sending error.; 500 [] []

      Comment


      • #4
        Hi rucrm,

        Perhaps this thread will be helpful:

        Comment


        • #5
          app full install and work (50/50), but not change settings

          Comment


          • #6
            Hi, for me it seems (from your logs), that this whole instalation, including the database, did not process correctly. There is a mix of errors, that indicate that.
            Before you try to find the problems and correct them one by one I would suggest to do a complete new installation with a new database.
            During install observe thoroughly, if all the prerequsites are met. There will be a step, where problems will be pointed out, take these serious.

            Comment


            • #7
              )
              Delete and create new base
              reinstall

              new log

              text/plain espo-2022-06-02.log ( ASCII text, with very long lines )

              [2022-06-02 09:42:15] ERROR: (0) No database name specified.; GET /Activities/action/popupNotifications; line: 152, file: /home/dir/public_html/crm/application/Espo/Core/ORM/EntityManagerFactory.php [] []
              [2022-06-02 09:42:17] ERROR: (0) No database name specified.; GET /Notification/action/notReadCount; line: 152, file: /home/dir/public_html/crm/application/Espo/Core/ORM/EntityManagerFactory.php [] []
              [2022-06-02 09:43:02] ERROR: Uncaught Exception RuntimeException: "No database name specified." at /home/dir/public_html/crm/application/Espo/Core/ORM/EntityManagerFactory.php line 152 {"exception":"[object] (RuntimeException(code: 0): No database name specified. at /home/dir/public_html/crm/application/Espo/Core/ORM/EntityManagerFactory.php:152)"} []

              Comment


              • #8
                rucrm,

                Go to [your_instance_folder]/data/config-internal.php and see if the name of the database is there and if it is correct at all.

                'database' => [
                'dbname' => '
                your-database-name'
                ]

                Comment


                • #9
                  You know, that you have to create the database beforehand installation?

                  Comment


                  • #10
                    Click image for larger version

Name:	wcfsdfsdf.png
Views:	277
Size:	29.0 KB
ID:	80929crm install without error. it's ful log file
                    Last edited by rucrm; 06-03-2022, 09:19 AM.

                    Comment


                    • #11
                      It is recommended to use the minimum system requirements, that includes PHP resource settings as well.

                      Comment


                      • shalmaxb
                        shalmaxb commented
                        Editing a comment
                        that is right, but it should work even with these errors firstly. In later production it would be necessary to increase the values.

                    • #12
                      Could you have a look into these two files (or even post it here): (as lazovic already mentioned) /data/config-internal.php and /data/config.php

                      Do you have any restrictions in your hosting? The error log tells, that there is no database specified, what from the display from espoCRM obviously is not true, as there is a database.
                      Is the database server actually localhost (there might be cases, where you database server is not local, but remote. Depends on the server configuration).

                      Comment


                      • #13
                        resolved )

                        <ifModule mod_headers.c>
                        Header always set Access-Control-Allow-Methods "POST, GET, PUT, PATCH, DELETE"
                        </ifModule>

                        at the bottom

                        <Limit GET POST PUT DELETE HEAD OPTIONS PATCH>
                        Order allow,deny
                        Allow from all
                        </Limit>

                        Comment

                        Working...
                        X