Pkg: Always downloading failure. Can I download it manually?

Created on 11 May 2018  路  7Comments  路  Source: vercel/pkg

> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 2%
> Error! ESOCKETTIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [=================   ] 85%
> Error! ESOCKETTIMEDOUT
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [=                   ] 4%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 0%
> Error! ETIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [                    ] 0%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 0%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 1%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 0%
> Error! ETIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [                    ] 1%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 0%
> Error! ETIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [=====               ] 23%
> Error! ESOCKETTIMEDOUT
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [=                   ] 6%
> Error! ESOCKETTIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 0%
> Error! ETIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [                    ] 0%
> Error! ESOCKETTIMEDOUT
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 2%^C
localhost:automation-config fan$ pkg -t node8-linux index.js
> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-linux-x64     [                    ] 1%
> Error! ESOCKETTIMEDOUT
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-linux-x64"}
  fetched-v8.9.0-linux-x64     [==                  ] 10%
> Error! ESOCKETTIMEDOUT

Most helpful comment

Hello,
I do pgk-fetch just before pkg build in docker and that's fixed my problem

pkg-fetch node10 linux x64 \
&& pkg app.js -t node10-linux-x64

All 7 comments

+1
I have faced the same problem.

Download it from here https://github.com/zeit/pkg-fetch/releases and place it to the .pkg-cache directory.

It does not work I put "uploaded-v2.5-node-v8.11.3-win-x64" in .pkg cache but it is still failing.

pkg index.js --targets node8

[email protected]
Fetching base Node.js binaries to PKG_CACHE_PATH

Error! tunneling socket could not be established, statusCode=407
Asset not found by direct link:
{"tag":"v2.5","name":"uploaded-v2.5-node-v8.11.3-win-x64"}
Error! tunneling socket could not be established, statusCode=407

Path for me is ~/.pkg-cache/v2.5/fetched-v9.2.1-linux-x64 on arch linux.

Hello,
I do pgk-fetch just before pkg build in docker and that's fixed my problem

pkg-fetch node10 linux x64 \
&& pkg app.js -t node10-linux-x64

It does not work I put "uploaded-v2.5-node-v8.11.3-win-x64" in .pkg cache but it is still failing.

pkg index.js --targets node8

[email protected]
Fetching base Node.js binaries to PKG_CACHE_PATH

Error! tunneling socket could not be established, statusCode=407
Asset not found by direct link:
{"tag":"v2.5","name":"uploaded-v2.5-node-v8.11.3-win-x64"}
Error! tunneling socket could not be established, statusCode=407

maybe you should change the file name to "built-${node-version}-${sys}-${arc}",such as "built-v12.2.0-linux-x64"

It should be noted that pkg-fetch must be installed separately:

https://github.com/zeit/pkg-fetch

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ksmithut picture ksmithut  路  4Comments

ByeongYeon picture ByeongYeon  路  4Comments

erikd picture erikd  路  3Comments

ndrantotiana picture ndrantotiana  路  4Comments

asaf050 picture asaf050  路  3Comments