pub get timeout

97 views
Skip to first unread message

Josh Casto

unread,
May 26, 2015, 2:33:30 PM5/26/15
to mi...@dartlang.org
Getting the time-out mentioned in mentioned in the FAQ.  Been happening most of the morning, can someone take a look at it?

pub get
Resolving dependencies...
Downloading csp_fixer 0.1.3...
Timed out after 30.0s while downloading https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz.
This is likely a transient error. Please try again later.
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/io.dart 776  timeout.<fn>
dart:isolate                                                                                           _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run

    pub --trace 'get'

and include the results in a bug report on http://dartbug.com/new.

Günter Zöchbauer

unread,
May 26, 2015, 3:54:24 PM5/26/15
to mi...@dartlang.org
Looks like `pub` is not able to find a set of compatible dependencies. Try to narrow the constraints in `pubspec.yaml`. Do you use any or concrete `>=x.x.x <y.y.y`. `any` often causes this issue.

Natalie Weizenbaum

unread,
May 26, 2015, 4:57:54 PM5/26/15
to General Dart Discussion
This doesn't look like it's caused by version resolution. Pub is downloading the contents of csp_fixer, which means it's found a valid solution. It seems like your network might just be slow.

What happens if you try to download https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz manually?

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Daniel Joyce

unread,
May 26, 2015, 5:49:40 PM5/26/15
to mi...@dartlang.org
Manually via wget works. pub get times out.

Daniel Joyce

unread,
May 26, 2015, 5:49:45 PM5/26/15
to mi...@dartlang.org
Per Josh's post, if you look, pub get has resolved csp_fixer:

Downloading csp_fixer 0.1.3...
Timed out after 30.0s while downloading https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz.

But fails to pull it after 30s. We can manually use wget on the link, and download it, but pub get fails.


On Tue, May 26, 2015 at 12:54 PM, Günter Zöchbauer <gzo...@gmail.com> wrote:

--

Bob Nystrom

unread,
May 26, 2015, 5:53:59 PM5/26/15
to General Dart Discussion
Can you run pub get --verbose and let us know if anything interesting shows up?

Thanks!

- bob

Josh Casto

unread,
May 27, 2015, 11:10:39 AM5/27/15
to mi...@dartlang.org
FINE: Creating /data/jenkins/workspace/dev-edifice-forward-build/workspace/dev-scout-chrome/apps/surveyor/packages/mime pointing to /data/jenkins/.pub-cache/hosted/pub.dartlang.org/mime-0.9.3/lib
FINE: Creating link for package 'when'.
FINE: Creating /data/jenkins/workspace/dev-edifice-forward-build/workspace/dev-scout-chrome/apps/surveyor/packages/when pointing to /data/jenkins/.pub-cache/hosted/pub.dartlang.org/when-0.2.0/lib
FINE: HTTP GET https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz
    | user-agent: Dart pub 1.9.1
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz
    | took 0:00:00.379907
    | x-goog-storage-class: STANDARD
    | last-modified: Thu, 11 Dec 2014 14:46:44 GMT
    | cache-control: public, max-age=3600
    | date: Wed, 27 May 2015 15:05:53 GMT
    | vary: Accept-Encoding
    | x-goog-stored-content-length: 7772160
    | x-goog-hash: crc32c=Sc50zg==,md5=SRl/2mDBFlyRVq0Y2HZLiw==
    | content-type: application/octet-stream
    | x-goog-generation: 1418309204403000
    | server: UploadServer ("Built on May 15 2015 16:38:39 (1431733119)")
    | alternate-protocol: 443:quic,p=1
    | accept-ranges: bytes
    | content-length: 7772160
    | x-goog-stored-content-encoding: identity
    | etag: "49197fda60c1165c9156ad18d8764b8b"
    | x-goog-metageneration: 1
    | expires: Wed, 27 May 2015 16:05:53 GMT
