Was just struggling for a second trying to deploy an updated version of my app with Webpacker 2.0.
Right when assets were precompiling and yarn was being installed, I got a time out.
This happened twice in a row with Webpacker 2.0, but it deployed flawlessly when I downgraded back to 1.2.
Is this a bizarre error or am I overlooking something?
...
Removing railties (5.1.0)
Removing activerecord (5.1.0)
Removing actionview (5.1.0)
Removing devise (a62faa2c8258)
-----> Installing node-v6.10.0-linux-x64
-----> Installing yarn-0.22.0
!
! Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://yarnpkg.com/downloads/0.22.0/yarn-v0.22.0.tar.gz -s -o - | tar zxf - dist' failed unexpectedly:
!
! gzip: stdin: unexpected end of file
! tar: Child returned status 1
! tar: Error is not recoverable: exiting now
!
/app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/shell_helpers.rb:49:in `run!': Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://yarnpkg.com/downloads/0.22.0/yarn-v0.22.0.tar.gz -s -o - | tar zxf - dist' failed unexpectedly: (LanguagePack::Fetcher::FetchError)
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
...
@pbmarcano From logs it seems like heroku fails to install yarn (perhaps an intermittent network problem). Doesn't seem like it's related to webpacker though 馃憤
All I know is that downgrading webpacker to 1.2 solved the issue - yarn installed fine. When I upgraded again to 2.0 it failed to install again...
Could just be heroku gremlins making me think it's related 馃檮
@schneems can we get a second opinion from you on this?
I wonder if it's an issue with the heroku region or particular instance your app is running on.
I have deployed a rails 5.0.2 app with webpacker today to a fresh EU heroku app, yarn installs without issue.
An obvious difference is Heroku installs yarn 0.24.5 for me.
Is your node build pack before ruby?
$ heroku buildpacks -r prod
=== Buildpack URLs
1. heroku/nodejs
2. heroku/ruby
Build log
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 6.9.5
engines.npm (package.json): unspecified (use default)
Downloading and installing node 6.9.5...
Using default npm version: 3.10.10
Resolving yarn version (latest) via semver.io...
Downloading and installing yarn (0.24.5)...
Installed yarn 0.24.5
-----> Restoring cache
Skipping cache restore (new-signature)
-----> Building dependencies
Installing node modules (yarn.lock)
yarn install v0.24.5
warning [email protected]: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 41.93s.
Likely related to this https://status.heroku.com/incidents/1169
thanks @fabn 馃憤 Closing this since it's unrelated
Most helpful comment
Likely related to this https://status.heroku.com/incidents/1169