-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pscale
hangs for 2 minutes when running in WSL2
#637
Comments
Just chiming in to say that I'm observing this issue as well in WSL2, running the same version of Ubuntu but using
This issue isn't really a blocker for me because all of the commands work eventually, but it does make demoing Planetscale for my team pretty painful. |
Also having this same behaviour with First command runs as normal. Subsequent commands hang for ~2 minutes before doing anything. |
I haven't been able to recreate this yet. Our suspicion is that this has to do with keyring access. If someone here gets a chance, could you try running Related issue: 99designs/keyring#112 |
@mscoutermarsh I can confirm that in my instance, this worked: gurlr on main [✘!?] is 📦 v0.1.0 via ⬢ v16.20.0 took 4s
➜ time pscale --help
<snip output>
pscale --help 0.01s user 0.00s system 0% cpu 2:00.11 total
gurlr on main [✘!?] is 📦 v0.1.0 via ⬢ v16.20.0 took 2m 0s
➜ pkill gnome-keyring
gurlr on main [✘!?] is 📦 v0.1.0 via ⬢ v16.20.0
➜ time pscale --help
<snip output>
pscale --help 0.01s user 0.00s system 0% cpu 3.215 total |
@itsjxck wow, thank you. Will keep looking into the keyring then. |
Thanks for looking into this! I can confirm the same behavior with Killing it after each |
That partially solves the problem for me. It reduced the time from four minutes down to two minutes. Apparently there is something else going on too.
|
Great info, thank you. |
@mscoutermarsh, if there is other information that would be helpful ... let me know. Also, if the source code is available (is it open source?), I would be willing to run it in a debugger. Um. NVM, I see the code is here, in this repo. Duh. |
@iambillmccann That'd be incredible! No one on our team has been able to reproduce it just yet. We believe it's likely timing out when accessing the keyring here: Line 214 in 37460ef
Or it may be when reading/writing it. Line 237 in 37460ef
|
Fwiw, I don't think this issue is just related, but it's exactly this problem that we're hitting here. @iambillmccann You probably end up debugging that package when following the bread crumbs. But if you have any information for us, or for them that would be amazing! |
I'm having the same issue. Running If there is anything I could help you debugging let me know. I've put an alias in my
|
Hi!
I noticed a strange behavior when running
pscale
in WSL2.pscale_0.131.0_linux_amd64.deb
Ubuntu 20.04.6 LTS
Any command will hang for 2 minutes before any output:
Running
pscale auth login
will take 2 minutes until a browser window with the (correct) code is opened and then another ~2 minutes until a success message is shown.I cannot connect to any database or do any development work in WSL2.
Happy to debug this further with some guidance.
The text was updated successfully, but these errors were encountered: