Site not building on latest update


(Zack) #1

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! :smiley:
https://pastebin.com/pzFwi0JA


(Alan Tan) #2

@joffreyjaffeux Maybe the migration needs some sort of guard if the record already exists?

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

(Joffrey Jaffeux) #4

This should do it:


(Jeff Atwood) closed #5