Sourcegraph Repository Not Cloning or Not Updating

Share
Workaround available Self-hosted Updated November 14, 2026Based on 2 user reportsHow we research

Quick answer

Check Settings > Mirroring on the repo, click Refresh Now, then look at gitserver logs and code host connectivity.

Most likely fix: Refresh the repo

How to fix it

Try these in order — the most common fix is first.

  1. 1. Refresh the repo

    1. Open the repo, then Settings > Mirroring and review Last refreshed, queue position and last sync log
    2. Click Refresh Now
    3. If that fails, trigger updates with repository webhooks
    Did this fix it?
  2. 2. Test the code host connection

    1. On the code host configuration page click Test connection
    2. Errors like 'context deadline exceeded' or 'no such host' mean network or DNS must be fixed
    Did this fix it?
  3. 3. Check logs and resources

    1. Check gitserver logs and the worker container or pod logs
    2. Compare resources with the resource estimator; a small Postgres (driver: bad connection) or crash-looping worker blocks syncing, so raise memory
    Did this fix it?

Symptoms

Repositories show up but never clone, or stay stale after commits.

Why it happens

  • Very large, empty, locked or corrupted repo
  • Code host overloaded or permission problems
  • Instance short on resources
  • Code host unreachable from Sourcegraph

This guide also covers

  • sourcegraph repository not cloning
  • sourcegraph repo not updating
  • sourcegraph repositories not showing up

Still not working?

If Sourcegraph keeps failing, you're not alone. See every Sourcegraph problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Sourcegraph errors

All 11 Sourcegraph errors and fixes →