Skip to content

`failed to list repos with archived label` error when syncing a Bitbucket Data Center code host

Created by: mike-r-mclaughlin

Details

Code host sync fails with:

error":"failed to list repos with archived label: Get \https://bitbucket.net/rest/api/1.0/labels/archived/labeled?REPOSITORY=&limit=1000\: net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

Full logs:

{"SeverityText":"ERROR","Timestamp":1660213485409315516,"InstrumentationScope":"service.ObservedSource","Caller":"repos/observability.go:99","Function":"[github.com/sourcegraph/sourcegraph/internal/repos](http://github.com/sourcegraph/sourcegraph/internal/repos).(*observedSource).ListRepos.func1","Body":"source.list-repos","Resource":{"service.name":"repo-updater","service.version":"3.42.0","[service.instance.id](http://service.instance.id/)":"repo-updater-IIId-xcte5-2rr2s"},"Attributes":{"error":"failed to list repos with archived label: Get \https://bitbucket.net/rest/api/1.0/labels/archived/labeled?REPOSITORY=&limit=1000\: net/http: request canceled (Client.Timeout exceeded while awaiting headers)"}}
{"SeverityText":"ERROR","Timestamp":1660213485409709442,"InstrumentationScope":"service.syncer","Caller":"repos/syncer.go:600","Function":"[github.com/sourcegraph/sourcegraph/internal/repos](http://github.com/sourcegraph/sourcegraph/internal/repos).(*Syncer).SyncExternalService","Body":"error from codehost","Resource":{"service.name":"repo-updater","service.version":"3.42.0","[service.instance.id](http://service.instance.id/)":"repo-updater-IIId-xcte5-2rr2s"},"Attributes":{"svc":{"name":"III Cluster09 - Bitbucket Server","id":3},"seen":0,"error":"failed to list repos with archived label: Get \https://bitbucket.net/rest/api/1.0/labels/archived/labeled?REPOSITORY=&limit=1000\: net/http: request canceled (Client.Timeout exceeded while awaiting headers)"}}

Bitbucket server versions:

  • 5.16.3
  • 7.21.0

This seems to block syncing for the code host.

/cc @jplahn @ryphil