Skip to content
Snippets Groups Projects
Closed prod: repo-updater: insert: pq: duplicate key value violates unique constraint "repo_external_service_unique_idx"
  • View options
  • prod: repo-updater: insert: pq: duplicate key value violates unique constraint "repo_external_service_unique_idx"

  • View options
  • Closed Issue created by Warren Gifford

    Created by: slimsag

    on Sourcegraph.com we are seeing jump-to-code-host links not appearing. This is due to a query to repo-updater to lookup the repository failing:

    https://sourcegraph.com/github.com/sourcegraph/sourcegraph@ee5cad06b25a2805cfc0d83f703dac6e9e6078d0/-/blob/cmd/frontend/graphqlbackend/externallink/repository.go#L121-131

    (There is a separate issue to make the frontend actually report this error instead of silently not display the link, https://github.com/sourcegraph/sourcegraph/issues/3589)

    This is occurring because the repo lookup request to repo-updater is violating a constraint:

    image

    Trace link: https://app.lightstep.com/sourcegraph-prod/trace?span_guid=23bdf059c3177301&at_micros=1557954611403681#span-29b170085880e1f0

    To reproduce this simply visit any repository on Sourcegraph.com and look for the GraphQL?Repository query's x-trace header, which will be a Lightstep link.

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first