# Site not building on latest update

**URL:** <https://meta.discourse.org/t/site-not-building-on-latest-update/111647>\
**Category:** Support\
**Created:** [March 15, 2019, 3:23am UTC](https://meta.discourse.org/t/site-not-building-on-latest-update/111647 "2019-03-15T03:23:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zelakto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zelakto/32/119848_2.png) [@Zelakto](https://meta.discourse.org/u/Zelakto)\
**Post date:** [March 15, 2019, 3:23am UTC](https://meta.discourse.org/t/site-not-building-on-latest-update/111647/1 "2019-03-15T03:23:03Z")

</div>

Hey there! Yesterday I tried upgrading my forum with the built in upgrader. During the upgrade, it failed, and I tried resetting the upgrade and trying again. Doing so broke some CSS elements on the site, so I tried rebuilding via the console. Unfortunately this didn’t fix anything, and I’ve taken these following steps:

1. Removing all plugins from `app.yml`.
2. Running `./launcher cleanup`.
3. Running `./discourse-doctor`.

Here’s all I can pull from my console, if there’s a spot dedicated to logs I’ll happily pull from there. Let me know if there’s anything I can do to help troubleshoot the problem any further! 😃  
[https://pastebin.com/pzFwi0JA](https://pastebin.com/pzFwi0JA)

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [March 15, 2019, 3:49am UTC](https://meta.discourse.org/t/site-not-building-on-latest-update/111647/2 "2019-03-15T03:49:04Z")

</div>

@j.jaffeux Maybe the migration needs some sort of guard if the record already exists?

```plaintext
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "associated_accounts_provider_uid"
DETAIL: Key (provider_name, provider_uid)=(instagram, 464828504) already exists.
: INSERT INTO user_associated_accounts (
  provider_name,
  provider_uid,
  user_id,
  info,
  last_used,
  created_at,
  updated_at
) SELECT
  'instagram',
  instagram_user_id,
  user_id,
  json_build_object('nickname', screen_name),
  updated_at,
  created_at,
  updated_at
FROM instagram_user_infos

```

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [March 15, 2019, 11:27am UTC](https://meta.discourse.org/t/site-not-building-on-latest-update/111647/4 "2019-03-15T11:27:17Z")

</div>

This should do it:

[https://github.com/discourse/discourse/pull/7178](https://github.com/discourse/discourse/pull/7178)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [March 16, 2019, 12:29am UTC](https://meta.discourse.org/t/site-not-building-on-latest-update/111647/5 "2019-03-16T00:29:15Z")

</div>


