Issues when upgrading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivam
    Junior Member
    • Mar 2020
    • 9

    Issues when upgrading

    Hi team, we are facing issues when upgrading. We had v 6.1.9 and we upgraded in the following steps:

    EspoCRM-upgrade-6.1.9-to-6.1.10
    EspoCRM-upgrade-6.1.10-to-7.0.3

    After the upgrade, we are getting the following error:

    Fatal error: Uncaught Espo\Core\Exceptions\Error: Bad data stored in file 'data/cache/application/modules.php'. in /home/xyz/crm.xyz.com/application/Espo/Core/Utils/File/Manager.php:274 Stack trace: #0 /home/xyz/crm.xyz.com/application/Espo/Core/Utils/DataCache.php(72): Espo\Core\Utils\File\Manager->getPhpSafeContents('data/cache/appl...') #1 /home/xyz/crm.xyz.com/application/Espo/Core/Utils/Module.php(102): Espo\Core\Utils\DataCache->get('modules') #2 /home/xyz/crm.xyz.com/application/Espo/Core/Utils/Module.php(89): Espo\Core\Utils\Module->init() #3 /home/xyz/crm.xyz.com/application/Espo/Core/Utils/Module.php(140): Espo\Core\Utils\Module->get(Array, 11) #4 /home/xyz/crm.xyz.com/application/Espo/Core/Binding/EspoBindingLoader.php(40): Espo\Core\Utils\Module->getOrderedList() #5 /home/xyz/crm.xyz.com/application/Espo/Core/Container/ContainerBuilder.php(166): Espo\Core\Binding\EspoBindingLoader->__construct(Object(Espo\Core\Utils\Module)) #6 /home/xyz/crm.xyz.com/application/E in /home/xyz/crm.xyz.com/application/Espo/Core/Utils/File/Manager.php on line 274

    Can you please help us?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    1. Remove data/cache/ directory manually.
    2. Apply chown to have all Espo files owned by www-data:www-data (webserver user)
    3. Check data/config-internal.php (or config.php) the parameter 'defaultPermission'). User and group should be set to your webserver user and group (it can be stored as a GId number, see /etc/passwd to know what name is assigned to the number).

    Next time try to run upgrade under www-data user or root user.
    Last edited by yuri; 10-09-2021, 07:53 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


    • mzingy
      mzingy commented
      Editing a comment
      Hello @yuri

      Hello i got the same error
      after i upgrade ( from ssh not from panel ) to last version



      Fatal error: Uncaught Espo\Core\Exceptions\Error: Bad data stored in file 'data/cache/application/modules.php'. in /home/crm/application/Espo/Core/Utils/File/Manager.php:274 Stack trace: #0 /home/crm/application/Espo/Core/Utils/DataCache.php(72): Espo\Core\Utils\File\Manager->getPhpSafeContents('data/cache/appl...') #1 /home/crm/application/Espo/Core/Utils/Module.php(102): Espo\Core\Utils\DataCache->get('modules') #2 /home/crm/application/Espo/Core/Utils/Module.php(89): Espo\Core\Utils\Module->init() #3 /home/crm/application/Espo/Core/Utils/Module.php(140): Espo\Core\Utils\Module->get(Array, 11) #4 /home/crm/application/Espo/Core/Binding/EspoBindingLoader.php(40): Espo\Core\Utils\Module->getOrderedList() #5 /home/crm/application/Espo/Core/Container/ContainerBuilder.php(166): Espo\Core\Binding\EspoBindingLoader->__construct(Object(Espo\Core\Utils\Module)) #6 /home/crm/application/Espo/Core/Application.php(64): Espo\Core\Container\ContainerBuilder->build() #7 /home/crm/application/Espo/Core/Application.php(57): Espo\Core\Ap in /home/crm/application/Espo/Core/Utils/File/Manager.php on line 274
      Last edited by mzingy; 10-15-2021, 01:15 AM.

    • mzingy
      mzingy commented
      Editing a comment
      i use webserver as no body
      'defaultPermissions' => [
      'user' => 99,
      'group' => 99
      ],
  • shivam
    Junior Member
    • Mar 2020
    • 9

    #3
    Hi @Yuri,

    Thank you so much. It worked and helped a lot.

    Shivam.

    Comment

    Working...