# Plugin installation Error through composer and cli

**URL:** <https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [July 3, 2023, 6:07am UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486 "2023-07-03T06:07:07Z")\
**Posts on this page:** 6\
**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:** [July 3, 2023, 6:07am UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/1 "2023-07-03T06:07:07Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 8.0.29  
My Database type and version is:

**Your problem**  
My problem is: Plugin installation Error through composer and cli on running the command:  
bin/console mautic:marketplace:install cronfig/mautic-cronfig

These errors are showing in the log:  
[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}

Steps I have tried to fix the problem:  
i tried doing:  
composer update  
composer config -g repo.packagist composer [https://packagist.org](https://packagist.org)

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 3, 2023, 8:03am UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/2 "2023-07-03T08:03:05Z")

</div>

Try running:

```auto
php bin/console mautic:plugins:reload --env=prod -vvv

```

So we get a little more descriptive error. Then we can troubleshoot further.

Regards, M.

---

<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, 9:00am UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/3 "2023-07-03T09:00:18Z")

</div>

> [@mzagmajster](#):
>
> `php bin/console mautic:plugins:reload --env=prod -vvv`

i ran that command and it shows:  
0 new plugins were installed and 0 updated.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1c03ad58b57572d797c2c8110bb8733b293dc9e0.png)

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 3, 2023, 10:51am UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/4 "2023-07-03T10:51:44Z")

</div>

Looks like everything went OK. Can you try to remove the plugin, reload and then putting the plugin back and reload again?

Do not forget to clear the cache with:

```auto
rm -rf var/cache/dev/* var/cache/prod/*

```

after each step.

---

<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, 12:03pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/5 "2023-07-03T12:03:59Z")

</div>

> [@mzagmajster](#):
>
> `rm -rf var/cache/dev/* var/cache/prod/*`

i did but nothing changed i’m getting the same output

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 3, 2023, 4:52pm UTC](https://forum.mautic.org/t/plugin-installation-error-through-composer-and-cli/28486/6 "2023-07-03T16:52:08Z")

</div>

It looks like it activated fine this time. Can you check that the functionality of the plugin is there? That the plugin works?
