# Plugin Installation error through marketplace

**URL:** <https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [June 28, 2023, 9:11am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459 "2023-06-28T09:11:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkarc284](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@omkarc284](https://forum.mautic.org/u/omkarc284)\
**Post date:** [June 28, 2023, 9:11am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/1 "2023-06-28T09:11:04Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 7.4  
My Database type and version is: Maria DB

**Your problem**  
My problem is: Plugin installation from Marketplace fails every time

These errors are showing in the log:  
[2023-06-28 07:52:34] mautic.ERROR: Installation of plugin through Composer has failed: {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28593}  
[2023-06-28 07:53:06] mautic.ERROR: PHP Error: Maximum execution time of 30 seconds exceeded - in file /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php - at line 213 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28593}  
[2023-06-28 07:53:06] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Error: Maximum execution time of 30 seconds exceeded - in file /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php - at line 213 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28593}  
[2023-06-28 08:08:54] mautic.ERROR: Installation of plugin through Composer has failed: {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28597}  
[2023-06-28 08:09:24] mautic.WARNING: PHP Warning - require(/var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/getSwiftmailer\_EmailSender\_ListenerService.php): failed to open stream: No such file or directory - in file /var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/appAppKernelProdContainer.php - at line 2338 {“file”:“getSwiftmailer\_EmailSender\_ListenerService.php”,“lazyLoad”:true} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28597}  
[2023-06-28 08:09:24] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28597}  
[2023-06-28 08:09:24] mautic.WARNING: PHP Warning - Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/symfony/http-foundation/Response.php:1239) - in file /var/www/html/docroot/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php - at line 481 {“error”:{“inline”:null,“type”:64,“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“logMessage”:null,“line”:2338,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/appAppKernelProdContainer.php”,“trace”:[{“namespace”:“”,“short\_class”:“”,“class”:“”,“type”:“”,“function”:“”,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/appAppKernelProdContainer.php”,“line”:2338,“args”:}],“context”:,“showExceptionMessage”:false,“previous”:null},“inTemplate”:false,“isAjax”:true,“dataArray”:{“errors”:[{“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“code”:500,“type”:null}]}} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28597}  
[2023-06-28 08:09:24] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerN6xetWx/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:28597}

Steps I have tried to fix the problem:  
I couldnt make sense of it so i need help or guidance

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 28, 2023, 9:32am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/2 "2023-06-28T09:32:49Z")

</div>

I’m sorry that you hit this issue. The problem is that Composer can take time to install a package. It does many things in the background to ensure the plugin is compatible with all other packages and then downloading the package. All that can take more than 30 seconds. In your error message, there is:

`Maximum execution time of 30 seconds exceeded`

This means that in you php.ini configuration you have this directive:

[https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time](https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time)

Set to 30 seconds, which is the default value.

There are 2 ways around it:

1. Increase the `max_execution_time` config option to 1 minute or more.
2. Use CLI to install the plugin as CLI have no time limits.

To install a plugin via CLI you run this command:  
`bin/console mautic:marketplace:install vendor/plugin`

You’ll have to replace `vendor/plugin` with the plugin you want to install. This is visible now in the plugin detail page under the Repository value. So to shamelessly plug my plugin name, the Repository value is `cronfig/mautic-cronfig`. So the command to install the Cronfig plugin would look like this:

`bin/console mautic:marketplace:install cronfig/mautic-cronfig`

We obviously have to get this information to the marketplace UI and to the docs. If anyone could improve the user docs with this information and help the whole community, please update this doc:

