Announcement

Collapse
No announcement yet.

Urgent: Update to 7.0: Error 500: No database driver specified

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

  • #16
    Originally posted by yuri View Post
    It's already in 7.0.1.
    So if I run the upgrade script (using www-data with sudo -u) I will (should) avoid the failure that occurred over the weekend when I last ran it?

    (I now have a complete zip file of the espocrm directory and a dump of the database.)

    Comment


    • #17
      It should revert all files back if an error occurs. I hope

      Comment


      • #18
        Originally posted by yuri View Post
        It's already in 7.0.1.
        Well, I tried it again. When I used:
        Code:
        sudo -u www-data php command.php upgrade
        I got:

        Code:
        Current version is 6.1.9.
        EspoCRM will be upgraded to version 6.1.10 now. Enter [Y] to continue.
        Y
        Downloading...
        Upgrading... This may take a while....
        Error: Permission denied:
        application/Espo/Classes/TemplateHelpers/GoogleMaps.php
        application/Espo/Core/ApplicationRunners/Daemon.php
        application/Espo/ORM/QueryComposer/BaseQueryComposer.php
        client/css/espo
        client
        So I ran just:
        Code:
        php command.php upgrade
        and it ran fine and installed 6.1.10

        ======

        I tried to run the 7.x update. When I tried the normal command I got:

        Code:
        php command.php upgrade
        Current version is 6.1.10.
        EspoCRM will be upgraded to version 7.0.1 now. Enter [Y] to continue.
        Y
        Downloading...
        Upgrading... This may take a while..............PHP Warning: array_keys() expects parameter 1 to be array, int given in /var/www/html/xxxx.net/public_html/espocrm2/application/Espo/Core/Utils/Config.php on line 303
        
        Error: Could not read config-internal.
        I then tried using the www-data user and got:

        Code:
         sudo -u www-data php command.php upgrade
        [sudo] password for anc1:
        Current version is 6.1.10.
        EspoCRM will be upgraded to version 7.0.1 now. Enter [Y] to continue.
        Y
        Downloading...
        Upgrading... This may take a while....
        Error: Permission denied:
        I got a a list of of 232 module names that failed.... here are a few;



        application/Espo/Acl
        application/Espo/Core/AclPortal
        application/Espo/Core/Api
        application/Espo/Core
        application/Espo/Modules/Crm/Acl
        application/Espo/Modules/Crm/Jobs
        application/Espo/Modules/Crm/SelectManagers
        application/Espo/ORM/QueryParams
        application/Espo/Resources/metadata/app
        application/Espo/SelectManagers
        application/Espo/Tools/Export/Formats
        client/lib
        client/modules/crm/lib
        .
        .
        .
        application/Espo/Tools/LeadCapture/LeadCapture.php
        application/Espo/Tools/Notification
        application/Espo/Tools/Pdf
        application/Espo/Tools/Stream
        bin/command
        client/css/espo
        client
        command.php
        extension.php
        html/main.html
        index.php
        public/api/v1
        public
        upgrade.php

        I'm not sure how to run the 7.x update... what permissions I need for it, etc. Seems to me that if i could update to 6.1.10 with no permission errors, I should be able to update to 7.x.

        At least this time when the update script failed, it did not crash and burn the current install like it did last time. That is a big improvement.

        Any help is appreciated.
        Last edited by dev77; 10-05-2021, 09:55 PM.

        Comment


        • #19
          hello, in data/config.php

          defaultPermission

          i don't know whats set there but this params seemts not good

          Comment


          • #20
            Originally posted by item View Post
            hello, in data/config.php

            defaultPermission

            i don't know whats set there but this params seemts not good
            The permission I have for data/config.php is: 664

            Worked fine to update from 6.1.9 to 6.1.10 but crashed trying to update to 7.0.1.

            Comment


            • #21
              as you know linux and command line :

              try :
              remove these params..
              do upgrade..

              my value was 9011
              i have see 10011
              i have put in my computer : www
              bizarre

              Comment


              • #22
                Originally posted by item View Post
                as you know linux and command line :

                try :
                remove these params..
                do upgrade..

                my value was 9011
                i have see 10011
                i have put in my computer : www
                bizarre
                I don't understand what you are suggesting I do.

                Comment


                • #23
                  Maybe this is a clue. After the update I did above that did NOT crash and burn but which still failed and left me with 6.1.10 I noticed the following ownerships:

                  Code:
                  drwxrwxr-x 7 [B]me1 www-data[/B] 4096 Oct 5 14:14 data
                  
                  
                  ls -l data
                  total 24
                  drwxrwxr-x 2 [B]www-data www-data[/B] 4096 Oct 5 14:08 cache
                  -rw-rw-r-- 1 [B]me1 www-data[/B] 0 Oct 5 14:08 config-internal.php
                  -rw-rw-r-- 1 [B]www-data www-data[/B] 6085 Oct 5 14:14 config.php
                  drwxrwxr-x 2 [B]www-data www-data[/B] 4096 Oct 6 01:01 logs
                  drwxrwxr-x 2 [B]www-data www-data[/B] 4096 Oct 5 14:14 tmp
                  drwxrwxr-x 3 [B]www-data www-data[/B] 4096 Oct 5 13:34 upload
                  Just about all the files EsproCRM are owned by me1 with a group of www-data. However as you see above some of the files in the data directory are owned by www-data.

                  Strange.

                  Comment


                  • #24
                    Did you try changing all espo files ownership to www-data and then run upgrade from www-data.

                    Comment


                    • #25
                      Originally posted by yuri View Post
                      Did you try changing all espo files ownership to www-data and then run upgrade from www-data.
                      No, I did not try it. I was not aware that EspoCRM owner;group should be set to:

                      Code:
                      chown -R www-data:www-data espocrmdir
                      Is that necessary for 7.0? It was never necessary before.

                      What should the permissions and ownership be for EspoCRM? All versions of EspoCRM have always worked fine with owner:group as me:www-data where 'me' is part of the www-data group.

                      Comment


                      • #26
                        There were no changes in v7.0 making changing ownership necessary. All is the same as it was.

                        What error was in the log after the last update try? Is it related it config-internal.php file?

                        Is config-internal.php file empty?

                        Comment


                        • #27
                          I posted most of the logs here: https://forum.espocrm.com/forum/inst...5202#post75202

                          An earlier update try showed this in the log:

                          Code:
                          [2021-10-02 21:04:24] WARNING: E_WARNING: touch(): Unable to create file install/config.php because Permission denied {"code":2,"message":"touch(): Unable to create file install/config.php because Permission denied","file":"/var/www/html/mailanc2.net/public_html/espocrm2/application/Espo/Core/Utils/File/Manager.php","line":664} []
                          [2021-10-02 21:04:24] WARNING: Permission denied for install/config.php [] []
                          [2021-10-02 21:17:33] WARNING: Password recovery: User ac@newmediacreate.com not found. [] []
                          [2021-10-02 21:17:33] ERROR: (404) POST /User/passwordChangeRequest; line: 306, file: /var/www/html/mailanc2.net/public_html/espocrm2/application/Espo/Core/Password/Recovery.php [] []
                          [2021-10-02 21:20:22] WARNING: Password recovery: User ac99@answer123.com not found. [] []
                          [2021-10-02 21:20:22] ERROR: (404) POST /User/passwordChangeRequest; line: 306, file: /var/www/html/mailanc2.net/public_html/espocrm2/application/Espo/Core/Password/Recovery.php [] []
                          [2021-10-02 21:21:10] WARNING: Password recovery: User ac99@answer123.com not found. [] []
                          [2021-10-02 21:21:10] ERROR: (404) POST /User/passwordChangeRequest; line: 306, file: /var/www/html/mailanc2.net/public_html/espocrm2/application/Espo/Core/Password/Recovery.php [] []
                          [2021-10-02 21:34:00] WARNING: E_WARNING: touch(): Unable to create file install/config.php because Permission denied {"code":2,"message":"touch(): Unable to create file install/config.php because Permission denied","file":"/var/www/html/mailanc2.net/public_html/espocrm2/application/Espo/Core/Utils/File/Manager.php","line":664} []
                          [2021-10-02 21:34:00] WARNING: Permission denied for install/config.php [] []
                          Yes, config-internal.php is empty and has ownership of me:www-data with permissions of 755

                          Config.php has same ownership but permission of 664.

                          Comment


                          • #28
                            config-internal 755 or 664? In the previous post it was 664.

                            Comment


                            • #29
                              You have mixed ownerships that is not right. I'm not sure if it's a cause of the current problem, but you need to all files having the same user:group. Choose either me:www-data or www-data:www-data. And fix your default-permissions in config.php to correspond ownership your files have.
                              Last edited by yuri; 10-07-2021, 08:15 AM.

                              Comment


                              • #30
                                Unfortunately, I have the exact same problem as dev77. The suggested workarounds have not helped. config.php and config-internal.php are under the same owner and permission (664). What other solutions could there be?

                                Comment

                                Working...
                                X