FINE: Extracting .tar.gz stream to /data/jenkins/.pub-cache/_temp/dir7eucDv.
IO  : Spawning "tar --warning=no-unknown-keyword --extract --gunzip --directory /data/jenkins/.pub-cache/_temp/dir7eucDv" in /data/jenkins/workspace/dev-edifice-forward-build/workspace/dev-scout-chrome/apps/surveyor/.
ERR : Timed out after 30.000s while downloading https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz.

    | This is likely a transient error. Please try again later.
FINE: Exception type: TimeoutException
ERR : /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/io.dart 776  timeout.<fn>
    | dart:isolate     
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                        Timer.Timer
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/io.dart 765             timeout
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 189  HostedSource._download.<fn>.<fn>
    | dart:isolate                                                                                                      _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                        _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 188  HostedSource._download.<fn>
    | dart:async                                                                                                        Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 179  HostedSource._download
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 88   HostedSource.downloadToSystemCache.<fn>
    | dart:isolate                                                                                                      _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                       _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 81  HostedSource.downloadToSystemCache
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/cached.dart 51  CachedSource.get
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart 351    _get.<fn>
    | dart:async                                                                                                       Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart 343    _get
    | dart:async                                                                                                       Future.wait
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart 133    Entrypoint.acquireDependencies.<async>
    | dart:isolate                                                                                                     _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                     _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart 115  Entrypoint.acquireDependencies.<async>
    | dart:isolate                                                                                                   _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                         Future.Future.microtask
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart          Entrypoint.acquireDependencies
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command/get.dart 30      GetCommand.run
    | package:args/command_runner.dart 179                                                                               CommandRunner.runCommand.<fn>
    | dart:async                                                                                                         Future.Future.sync
    | package:args/command_runner.dart 132                                                                               CommandRunner.runCommand
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command_runner.dart 122  PubCommandRunner.runCommand.<async>.<fn>
    | dart:async                                                                                                         Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart 98            captureErrors.<fn>
    | package:stack_trace/src/chain.dart 78                                                                              Chain.capture
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart 112           captureErrors
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command_runner.dart 122  PubCommandRunner.runCommand.<async>
    | dart:isolate                                                                                                       _RawReceivePortImpl._handleMessage
ERR : This is an unexpected error. Please run
    |
    |     pub --trace 'get' '--verbose'

This output confirms the previous statement.  I also have tested the wget and can pull down the file correctly and untar it.  I will have to look at what it takes to manually install.

JC

Bob Nystrom

unread,
May 27, 2015, 11:42:26 AM5/27/15
to General Dart Discussion
Strange. And you get this error consistently, right?

Can you try running:

$ pub cache add csp_fixer --v0.1.3 --verbose

Does that succeed? If so, you should be able to run pub get after that since it will now be in your cache. If not, is it failing for the same reason?

Thanks!

- bob


Josh Casto

unread,
May 27, 2015, 11:59:31 AM5/27/15
to mi...@dartlang.org
You had a typo in your command but I figured it out.  :D  Eitherway the problem is the same.  It times out when feeding the input stream to tar.

$ pub cache add csp_fixer --version  0.1.3 --verbose
FINE: Pub 1.9.1
IO  : Get versions from https://pub.dartlang.org/api/packages/csp_fixer.
FINE: HTTP GET https://pub.dartlang.org/api/packages/csp_fixer
    | Accept: application/vnd.pub.v2+json
    | user-agent: Dart pub 1.9.1
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/csp_fixer
    | took 0:00:00.378449
    | cache-control: private
    | transfer-encoding: chunked
    | accept-ranges: none
    | date: Wed, 27 May 2015 15:54:07 GMT
    | vary: Accept-Encoding
    | x-frame-options: SAMEORIGIN
    | content-type: application/json
    | via: iebfn10:26162
    | x-xss-protection: 1; mode=block
    | x-content-type-options: nosniff
    | server: Google Frontend
