When attempting to move data from <install>/custom/Espo/Custom from an Espo 9.0.0 instance to an Espo 9.0.5 instance, an error was seen when using "php rebuild.php" and the data was not successfully imported.
1. Logged Errors:
[2025-03-13 17:06:01] ERROR: (0) Uncaught Exception RuntimeException: "No database params in config." at /var/www/html/callback/application/Espo/Core/ORM/DatabaseParamsFactory.php line 48 :: /var/www/html/callback/application/Espo/Core/ORM/DatabaseParamsFactory.php(48)
[2025-03-13 17:07:02] ERROR: (0) Uncaught Exception RuntimeException: "No database name specified in config." at /var/www/html/callback/application/Espo/Core/ORM/EntityManagerFactory.php line 165 :: /var/www/html/callback/application/Espo/Core/ORM/EntityManagerFactory.php(165)
2. Reproduction steps:
a. Install a fresh copy of EspoCRM 9.0.4 or 9.0.5.
b. Install both Sales Pack and Advanced Pack.
c. Extract the attached data to the custom/Espo/Custom folder.
i. tar -xzf espocrm.custom.tar.gz -C /var/www/html/my_fresh_installation/custom/Espo
d. Run rebuild.php
At this point the issue should be reproduced with an error in data/logs and none of the custom entities or layouts available.
3. EspoCRM Version 9.0.4 & 9.0.5 can reproduce the issue. The data came from 9.0.0.
4. PHP 8.3.6
5. MySQL 8.0.41-0ubuntu0.24.04.1
I was following the guide linked here: https://docs.espocrm.com/administrat...other-instance
These sames steps have worked to transfer data between an 8.x and 9.0.0 server. They have also worked to transfer data between a 9.0.0 and a different 9.0.0 server.
EspoCRM appears to function correctly from the web interface and a database name has been specified in config-internal.php for the 9.0.4 systems that have an issue.
My current theory is that there is some issue in EntityManagerFactory.php preventing it from loading the correct database name.
The .tar.gz attachment has a .txt extension to get it through the filter.
1. Logged Errors:
[2025-03-13 17:06:01] ERROR: (0) Uncaught Exception RuntimeException: "No database params in config." at /var/www/html/callback/application/Espo/Core/ORM/DatabaseParamsFactory.php line 48 :: /var/www/html/callback/application/Espo/Core/ORM/DatabaseParamsFactory.php(48)
[2025-03-13 17:07:02] ERROR: (0) Uncaught Exception RuntimeException: "No database name specified in config." at /var/www/html/callback/application/Espo/Core/ORM/EntityManagerFactory.php line 165 :: /var/www/html/callback/application/Espo/Core/ORM/EntityManagerFactory.php(165)
2. Reproduction steps:
a. Install a fresh copy of EspoCRM 9.0.4 or 9.0.5.
b. Install both Sales Pack and Advanced Pack.
c. Extract the attached data to the custom/Espo/Custom folder.
i. tar -xzf espocrm.custom.tar.gz -C /var/www/html/my_fresh_installation/custom/Espo
d. Run rebuild.php
At this point the issue should be reproduced with an error in data/logs and none of the custom entities or layouts available.
3. EspoCRM Version 9.0.4 & 9.0.5 can reproduce the issue. The data came from 9.0.0.
4. PHP 8.3.6
5. MySQL 8.0.41-0ubuntu0.24.04.1
I was following the guide linked here: https://docs.espocrm.com/administrat...other-instance
These sames steps have worked to transfer data between an 8.x and 9.0.0 server. They have also worked to transfer data between a 9.0.0 and a different 9.0.0 server.
EspoCRM appears to function correctly from the web interface and a database name has been specified in config-internal.php for the 9.0.4 systems that have an issue.
My current theory is that there is some issue in EntityManagerFactory.php preventing it from loading the correct database name.
The .tar.gz attachment has a .txt extension to get it through the filter.
Comment