# Activate Extension store fails with Internal server error

**URL:** <https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605>\
**Category:** General Questions (EN)\
**Tags:** installation--gettin\
**Created:** [10. Oktober 2022 um 11:59 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605 "2022-10-10T11:59:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbliek](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hbliek](https://forum.shopware.com/u/hbliek)\
**Post date:** [10. Oktober 2022 um 11:59 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/1 "2022-10-10T11:59:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![hbliek](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hbliek](https://forum.shopware.com/u/hbliek)\
**Post date:** [11. Oktober 2022 um 10:41 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/2 "2022-10-11T10:41:30Z")

</div>

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

```auto
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|

```

---

<div class="post-metadata">

**Author:** ![hbliek](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hbliek](https://forum.shopware.com/u/hbliek)\
**Post date:** [11. Oktober 2022 um 11:04 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/3 "2022-10-11T11:04:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hbliek](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hbliek](https://forum.shopware.com/u/hbliek)\
**Post date:** [13. Oktober 2022 um 14:06 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/4 "2022-10-13T14:06:59Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![openmindculture](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/openmindculture/32/8658_2.png) [@openmindculture](https://forum.shopware.com/u/openmindculture)\
**Post date:** [22. November 2022 um 09:21 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/5 "2022-11-22T09:21:05Z")

</div>

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.](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/5/2/52fde6d3fb4c1c598423ee6f42ea70775ea12f7d.png)

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:

```auto
/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?!

```auto
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.

---

<div class="post-metadata">

**Author:** ![openmindculture](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/openmindculture/32/8658_2.png) [@openmindculture](https://forum.shopware.com/u/openmindculture)\
**Post date:** [22. November 2022 um 14:29 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/6 "2022-11-22T14:29:44Z")

</div>

Follow-up discussion on StackOverflow: [php - Shopware 6 Store Activation causes generic Error Message in Admin UI - Stack Overflow](https://stackoverflow.com/questions/74530621/shopware-6-store-activation-causes-generic-error-message-in-admin-ui)

---

<div class="post-metadata">

**Author:** ![kuzmin](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kuzmin](https://forum.shopware.com/u/kuzmin)\
**Post date:** [16. Februar 2023 um 15:23 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/9 "2023-02-16T15:23:19Z")

</div>

I have the same problem - after klick on „Activate“ at local instance of Shopware, I’ve got Internal Server Error with a description: [Semantical Error] The annotation „@Shopware\Core\Framework\Routing\Annotation\RouteScope“ in class SwagExtensionStore\Controller\DataController was never imported. Did you maybe forget to add a „use“ statement for this annotation? in /Users/mbp/PhpstormProjects/shopware-test/custom/plugins/SwagExtensionStore/src/Controller/DataController.php (which is being imported from „/Users/mbp/PhpstormProjects/shopware-test/custom/plugins/SwagExtensionStore/src/Resources/config/routes.yaml“). Make sure there is a loader supporting the „annotation“ type."

I’ve tried to clear cache, it does not help. Also, the Stackoverflow link is already 404.

Anyone has got this problem solved? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![joh](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@joh](https://forum.shopware.com/u/joh)\
**Post date:** [9. Juni 2023 um 08:17 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/10 "2023-06-09T08:17:01Z")

</div>

@kuzmin were you able to solve this? I have the same effect as you had with the missing annotation. But the use statement is present in the file DataController.php

---

<div class="post-metadata">

**Author:** ![mm-webconsulting](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mm-webconsulting](https://forum.shopware.com/u/mm-webconsulting)\
**Post date:** [18. September 2023 um 13:18 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/11 "2023-09-18T13:18:46Z")

</div>

Is there a solution?

---

<div class="post-metadata">

**Author:** ![openmindculture](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/openmindculture/32/8658_2.png) [@openmindculture](https://forum.shopware.com/u/openmindculture)\
**Post date:** [24. Januar 2024 um 10:02 UTC](https://forum.shopware.com/t/activate-extension-store-fails-with-internal-server-error/96605/12 "2024-01-24T10:02:17Z")

</div>

The solution, as suggested in a comment by J.Elfering on StackOverflow in 2022:

> In general you should prefer installing plugins over the CLI, as you have way more control over memory limits or timeouts and the error messages are probably also easier to understand.
