Urgent: Update to 7.0: Error 500: No database driver specified
Collapse
X
-
Well, I tried it again. When I used:Code:sudo -u www-data php command.php upgrade
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
Code:php command.php upgrade
======
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.
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:
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
-
Comment
-
-
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
Strange.
Comment
-
-
Code:chown -R www-data:www-data espocrmdir
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
-
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?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
-
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 [] []
Config.php has same ownership but permission of 664.Comment
-
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.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
Comment