Activate Extension store fails with Internal server error

Something appears to go wrong with Extensions>Store Activate

Internal Server Error

Return value of Symfony\Component\Process\Process::close() must be of the type int, null returned

This does not add entries to the Settings>System>Logs.
Also, under Shopware Account, it does say successfully connected.
Currently running a fresh install 6.4.13.0 (latest version available in the package manager of the hosting provider)
Is there something I can do to diagnose the cause of this problem?

Tried again after update to 6.4.16, still fails, although message changed a little bit;

Internal Server Error
Attempted to call function „proc_get_status“ from namespace „Symfony\Component\Process“.

For what it’s worth, the console message

vendors-node.js?16654842012393871:2 POST https://whitebream.eu/public/api/_action/extension/download/SwagExtensionStore 500

||(anonymous)|@|vendors-node.js?16654842012393871:2|
| --- | --- | --- | --- |
||e.exports|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|commons.js?1665484201231096:1|
||UnBK.e.exports|@|vendors-node.js?16654842012393871:2|
||Promise.then (async)|||
||CgaS.h.request|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||value|@|app.js?16654842016926524:1|
||value|@|app.js?16654842016926524:1|
||(anonymous)|@|app.js?16654842016926524:1|
||u|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||n|@|vendors-node.js?16654842012393871:2|
||a|@|vendors-node.js?16654842012393871:2|
||Promise.then (async)|||
||n|@|vendors-node.js?16654842012393871:2|
||a|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|vendors-node.js?16654842012393871:2|
||(anonymous)|@|app.js?16654842016926524:1|
||activateStore|@|app.js?16654842016926524:1|
||Xe|@|vendors-node.js?16654842012393871:2|
||n|@|vendors-node.js?16654842012393871:2|
||o._wrapper|

The change in message was caused by PHP 8.1 instead of PHP 7.4, after changing PHP version, message is back to original.

Also tried downloading the extension zip files and use ‚Upload extension‘. Fails with a notification:

Error
That didn’t work

Turns out, a PHP package called „Composer“ was not installed.

So far not impressed, as this error gives me the impression that errors get dragged along until an exception happens to occur.
Especially not impressed because that package isn’t even in the system requirements, only found it after looking into the requirements of this (outdated/unmaintained) Symphony module…

I have a similar problem. After trying to activate the store in the Admin UI, I get a graphical error message without any detail information. The error message simply says „Error during activation. Please try again. If that does not work, ask your administrator for help.“ and a blue „Retry“ button below.

Screenshot of the error message described above.

There is nothing relevant in the error log (only frontend 404 errors), although the admin UI’s browser console shows that there has been a 500 Internal Server error, causing follow-up client side errors:

/api/_action/extension/activate/plugin/SwagExtensionStore
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

/api/notification/message?limit=5:1 
Failed to load resource: net::ERR_NAME_NOT_RESOLVED

/api/_info/queue.json
Failed to load resource: net::ERR_NAME_NOT_RESOLVED

/bundles/administration/static/js/commons.js?1668607807231938
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')
    at commons.js?1668607807231938:1:203362

After retry, at least I get a real error message, this time about a seemingly exhausted memory limit, claiming that trying to allocate 6M has exhausted the limit of 143M?!

Internal Server Error
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 6242480 bytes)

I had a similar misleading memory limit message recently.
Questions:

  • How to fix the problems? Raise memory limit in php.ini even further? Use the CLI rather than the admin UI for tasks like this (specifying custom memory limits if needed)?
  • How to get proper error messages? The 500 Internal Server Error from the API call should have been logged somewhere, but it wasn’t, so there are no error details to provide to Shopware’s core team either.

Follow-up discussion on StackOverflow: php - Shopware 6 Store Activation causes generic Error Message in Admin UI - Stack Overflow