IO  : Get package from https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz.
MSG : Downloading csp_fixer 0.1.3...
IO  : Created temp directory /data/jenkins/.pub-cache/_temp/dir2NMKkc
    | took 0:00:00.458176

    | x-goog-storage-class: STANDARD
    | last-modified: Thu, 11 Dec 2014 14:46:44 GMT
    | cache-control: public, max-age=3600
    | date: Wed, 27 May 2015 15:54:08 GMT

    | vary: Accept-Encoding
    | x-goog-stored-content-length: 7772160
    | x-goog-hash: crc32c=Sc50zg==,md5=SRl/2mDBFlyRVq0Y2HZLiw==
    | content-type: application/octet-stream
    | x-goog-generation: 1418309204403000
    | server: UploadServer ("Built on May 15 2015 16:38:39 (1431733119)")
    | alternate-protocol: 443:quic,p=1
    | accept-ranges: bytes
    | content-length: 7772160
    | x-goog-stored-content-encoding: identity
    | etag: "49197fda60c1165c9156ad18d8764b8b"
    | x-goog-metageneration: 1
    | expires: Wed, 27 May 2015 16:54:08 GMT
FINE: Extracting .tar.gz stream to /data/jenkins/.pub-cache/_temp/dir2NMKkc.
IO  : Spawning "tar --warning=no-unknown-keyword --extract --gunzip --directory /data/jenkins/.pub-cache/_temp/dir2NMKkc" in /data/jenkins/workspace/dev-edifice-forward-build/workspace/dev-scout-chrome/apps/surveyor/.

ERR : Timed out after 30.000s while downloading https://pub.dartlang.org/packages/csp_fixer/versions/0.1.3.tar.gz.
    | This is likely a transient error. Please try again later.
FINE: Exception type: TimeoutException
ERR : /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/io.dart 776  timeout.<fn>
    | dart:isolate                                                                                           _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                        Timer.Timer
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/io.dart 765             timeout
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 189  HostedSource._download.<fn>.<fn>
    | dart:isolate                                                                                                      _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                        _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 188  HostedSource._download.<fn>
    | dart:async                                                                                                        Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 179  HostedSource._download
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 88   HostedSource.downloadToSystemCache.<fn>
    | dart:isolate                                                                                                      _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                           _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/source/hosted.dart 81      HostedSource.downloadToSystemCache
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command/cache_add.dart 81  CacheAddCommand.run.<fn>.downloadVersion.<fn>

    | dart:isolate                                                                                                         _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                           _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command/cache_add.dart 72  CacheAddCommand.run.<fn>.downloadVersion
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command/cache_add.dart 92  CacheAddCommand.run.<fn>

    | dart:isolate                                                                                                         _RawReceivePortImpl._handleMessage
    | ===== asynchronous gap ===========================
    | dart:async                                                                                                           _Future.then
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command/cache_add.dart 62  CacheAddCommand.run

    | package:args/command_runner.dart 179                                                                                 CommandRunner.runCommand.<fn>
    | dart:async                                                                                                           Future.Future.sync
    | package:args/command_runner.dart 132                                                                                 CommandRunner.runCommand
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command_runner.dart 122    PubCommandRunner.runCommand.<async>.<fn>
    | dart:async                                                                                                           Future.Future.sync
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart 98              captureErrors.<fn>
    | package:stack_trace/src/chain.dart 78                                                                                Chain.capture
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/utils.dart 112             captureErrors
    | /mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/command_runner.dart 122    PubCommandRunner.runCommand.<async>
    | dart:isolate                                                                                                         _RawReceivePortImpl._handleMessage
ERR : This is an unexpected error. Please run
    |
    |     pub --trace 'cache' 'add' 'csp_fixer' '--version' '0.1.3' '--verbose'

    |
    | and include the results in a bug report on http://dartbug.com/new.

Vittorio Ballestra

unread,
May 28, 2015, 11:42:33 AM5/28/15
to mi...@dartlang.org
It turns out was a problem on my machine possibly linked to the auth system (I could not even sudo). 

Vittorio Ballestra

unread,
May 28, 2015, 11:42:33 AM5/28/15
to mi...@dartlang.org
Hello I'm having the same exact behaviour here. Seams a bug on "pub" tools.
It happens with ANY package I try to download. Running with "-verbose" shows the same output : pub is able to locate and retrieve the package but timesout when trying to uncompress .
Reply all
Reply to author
Forward
0 new messages