yarn icon indicating copy to clipboard operation
yarn copied to clipboard

ETIMEOUT 104.16.59.173:443

Open MystK opened this issue 10 years ago • 55 comments

Do you want to request a feature or report a bug? bug

What is the current behavior? cannot to a yarn

If the current behavior is a bug, please provide the steps to reproduce. image

Please mention your node.js, yarn and operating system version. Node 6.7.0 64Bit Windows 10

MystK avatar Oct 12 '16 23:10 MystK

Hi @MystK! Could you please try ping 104.16.59.173 and see if you can reach that IP address?

Daniel15 avatar Oct 13 '16 03:10 Daniel15

Yes! Pingable.

image

MystK avatar Oct 13 '16 20:10 MystK

Hello, with the latest yarn, I will get the same error.

Below is the yarn-error.log

Arguments: 
  c:\Program Files\nodejs\node.exe c:\Program Files\nodejs\node_modules\yarn\bin\yarn.js

PATH: 
  C:\ProgramData\Oracle\Java\javapath;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\users\its\appdata\roaming\nvm;c:\program files\nodejs;c:\programdata\chocolatey\bin;c:\program files\git\cmd;c:\tools\python2;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Bitvise SSH Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft VS Code\bin;D:\dev\dist\apache-maven-3.2.2\bin;C:\Program Files\7-Zip;C:\adb

Yarn version: 
  0.16.1

Node version: 
  6.9.1

Platform: 
  win32 x64

npm manifest: 
  {
    "name": "universal-react-boilerplate",
    "version": "3.0.0",
    "description": "A new Webpack boilerplate with React components and error handling on module and component level.",
    "scripts": {
      "clean": "rimraf build",
      "build:webpack": "webpack --config webpack.config.prod.js",
      "build:webpack:dev": "webpack --config webpack.config.dev.js",
      "build": "npm run clean && npm run build:webpack",
      "build:dev": "npm run clean && npm run build:webpack:dev",
      "start": "cross-env NODE_PATH=source babel-node devServer.js | bunyan",
      "server": "cross-env NODE_PATH=source babel-node source/server/server.js | bunyan",
      "test": "cross-env NODE_PATH=source babel-node source/test/index.js",
      "test:e2e": "cross-env NODE_PORT=3000 NODE_PATH=source babel-node source/test/e2e.js",
      "lint": "eslint --cache .",
      "watch": "watch \"clear && npm run lint -s && npm run test -s\" source",
      "check": "npm run lint && npm run test && npm outdated --depth=0",
      "update": "updtr"
    },
    "engines": {
      "node": ">=4"
    },
    "os": [
      "darwin",
      "linux"
    ],
    "keywords": [
      "react",
      "reactjs",
      "boilerplate",
      "webpack",
      "babel",
      "react-transform"
    ],
    "repository": {
      "type": "git",
      "url": "[email protected]:cloverfield-tools/universal-react-boilerplate.git"
    },
    "devDependencies": {
      "babel-cli": "6.6.5",
      "babel-core": "6.7.7",
      "babel-eslint": "5.0.0",
      "babel-loader": "6.2.4",
      "babel-plugin-react-transform": "2.0.2",
      "babel-plugin-transform-runtime": "6.6.0",
      "babel-preset-es2015": "6.6.0",
      "babel-preset-react": "6.5.0",
      "babel-preset-stage-2": "6.5.0",
      "cheerio": "0.20.0",
      "cross-env": "1.0.7",
      "eslint": "2.4.0",
      "eslint-plugin-react": "4.2.2",
      "estraverse-fb": "1.3.1",
      "nightwatch-autorun": "2.3.1",
      "open": "0.0.5",
      "react-transform-catch-errors": "1.0.2",
      "redbox-react": "1.2.2",
      "rimraf": "2.5.2",
      "supertest": "1.2.0",
      "tap-xunit": "1.3.1",
      "tape": "4.5.1",
      "updtr": "0.1.7",
      "watch": "0.17.1",
      "webpack": "1.12.14",
      "webpack-dev-middleware": "1.5.1"
    },
    "dependencies": {
      "bunyan-request-logger": "1.1.0",
      "connect-cache-control": "1.0.0",
      "express": "4.13.4",
      "react": "0.14.7",
      "react-dom": "0.14.7",
      "react-redux": "4.4.1",
      "react-router": "2.0.1",
      "react-router-redux": "4.0.0",
      "redux": "3.3.1",
      "redux-logger": "2.6.1",
      "redux-thunk": "2.0.1"
    },
    "license": "MIT",
    "bugs": {
      "url": "https://github.com/cloverfield-tools/universal-react-boilerplate/issues"
    },
    "homepage": "https://github.com/cloverfield-tools/universal-react-boilerplate"
  }

