Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub get fails under WSL after ~4 minutes #2260

Closed
mindplay-dk opened this issue Nov 16, 2019 · 4 comments
Closed

pub get fails under WSL after ~4 minutes #2260

mindplay-dk opened this issue Nov 16, 2019 · 4 comments
Labels
closed-cannot-reproduce Closed as we were unable to reproduce the reported issue needs-info Additional information needed from the issue author

Comments

@mindplay-dk
Copy link

Environment

  • pub version: 2.6.1
  • OS version: Windows 10.0.18362 N/A Build 18362 running Ubuntu 16.04.6 LTS under WSL.
  • Are you using the Chinese community mirror or a corporate firewall? No

Problem

Running pub get times out after about four minutes of inactivity:

$ pub get
Resolving dependencies... (4:00.5s)
Connection closed while receiving data

Here's my pubspec.yaml:

name: server_test
description: A web server built using the shelf package.

environment:
  sdk: '>=2.5.0 <3.0.0'

dependencies:
  args: ^1.5.0
  shelf: ^0.7.5
  shelf_router: ^0.7.1
  image: ^2.1.8
  crypto: ^2.1.3

dev_dependencies:
  pedantic: ^1.8.0
  jaguar_hotreload: ^2.0.2
  test: ^1.9.4

Running pub spec with the Windows binaries works fine - would expect the same with the Linux version under WSL.

It runs for about four minutes, then quits - no .packages or .dart_tools appears in the project folder, as it does during pub get under Windows.

Side note: I've been unable to get hot reloading to work under Windows (see here) and that is my only reason for trying the Linux build - I wanted to see if that issue was platform-related.

May be related to #1894.

--trace output

---- Log transcript ----
FINE: Pub 2.6.1
SLVR: fact: server_test is 0.0.0
SLVR: derived: server_test
SLVR: fact: server_test depends on crypto ^2.1.3
SLVR: fact: server_test depends on shelf_router ^0.7.1
SLVR: fact: server_test depends on shelf ^0.7.5
SLVR: fact: server_test depends on args ^1.5.0
SLVR: fact: server_test depends on image ^2.1.8
SLVR: fact: server_test depends on test ^1.9.4
SLVR: fact: server_test depends on jaguar_hotreload ^2.0.2
SLVR: fact: server_test depends on pedantic ^1.8.0
SLVR:   selecting server_test
SLVR:   derived: pedantic ^1.8.0
SLVR:   derived: jaguar_hotreload ^2.0.2
SLVR:   derived: test ^1.9.4
SLVR:   derived: image ^2.1.8
SLVR:   derived: args ^1.5.0
SLVR:   derived: shelf ^0.7.5
SLVR:   derived: shelf_router ^0.7.1
SLVR:   derived: crypto ^2.1.3
IO  : Describe package at https://pub.dartlang.org/api/packages/pedantic/versions/1.8.0%2B1.
IO  : HTTP GET https://pub.dartlang.org/api/packages/pedantic/versions/1.8.0%2B1
    | Accept: application/vnd.pub.v2+json
    | X-Pub-OS: linux
    | X-Pub-Command: get
    | X-Pub-Session-ID: C3C50BB6-5A40-4288-AADA-89B62332BBE7
    | X-Pub-Reason: dev
    | user-agent: Dart pub 2.6.1
IO  : HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/pedantic/versions/1.8.0%2B1
    | took 0:00:00.504057
    | transfer-encoding: chunked
    | date: Sat, 16 Nov 2019 13:28:26 GMT
    | content-encoding: gzip
    | vary: Accept-Encoding
    | strict-transport-security: max-age=31536000; preload
    | via: 1.1 google
    | content-type: application/json
    | x-frame-options: SAMEORIGIN
    | x-xss-protection: 1; mode=block
    | x-content-type-options: nosniff
    | server: dart:io with Shelf
SLVR: Version solving took 0:04:00.586213 seconds.
    | Tried 1 solutions.
FINE: Resolving dependencies finished (4:00.5s).
ERR : Connection closed while receiving data
FINE: Exception type: ClientException
FINE: package:pub/src/source/hosted.dart 362:7    BoundHostedSource._throwFriendlyError
    | package:pub/src/source/hosted.dart 204:7    BoundHostedSource.describeUncached
    | ===== asynchronous gap ===========================
    | dart:async                                  Future.catchError
    | package:pub/src/utils.dart 109:52           captureErrors.<fn>
    | package:stack_trace                         Chain.capture
    | package:pub/src/utils.dart 122:11           captureErrors
    | package:pub/src/command_runner.dart 171:13  PubCommandRunner.runCommand
---- End log transcript ----
@jonasfj
Copy link
Member

jonasfj commented Nov 18, 2019

See also #1894.

@sigurdm
Copy link
Contributor

sigurdm commented Feb 13, 2023

Can you still reproduce this?

@sigurdm sigurdm added the needs-info Additional information needed from the issue author label Feb 13, 2023
@mindplay-dk
Copy link
Author

Sorry, not using Dart at the moment.

@sigurdm sigurdm added the closed-cannot-reproduce Closed as we were unable to reproduce the reported issue label Feb 21, 2023
@sigurdm
Copy link
Contributor

sigurdm commented Feb 21, 2023

Closing for now.

@sigurdm sigurdm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-cannot-reproduce Closed as we were unable to reproduce the reported issue needs-info Additional information needed from the issue author
Projects
None yet
Development

No branches or pull requests

3 participants