[https://mautic-documentation.readthedocs.io/en/5.x/marketplace/marketplace.html](https://mautic-documentation.readthedocs.io/en/5.x/marketplace/marketplace.html)

---

<div class="post-metadata">

**Author:** ![omkarc284](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@omkarc284](https://forum.mautic.org/u/omkarc284)\
**Post date:** [June 28, 2023, 10:30am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/3 "2023-06-28T10:30:55Z")

</div>

i tried changing the max execution time to 90 secs and tried again but this error in log showed up and installation failed:

[2023-06-28 10:28:42] mautic.ERROR: Installation of plugin through Composer has failed: {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:38341}  
[2023-06-28 10:29:15] mautic.WARNING: PHP Warning - require(/var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/getSwiftmailer\_EmailSender\_ListenerService.php): failed to open stream: No such file or directory - in file /var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/appAppKernelProdContainer.php - at line 2338 {“file”:“getSwiftmailer\_EmailSender\_ListenerService.php”,“lazyLoad”:true} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:38341}  
[2023-06-28 10:29:15] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:38341}  
[2023-06-28 10:29:15] mautic.WARNING: PHP Warning - Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/symfony/http-foundation/Response.php:1239) - in file /var/www/html/docroot/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php - at line 481 {“error”:{“inline”:null,“type”:64,“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“logMessage”:null,“line”:2338,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/appAppKernelProdContainer.php”,“trace”:[{“namespace”:“”,“short\_class”:“”,“class”:“”,“type”:“”,“function”:“”,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/appAppKernelProdContainer.php”,“line”:2338,“args”:}],“context”:,“showExceptionMessage”:false,“previous”:null},“inTemplate”:false,“isAjax”:true,“dataArray”:{“errors”:[{“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“code”:500,“type”:null}]}} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:38341}  
[2023-06-28 10:29:15] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerObpVFnh/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:38341}

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 28, 2023, 10:43am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/4 "2023-06-28T10:43:20Z")

</div>

This looks like a cache issue. It cannot find some files in the var/cache folder. Try to delete the contents of the var/cache folder. The cache should regenerate itself on next request or command execution.

Also, after updating the php.ini file, you have to restart the server. Apache, Nginx or whatever server you use.

---

<div class="post-metadata">

**Author:** ![omkarc284](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@omkarc284](https://forum.mautic.org/u/omkarc284)\
**Post date:** [June 28, 2023, 3:40pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/5 "2023-06-28T15:40:26Z")

</div>

I did the restart for apache2 and after doing what you said i got this error in log and it failed again:  
[2023-06-28 15:27:37] mautic.CRITICAL: Uncaught PHP Exception Mautic\MarketplaceBundle\Exception\ApiException: “cURL error 35: OpenSSL SSL\_connect: Connection reset by peer in connection to [packagist.org:443](http://packagist.org:443) (see [libcurl - Error Codes](https://curl.haxx.se/libcurl/c/libcurl-errors.html)) for [https://packagist.org/search.json?page=1&per\_page=1&type=mautic-plugin&q=mzagmajster/omnivery-mailer-bundle](https://packagist.org/search.json?page=1&per_page=1&type=mautic-plugin&q=mzagmajster/omnivery-mailer-bundle)” at /var/www/html/docroot/app/bundles/MarketplaceBundle/Api/Connection.php line 50 {“exception”:“[object] (Mautic\MarketplaceBundle\Exception\ApiException(code: 0): cURL error 35: OpenSSL SSL\_connect: Connection reset by peer in connection to [packagist.org:443](http://packagist.org:443) (see [libcurl - Error Codes](https://curl.haxx.se/libcurl/c/libcurl-errors.html)) for [https://packagist.org/search.json?page=1&per\_page=1&type=mautic-plugin&q=mzagmajster/omnivery-mailer-bundle](https://packagist.org/search.json?page=1&per_page=1&type=mautic-plugin&q=mzagmajster/omnivery-mailer-bundle) at /var/www/html/docroot/app/bundles/MarketplaceBundle/Api/Connection.php:50)”} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}  
[2023-06-28 15:28:29] mautic.ERROR: Installation of plugin through Composer has failed: {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}  
[2023-06-28 15:29:00] mautic.WARNING: PHP Warning - require(/var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/getSwiftmailer\_EmailSender\_ListenerService.php): failed to open stream: No such file or directory - in file /var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/appAppKernelProdContainer.php - at line 2338 {“file”:“getSwiftmailer\_EmailSender\_ListenerService.php”,“lazyLoad”:true} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}  
[2023-06-28 15:29:00] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}  
[2023-06-28 15:29:00] mautic.WARNING: PHP Warning - Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/symfony/http-foundation/Response.php:1239) - in file /var/www/html/docroot/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php - at line 481 {“error”:{“inline”:null,“type”:64,“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“logMessage”:null,“line”:2338,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/appAppKernelProdContainer.php”,“trace”:[{“namespace”:“”,“short\_class”:“”,“class”:“”,“type”:“”,“function”:“”,“file”:“/var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/appAppKernelProdContainer.php”,“line”:2338,“args”:}],“context”:,“showExceptionMessage”:false,“previous”:null},“inTemplate”:false,“isAjax”:true,“dataArray”:{“errors”:[{“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors.”,“code”:500,“type”:null}]}} {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}  
[2023-06-28 15:29:00] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/getSwiftmailer\_EmailSender\_ListenerService.php’ (include\_path=‘.:/usr/share/php’) - in file /var/www/html/docroot/var/cache/pro\_/ContainerO3DMpYF/appAppKernelProdContainer.php - at line 2338 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:40896}

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 29, 2023, 7:05am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/6 "2023-06-29T07:05:46Z")