yarn manifest: 
  No manifest

bower manifest: 
  No manifest

Lockfile: 
  No lockfile

Trace: 
  Error: connect ETIMEDOUT 104.16.62.173:443
      at Object.exports._errnoException (util.js:1026:11)
      at exports._exceptionWithHostPort (util.js:1049:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)

MystK avatar Oct 22 '16 23:10 MystK

While doing more investigation, I tried all combinations of strict-ssl false and both http and https version of the yarn and npmjs registries.

I noticed in the resource monitor that it does in fact connect, but it stalls after a certain amount of connections. Maybe there are too many connections? image

MystK avatar Oct 23 '16 00:10 MystK

I set up Bash on Windows and am able to successfully install packages. I think we can point to the operating system as the culprit. I am currently on Windows 10.

MystK avatar Oct 23 '16 00:10 MystK

Running into this error on OSX 10.12.0.

jesseobrien avatar Oct 27 '16 18:10 jesseobrien

I'm on OSX 10.11.6 and I'm seeing the same error

sandy-adi avatar Nov 12 '16 10:11 sandy-adi

I'm not sure what the problem is, but with the latest yarn, if I run "yarn" multiple times, it will finish.

CORRECTION: If there is already a yarn.lock file, then I am able to run yarn multiple times for it to work.

MystK avatar Dec 05 '16 01:12 MystK

It has something to do with my network card. I tried hotspotting from my iPhone through USB and was successful. Everything else was similar.

MystK avatar Dec 05 '16 01:12 MystK

I had exactly the same problem. Doing yarn install always ends up with Error connect ETIMEDOUT 104.16.59.173:443. (no yarn.lock file present by the way). Switching to a USB-Network Card fixed it for me.

OS: Windows 10 Node: 6.9.2 Yarn: 0.17.10 Network Card: Intel Centrino Wireless-N 2230 (driver version: 15.16.0.2)

@MystK I wonder what you're network card is

samuba avatar Dec 08 '16 12:12 samuba

I have a "Intel(R) 82579V Gigabit Network Connection"

It is a wired connection.

I also have a ASUS RT-AC68U Router flashed with Merlin. Not sure if that matters.

MystK avatar Dec 09 '16 02:12 MystK

I am having the same problem:

Trace: 
  Error: connect ETIMEDOUT 114.55.80.225:443
      at Object.exports._errnoException (util.js:1026:11)
      at exports._exceptionWithHostPort (util.js:1049:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
C:\Users\pc>ping 114.55.80.225

Pinging 114.55.80.225 with 32 bytes of data:
Reply from 114.55.80.225: bytes=32 time=340ms TTL=99
Reply from 114.55.80.225: bytes=32 time=340ms TTL=99
Reply from 114.55.80.225: bytes=32 time=339ms TTL=99
Reply from 114.55.80.225: bytes=32 time=341ms TTL=99

Ping statistics for 114.55.80.225:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 339ms, Maximum = 341ms, Average = 340ms

C:\Users\pc>ping 114.55.80.225

Pinging 114.55.80.225 with 32 bytes of data:
Reply from 114.55.80.225: bytes=32 time=341ms TTL=99
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 114.55.80.225:
    Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
Approximate round trip times in milli-seconds:
    Minimum = 341ms, Maximum = 341ms, Average = 341ms

C:\Users\pc>ping 114.55.80.225

Pinging 114.55.80.225 with 32 bytes of data:
Request timed out.
Reply from 114.55.80.225: bytes=32 time=348ms TTL=99
Reply from 114.55.80.225: bytes=32 time=349ms TTL=99
Reply from 114.55.80.225: bytes=32 time=349ms TTL=99

Ping statistics for 114.55.80.225:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 348ms, Maximum = 349ms, Average = 348ms

OS: Windows 10 Yarn: 0.16.0 Node: 7.0.0

sqal avatar Dec 12 '16 10:12 sqal

Could this be linked to https://github.com/yarnpkg/yarn/issues/746?

You could have a flaky connection, or high package loss in some moments. Seems that yarn bails out at the first failed attempt. (Ping results from @sqal show high package loss, and my case is the same)

caesarsol avatar Dec 20 '16 10:12 caesarsol

For my case, I highly doubt it's a flaky/packet loss issue. I have a very stable solution, although, a fix for #756, I think, might be a good workaround for this issue if the root cause cannot be determined.

MystK avatar Dec 21 '16 02:12 MystK

alexandra:webassets xistence$ yarn upgrade [email protected]
yarn upgrade v0.18.1
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/ajv-keywords: connect ETIMEDOUT 104.16.62.173:443".
info If you think this is a bug, please open a bug report with the information provided in "/Users/xistence/Projects/fulgent/webassets/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
alexandra:webassets xistence$ ping 104.16.62.173
PING 104.16.62.173 (104.16.62.173): 56 data bytes
64 bytes from 104.16.62.173: icmp_seq=0 ttl=57 time=14.205 ms
64 bytes from 104.16.62.173: icmp_seq=1 ttl=57 time=11.073 ms
64 bytes from 104.16.62.173: icmp_seq=2 ttl=57 time=10.913 ms
64 bytes from 104.16.62.173: icmp_seq=3 ttl=57 time=10.701 ms
64 bytes from 104.16.62.173: icmp_seq=4 ttl=57 time=11.231 ms
64 bytes from 104.16.62.173: icmp_seq=5 ttl=57 time=11.153 ms
^C
--- 104.16.62.173 ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.701/11.546/14.205/1.202 ms

macOS Sierra.

alexandra:webassets xistence$ node --version
v7.4.0
alexandra:webassets xistence$ yarn --version
0.18.1
Trace: 
  Error: connect ETIMEDOUT 104.16.62.173:443
      at Object.exports._errnoException (util.js:1022:11)
      at exports._exceptionWithHostPort (util.js:1045:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)

Even retrying this command over and over doesn't solve the issue for me, I can't currently upgrade any of my packages.

digitalresistor avatar Jan 07 '17 01:01 digitalresistor

I'm just seeing this issue for the first time, but it's definitely just general connectivity in my case, as I see Cloudflare is having a minor service outage right now, according to their status website. In case it isn't clear from prior reports, some of those IP addresses previously reported are Cloudflare IP addresses. Cloudflare's service is utilized by Facebook Yarn for mitigating attacks agains the Yarn package repository, so it seems possible a Cloudflare outage might explain some of the timeouts people are reporting here, especially if the problem clears up when their status website reports "okay."

Less importantly, but possibly helpful to note that my DNS lookup to the Yarn repo also resulted in the previously reported IP address reported, 104.16.62.173, and I am also seeing minor packet loss (3%) pinging to that same IP address.

webavant avatar Jan 16 '17 05:01 webavant

I've found a solution thanks to https://github.com/yarnpkg/yarn/pull/2129

EX: yarn add -D webpack --network-concurrency 1

MystK avatar Feb 13 '17 03:02 MystK

--network-concurrency 1 did not solve the problem for me.

chadfurman avatar Feb 24 '17 10:02 chadfurman

lotus@InfiniteDesktop:~/code/react/1$ yarn global add jest
yarn global v0.18.2
warning No license field
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/jest-config: connect ETIMEDOUT 104.16.61.173:443".
info If you think this is a bug, please open a bug report with the information provided in "/home/lotus/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
lotus@InfiniteDesktop:~/code/react/1$ yarn global add jest
yarn global v0.18.2
warning No license field
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/jest-jasmine2: connect ETIMEDOUT 104.16.59.173:443".
info If you think this is a bug, please open a bug report with the information provided in "/home/lotus/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
lotus@InfiniteDesktop:~/code/react/1$ yarn global add jest
yarn global v0.18.2
warning No license field
[1/4] Resolving packages...
⠠ webidl-conversions@^3.0.0^C
lotus@InfiniteDesktop:~/code/react/1$ yarn global add jest --network-concurrency 1
yarn global v0.18.2
warning No license field
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/jest-environment-jsdom: connect ETIMEDOUT 104.16.60.173:443".
info If you think this is a bug, please open a bug report with the information provided in "/home/lotus/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

chadfurman avatar Feb 24 '17 10:02 chadfurman

Are we still going with "it's Cloudflare's fault" ?

Edit: https://www.cloudflarestatus.com/

chadfurman avatar Feb 24 '17 15:02 chadfurman