# 2.4.1, updating preferred environment fails

**URL:** <https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403>\
**Category:** Support\
**Created:** [September 26, 2018, 5:02pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403 "2018-09-26T17:02:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![soderlind](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/soderlind/32/24675_2.png) [@soderlind](https://community.localwp.com/u/soderlind)\
**Post date:** [September 26, 2018, 5:02pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403/1 "2018-09-26T17:02:17Z")

</div>

macOs Mojave  
Local 2.4.1

When I try to upgrade the preferred environment from 1.1.0 to 1.3.1 (using clone) on a multisite it fails with the following error message:

 ![upgrade-fails-local](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/422960c8aeea88e8553568538c36059ccda016b9.png)

---

<div class="post-metadata">

**Author:** ![andypeters](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/andypeters/32/4469_2.png) [@andypeters](https://community.localwp.com/u/andypeters)\
**Post date:** [September 26, 2018, 9:46pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403/2 "2018-09-26T21:46:31Z")

</div>

@soderlind

Local 2.4.2 with Preferred 1.3.2 is now available. You can download it here: [Local by Flywheel 2.4.2](https://local.getflywheel.com/community/t/local-by-flywheel-2-4-2/8415)

Could you update to Local 2.4.2 and let us know if the issue persists.

---

<div class="post-metadata">

**Author:** ![vinhost](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/vinhost/32/4388_2.png) [@vinhost](https://community.localwp.com/u/vinhost)\
**Post date:** [September 26, 2018, 10:41pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403/3 "2018-09-26T22:41:39Z")

</div>

Same issues with 2.4.2 as 2.4.1

Wordpress installation failed when adding a new site.  
Error establishing a database connection when viewing a previously working site.

---

<div class="post-metadata">

**Author:** ![soderlind](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/soderlind/32/24675_2.png) [@soderlind](https://community.localwp.com/u/soderlind)\
**Post date:** [September 26, 2018, 11:12pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403/4 "2018-09-26T23:12:37Z")

</div>

Sorry, but no cigar. I get the following when I try to open the new cloned site:

 ![Error%20establishing%20a%20database%20connection%202018-09-27%2001-08-28](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/e/eecd8ab1d7c94a79b14d290f015eb9dd744bef53.png)

and then this pops up again:

 ![error-local](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/3/349477828070935f6c761e2fb46c46867b2f6d85.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:35pm UTC](https://community.localwp.com/t/2-4-1-updating-preferred-environment-fails/8403/5 "2020-08-25T18:35:20Z")

</div>

Closed on August 25, 2020, 6:35pm UTC