</div>

This seem to be some server config issue. I haven’t seen it yet. But if you Goole for

`cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection`

You get several ideas of what it could be and how to resolve it. Here is one of the anwers:

> <https://stackoverflow.com/questions/10285700/curl-error-recv-failure-connection-reset-by-peer-php-curl>

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [June 29, 2023, 8:32am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/7 "2023-06-29T08:32:49Z")

</div>

I created [Adding marketplace command by escopecz · Pull Request #12529 · mautic/mautic · GitHub](https://github.com/mautic/mautic/pull/12529) to add the command to the plugin detail page so users can just copy it, paste it to CLI and install without the issues that comes with the HTTP requests

---

<div class="post-metadata">

**Author:** ![omkarc284](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@omkarc284](https://forum.mautic.org/u/omkarc284)\
**Post date:** [July 1, 2023, 4:46am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/8 "2023-07-01T04:46:12Z")

</div>

I tried installing a plugin as a test to see if that works… I installed the basic helloworld plugin mentioned in the link you send above and this is what i got:  
bin/console mautic:marketplace:install dennisameling/helloworld-bundle -vvv  
Installing dennisameling/helloworld-bundle, this might take a while…  
Error while installing this plugin.  
Check the logs for more details or run again with the -vvv parameter.

After checking the logs on the mautic’s system config i got:  
[2023-07-01 04:42:44] mautic.WARNING: Command `mautic:marketplace:install` exited with status code 1 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:22012}  
[2023-07-01 04:42:55] mautic.WARNING: Command `mautic:marketplace:install` exited with status code 1 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:22041}

please help

---

<div class="post-metadata">

**Author:** ![omkarc284](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@omkarc284](https://forum.mautic.org/u/omkarc284)\
**Post date:** [July 3, 2023, 4:57am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/9 "2023-07-03T04:57:50Z")

</div>

> [@escopecz](#):
>
> bin/console mautic:marketplace:install cronfig/mautic-cronfig

[2023-07-03 04:38:06] mautic.WARNING: Command `mautic:plugins:reload` exited with status code 1 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:59180}  
[2023-07-03 04:43:21] mautic.WARNING: Command `mautic:marketplace:install` exited with status code 2 {“hostname”:“ubuntu-s-1vcpu-2gb-blr1-01”,“pid”:59315}

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 10, 2023, 3:09pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/10 "2023-07-10T15:09:16Z")

</div>

> [@omkarc284](#):
>
> Check the logs for more details or run again with the -vvv parameter.

Have you tried the hint that the command gave you? There is nothing I could suggest from the information you provided.

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [January 13, 2025, 2:02pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/11 "2025-01-13T14:02:12Z")

</div>

Facing the same issue, here is the command line error

```auto
Error while installing this plugin.
Check the logs for more details or run again with the -vvv parameter.

```

Mautic Log

`[2025-01-13T13:18:36.501694+00:00] mautic.WARNING: Command `mautic:marketplace:install` exited with status code 2 [] {"hostname":"panel.domain.com","pid":40964}`

Any suggestion?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 13, 2025, 3:16pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/12 "2025-01-13T15:16:17Z")

</div>

Have you tried to follow the recommendation and running it with the `-vvv` parameter to get more debugging info?

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [January 15, 2025, 8:36am UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/13 "2025-01-15T08:36:17Z")

</div>

Yes, tried with -vvv parameter, getting following error

Installing acquia/mc-cs-plugin-custom-objects, this might take a while…  
Error while installing this plugin.  
Check the logs for more details or run again with the -vvv parameter.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 17, 2025, 1:16pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-marketplace/28459/14 "2025-01-17T13:16:29Z")

</div>

Please provide a screenshot of your terminal running it with the `-vvv` parameter. It should be way, way more verbose.
