Update Error autoload: Update to SuiteCRM 7.12.7 failed (just stopped)

Update Error: to SuiteCRM 7.12.7 failed (just stopped)
The Login-page is not showing up.
Now there is no way to login !!!

I see the following Fatal error message for
… vendor/autoload.php on line 7

Fatal error: Uncaught Error: Class ‘ComposerAutoloaderInit2329c4a8a893839ff19cd60887a1e4be’ not found in /home/xxxx/public_html/xxxxx/vendor/autoload.php:7 Stack trace: #0 /home/xxxxx/public_html/xxxxx/include/entryPoint.php(65): require_once() #1 /home/xxxxx/public_html/xxxxx/index.php(47): require_once(‘/home/xxxxx/…’) #2 {main} thrown in /home/xxxxx/public_html/xxxx/vendor/autoload.php on line 7

**We have all our projects, todo-lists and calenders in this SuiteCRM Installation. **
Please help. It’s urgent.

Thanks to all!
Jog

You don’t say which version you’re upgrading from… it would be useful to know.

Check that your PHP version is supported in both the initial version of SuiteCRM and the final one.

Hello, it was a minor update from SuiteCRM 7.12.x. to 7.12.8

The upgradeWizard.log ends with this enties:
Mon, 12 Dec 2022 16:29:21 -0500 [UpgradeWizard] - call addNewSystemTabsFromUpgrade(upload://upgrades/patch/SuiteCRM-Upgrade-7.12.x-to-7.12.8-restore)
Mon, 12 Dec 2022 16:29:21 -0500 [UpgradeWizard] - finished addNewSystemTabsFromUpgrade
Mon, 12 Dec 2022 16:29:21 -0500 [UpgradeWizard] - Registering upgrade with UpgradeHistory
Mon, 12 Dec 2022 16:29:21 -0500 [UpgradeWizard] - Rebuilding style js file: cache/themes/SuiteP/js/style-min.js
Mon, 12 Dec 2022 16:29:21 -0500 [UpgradeWizard] - Rebuilding language cache

In the suitecrm.log there are following errors for the update BEFORE the next update crashed:

Sat Dec 10 12:02:17 2022 [15996][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] File cache/modules/SurveyQuestions/language/en_us.lang.php cannot be touched
Sat Dec 10 12:02:17 2022 [15996][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] File cache/modules/SurveyQuestions/language/en_us.lang.php cannot be written to
Sat Dec 10 12:02:17 2022 [15996][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] File cache/dashlets/dashlets.php cannot be touched
Sat Dec 10 12:02:17 2022 [15996][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] File cache/dashlets/dashlets.php cannot be written to
Sat Dec 10 12:02:24 2022 [15350][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] Cannot create directory cache/themes/SuiteP/modules cannot be touched
Sat Dec 10 12:02:24 2022 [15350][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] Cannot create directory cache/themes/SuiteP/modules/Contacts cannot be touched
Sat Dec 10 12:02:24 2022 [15350][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] File cache/themes/SuiteP/modules/Contacts/DetailView.tpl cannot be touched
Sat Dec 10 12:02:24 2022 [15350][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][FATAL] Diese Datei existiert im System nicht.: cache/themes/SuiteP/modules/Contacts/DetailView.tpl
Sat Dec 10 12:03:05 2022 [18037][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][ERROR] Cannot create directory upload://upgrades/patch/SuiteCRM-Upgrade-7.12.x-to-7.12.8-restore//vendor/zf1/zend-locale/library/Zend/Locale/Math cannot be touched
Sat Dec 10 12:03:05 2022 [18037][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][FATAL] Exception handling in /home/indoora7/public_html/privcrm/include/MVC/Controller/SugarController.php:397
Sat Dec 10 12:03:05 2022 [18037][b7137e7a-7ffc-3a49-539c-5c35bea64b5d][FATAL] Exception in Controller: Directory “upload/upgrades/patch/SuiteCRM-Upgrade-7.12.x-to-7.12.8-restore//vendor/zf1/zend-locale/library/Zend/Locale/Math” was not created

Mon Dec 12 14:00:43 2022 [32020][ea2148d9-f320-504c-af6a-5c35bf1912b8][ERROR] Unable to get proper side for link project_name_link
Mon Dec 12 14:00:43 2022 [32020][ea2148d9-f320-504c-af6a-5c35bf1912b8][ERROR] Unable to get proper side for link project_name_link

The upgrade crashed at this point.
Since the we are fighting to bring back our data.
If we can’t solve this issue SuiteCRM is way to much unreliable to be used professionally.
Please help to get it running again or the transfer the data in a new installation.
Thank you,
Jog

It’s not necessarily a SuiteCRM problem. It looks like SuiteCRM is having trouble writing files and creating directories. You should check if your ownership/permissions scheme went bad.

For example: running composer as sudo user, or cron jobs as root, or simply logging in and editing something as a different user, all of these can cause broken permissions and ownerships.

Check those dirs and files in the error messages, what are their owners and permissions?

In the case of errors creating new files, that depends on the permissions in the parent directory.

Regarding the vendor error, I suggest this procedure:

  • rename your current vendor directory (as a way to delete it, but keeping it as a backup)
  • grab the entire vendor directory from a SuiteCRM full installation package, for the corresponding version you’re running, and place it as a new vendor directory.
  • check ownerships and permissions on it and try running SuiteCRM again.

To get this vendor directory, don’t use an upgrade package, use a full installation package. And don’t go looking for it on Github, it isn’t there, only in the packaged installations.

Hello Forum Team,
Thank you so much for your quick and wise help !!
All right now !
We Love SuiteCRM since years

1 Like