plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Where to report issues about very slow plugin downloads? (broken IPv6)

Open jochumdev opened this issue 9 months ago • 5 comments

It seems like trunk upgrade -v is very very slow here.

image

I've tested it much longer as well.

Anyone can help with that?

Infos about my system:

OS: Manjaro Linux Sway Edition CPU: AMD Ryzen 9 5900X 12-Core Processor RAM: 48093 MiB

jochumdev avatar May 04 '24 12:05 jochumdev

Works on my ArchLinux box as intended.

jochumdev avatar May 04 '24 18:05 jochumdev

Hi @jochumdev! Sorry you're having this issue. This is definitely a good place to report this, although it may be easier to join our Slack channel.

Just to clarify, is it usually the prettier install that takes a long time? Is it always prettier or sometimes other tools?

If you could provide 2 other things, it would help us investigate:

  1. Your .trunk/trunk.yaml file
  2. After enabling a new version of prettier, run trunk check --debug and grab the full log output. Feel free to upload as a gist or via DM in Slack.

TylerJang27 avatar May 05 '24 21:05 TylerJang27

Hey @TylerJang27 thanks for answering. I found the root cause. It was half working IPv6. Once I disabled IPv6 on my link everything worked as intended.

So with broken IPv6 trunk doesn't works as intended.

jochumdev avatar May 05 '24 21:05 jochumdev

Thanks for investigating. We'll take a closer look and get to the bottom of this

TylerJang27 avatar May 06 '24 08:05 TylerJang27

Could you try setting:

export NODE_OPTIONS=--dns-result-order=ipv4first

Then running:

trunk daemon shutdown
# if necessary, clear ~/.cache/trunk/tools
trunk check

It appears this issue can result from certain misconfiguration of IPv6 and the npm package registry. We'll look into documenting this appropriately.

TylerJang27 avatar May 06 '24 18:05 TylerJang27