# Upgrade to BETA failed site is offline

**URL:** <https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276>\
**Category:** Product Support\
**Created:** [September 3, 2015, 11:50am UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276 "2015-09-03T11:50:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radek](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radek/32/412_2.png) [@Radek](https://forum.mautic.org/u/Radek)\
**Post date:** [September 3, 2015, 11:50am UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/1 "2015-09-03T11:50:59Z")

</div>

Hello, I’ve just installed Mautic and wanted to update to BETA to look at tags functionality.  
  
  
  
Before I report my issue - I would like to say that I am amazed by mautic’s capabilities and the overal quality of the app. It certainly does look well thought. Chapeau bas!  
  
  
  
  
  
How I broke the app? I did this:

Code:

php /home/perun/public\_html/app/console mautic:update:find -e prod

Code:

Version 1.2.0-beta1 of Mautic is available for download. Please visit https://github.com/mautic/mautic/releases/tag/1.2.0-beta1 for more information. To update, you can run 'php app/console mautic:update:apply' from the command line.

\*note I have selected BETA updates in options because of Tags.  
  
Next I did:

Code:

php /home/perun/public\_html/app/console mautic:update:apply

And this gave me something that was looking promising at first.  

Code:

Are you sure you wish to update Mautic to the latest version? [0] No [1] Yes \> 1 Extracting zip... Clearing the cache... Clearing the cache for the prod environment with debug false PHP Fatal error: Cannot redeclare class MauticAddonBundleEntityAddon in /home/perun/public\_html/app/bundles/PluginBundle/Entity/Addon.php on line 22

  
When I tried to re-run the command I got

Code:

[LogicException] Trying to register two bundles with the same name "MauticSocialBundle"

  
When accessing the site - it gives me

Quote:

The site is currently offline due to encountering an error. (...)

  
  
  
I tried to lookup this error but couoldn't find anything on this.... Can you suggest how do I work this out ?  
  
thanks, Radek

---

<div class="post-metadata">

**Author:** ![Radek](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radek/32/412_2.png) [@Radek](https://forum.mautic.org/u/Radek)\
**Post date:** [September 3, 2015, 11:50am UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/2 "2015-09-03T11:50:59Z")

</div>

Hello, I’ve just installed Mautic and wanted to update to BETA to look at tags functionality.

Before I report my issue - I would like to say that I am amazed by mautic’s capabilities and the overal quality of the app. It certainly does look well thought. Chapeau bas!

How I broke the app? I did this:

```auto
php /home/perun/public_html/app/console mautic:update:find -e prod
```

`Version 1.2.0-beta1 of Mautic is available for download. Please visit https://github.com/mautic/mautic/releases/tag/1.2.0-beta1 for more information.
To update, you can run 'php app/console mautic:update:apply' from the command line.`  
\*note I have selected BETA updates in options because of Tags.

Next I did:

```auto
php /home/perun/public_html/app/console mautic:update:apply
```

And this gave me something that was looking promising at first.

[code]Are you sure you wish to update Mautic to the latest version?  
[0] No  
[1] Yes

> 1  
> Extracting zip…  
> Clearing the cache…  
> Clearing the cache for the prod environment with debug false  
> PHP Fatal error: Cannot redeclare class MauticAddonBundleEntityAddon in /home/perun/public\_html/app/bundles/PluginBundle/Entity/Addon.php on line 22[/code]

When I tried to re-run the command I got

`[LogicException]
  Trying to register two bundles with the same name "MauticSocialBundle"`

When accessing the site - it gives me

> [@](#):
>
> The site is currently offline due to encountering an error. (…)

I tried to lookup this error but couoldn’t find anything on this… Can you suggest how do I work this out ?

thanks, Radek

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [September 3, 2015, 11:58am UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/3 "2015-09-03T11:58:20Z")

</div>

Thanks for the compliments. 🙂 Our community works hard to make it something awesome for everyone!

Let’s see if we can solve your problem real quick - You may be able to simply delete the cache manually. Can you remove the cache folders (prod and/or dev) and see if that helps?

Thanks!  
David

---

<div class="post-metadata">

**Author:** ![Radek](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radek/32/412_2.png) [@Radek](https://forum.mautic.org/u/Radek)\
**Post date:** [September 3, 2015, 12:10pm UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/4 "2015-09-03T12:10:33Z")

</div>

Hello,

Please note I have moved the cache folder outside public\_html

Now when I `/home/perun/mautic/cache# ls -lh`  
It returns

`total 16K
-rw-r--r-- 1 perun perun 814 Sep 3 13:25 languageList.txt
drwxr-xr-x 4 root root 4.0K Sep 3 14:28 pro_
drwxr-xr-x 6 perun perun 4.0K Sep 3 14:28 prod
-rw-r--r-- 1 perun perun 102 Sep 3 14:26 script_executions.json`

I removed all of these files so the /cache directory is emtpy

I still am unable to `mautic:update:apply` getting same error message and the website still gives [quote]The site is currently offline due to encountering an error. (…)[/quote]

Thanks for quick response ! Hope we can work this out 🙂

thanks, Radek

EDIT: I went ahead and cleared the old cache folders in /app/cache/ but no joy

---

<div class="post-metadata">

**Author:** ![Radek](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/radek/32/412_2.png) [@Radek](https://forum.mautic.org/u/Radek)\
**Post date:** [September 5, 2015, 9:26am UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/5 "2015-09-05T09:26:17Z")

</div>

OK, I reinstalled the app to the new upgraded version 1.2.

Can you suggest how do I perform safe updates in future?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/upgrade-to-beta-failed-site-is-offline/2276/6 "2020-02-02T22:58:32Z")

</div>


