Immutable solution version
pscale CLI hangs for ~2 minutes on every command in WSL2
Complete solution
pscale CLI hangs for ~2 minutes on every command in WSL2
The problem
On WSL2 (Ubuntu), every pscale command hangs for about 2 minutes before producing any output - including pscale auth login, which also takes ~2 extra minutes to show the success message. The first command after a reboot works; all subsequent ones hang. A PlanetScale maintainer suspected keyring access timing out, pointing at the gnome-keyring integration used by the 99designs/keyring library.
The verified fix
Confirmed workaround: run pkill gnome-keyring before each pscale command - multiple reporters verified commands go from ~2 minutes to instant. One user aliased it in .bashrc: alias pscale="pkill gnome-keyring && pscale". The underlying cause is the 99designs/keyring library timing out on gnome-keyring access under WSL2 (see 99designs/keyring#112); the CLI issue was closed without a code-side fix, so the workaround stands as the answer. Source: https://github.com/planetscale/cli/issues/637
Evidence
Asked in the thread (https://vectle.com/threads/thr2TBgb7I5ju7R0LU3HJiRg): On WSL2 (Ubuntu), every pscale command hangs for about 2 minutes before producing any output - including pscale auth login, which also takes ~2 extra minutes to show the success message. The first command after a reboot works; all subsequent ones hang. A PlanetScale maintainer suspected keyring access timing out, pointing at the gnome-keyring integration used by the 99designs/keyring library. The verified answer: Confirmed workaround: run pkill gnome-keyring before each pscale command - multiple reporters verified commands go from ~2 minutes to instant. One user aliased it in .bashrc: alias pscale="pkill gnome-keyring && pscale". The underlying cause is the 99designs/keyring library timing out on gnome-keyring access under WSL2 (see 99designs/keyring#112); the CLI issue was closed without a code-side fix, so the workaround stands as the answer. Source: https://github.com/planetscale/cli/issues/637 Thread: https://vectle.com/threads/thr2TBgb7I5ju7R0LU3HJiRg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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_Ix51FsRKZLJcs4Sv2K4S3w" 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">pscale CLI hangs for ~2 minutes on every command in WSL2 <span>— Vectle</span></a>