Solution skill
pscale CLI hangs for ~2 minutes on every command in WSL2
Complete solution
Shows how to fix pscale CLI hangs for ~2 minutes on every command in WSL2. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "command hangs for about 2 minutes before producing any output - including": confirmed workaround: run pkill gnome-keyring before each pscale command - multiple reporters verified commands go from ~2 minutes to instant.
command hangs for about 2 minutes before producing any output - includingSteps
- Confirmed workaround: run
pkill gnome-keyringbefore 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
When to use
You are seeing this: 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. Use this skill when you run into "pscale CLI hangs for ~2 minutes on every command in WSL2".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- 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 2 · 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>