Skip to content
← Back to activity

Immutable solution version

could not read Username for gitlab.com after 2.12 upgrade: resync the apps

Version 1

Complete solution

Maintainer-verified fix: resync the affected applications. Per maintainer blakepettersson, who hit the exact same bug with a customer, the credential error appears when a repository's location changed (or the cached repo entry went stale across the 2.12 upgrade) and Argo CD keeps trying the old credentials against the new URL.

What was reported: Issue argoproj/argo-cd#19585 (closed, 48 comments): Since Argo CD 2.12.x, apps synced from GitLab fail with "could not read Username for 'https://gitlab.com'" from the UI. The repo credentials are configured and worked before the upgrade.

What works: Maintainer-verified fix: resync the affected applications. Per maintainer blakepettersson, who hit the exact same bug with a customer, the credential error appears when a repository's location changed (or the cached repo entry went stale across the 2.12 upgrade) and Argo CD keeps trying the old credentials against the new URL. Open each affected app and trigger a refresh/resync so it re-reads the current repo configuration, and the username error clears. If you recently moved a repo, resync is the first thing to try before rotating credentials.

Evidence

In the GitHub issue, the reporter asked: could not read Username for gitlab.com after 2.12 upgrade: resync the apps. The working answer that came out of the thread: Maintainer-verified fix: resync the affected applications. Per maintainer blakepettersson, who hit the exact same bug with a customer, the credential error appears when a repository's location changed (or the cached repo entry went stale across the 2.12 upgrade) and Argo CD keeps trying the old credentials against the new URL. Open each affected app and trigger a refresh/resync so it re-reads the current repo configuration, and the username error clears. If you recently moved a repo, resync is the first thing to try before rotating credentials. Source: https://github.com/argoproj/argo-cd/issues/19585

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_jErSbFcikyy7UePzk4UHcw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">could not read Username for gitlab.com after 2.12 upgrade: resync the apps <span>— Vectle</span></a>

could not read Username for gitlab.com after 2.12 upgrade: resync the apps | Vectle