Skip to content

Getting unhelpful error while installing if flutter.io is blocked or if certificate is not recognized #15014

Closed

Description

@kdpuvvadi

Steps to Reproduce

Trying to install Flutter in Windows 10 Machine. Clone the repo and added path and
run flutter doctor it downloaded sdk and getting error. deleted the cache folder in bin and retried but same error.

Logs

same as flutter doctor -V

Flutter Doctor

Updating flutter tool....
CreateProcessW failed 193
CreateProcessW failed 193
CreateProcessW failed 193
%1 is not a valid Win32 application.

  Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

Waiting for 0 seconds, press CTRL+C to quit ...

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Activity

  1. cbracken commented on Mar 1, 2018

    @cbracken
    Member

    @kdpuvvadi thanks for reporting!

    /cc @goderbauer who may be able to provide more insight

  2. goderbauer commented on Mar 1, 2018

    @goderbauer
    Member

    Does C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe Exist? When you execute that in a command prompt, what do you get?

  3. goderbauer commented on Mar 1, 2018

    @goderbauer
    Member

    Is the path to 7za.exe shown in your log the actual path? Or does the real path contain spaces by any chance? On pub’s GitHub there is this report dart-lang/pub#1591, where users saw the same error when they either had spaces in the path or their internet access was blocked by a firewall.

  4. goderbauer commented on Mar 1, 2018

    @goderbauer
    Member

    @nex3 @munificent Any idea why pub is failing to extract the package on Windows with the 7zip that comes bundled with pub?

  5. nex3 commented on Mar 1, 2018

    @nex3

    I'm not sure... I suppose it's possible that the executable is binary-incompatible with their version of Windows for some reason.

  6. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 2, 2018
  7. added this to the milestone on Mar 2, 2018
  8. kdpuvvadi commented on Mar 2, 2018

    @kdpuvvadi
    Author

    @goderbauer that is the real path, no spaces or character in there. and OS is Windows 10 Pro, Version 1709 and build 16299.248. I've checked the with firewall off and also directly connected without hardware firewall

  9. mornes commented on Mar 2, 2018

    @mornes

    IIm having the same issue. Its seem to me like that version is not compatible with Windows 10

  10. mornes commented on Mar 2, 2018

    @mornes

    I had the same issue but got mine sorted. The directory to which my flutter was cloned to had a space. "C:\Users\Mornes Dev\flutter". I changed it to "C:\Dev\flutter" and now everything is working 100% HTH

  11. cbracken commented on Mar 2, 2018

    @cbracken
    Member

    Interesting! Thanks for the additional information @mornes.

    Our integration tests for Linux, macOS, and Windows all run in a directory that includes a space (specifically we use "flutter SDK" as the directory). Verified that the code for testing this on Appveyor is still there.

    To list the differences between the reported case and our bot tests:

    • Space appears in the last path segment on the bots (vs above the flutter SDK dir in the report)
    • We initially clone into a directory with no spaces on the bots, then add a space to the SDK directory. We don't run any flutter commands until after we've added the space though.
    • The first commands we run are bin\flutter.bat config --no-analytics and bin\flutter.bat update-packages vs flutter doctor (I'd have thought this shouldn't make a real difference to the downlods + pub failure though).

    Thanks again for the additional info. This gives us a bit to go off.

  12. Hixie commented on Mar 2, 2018

    @Hixie
    Contributor

    @kdpuvvadi What happens when you run C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe directly in a command prompt?

  13. zoechi commented on Mar 20, 2018

    @zoechi
    Contributor
  14. 24 remaining items

  15. mit-mit commented on May 3, 2018

    @mit-mit
    Member

    @Hixie now that we have downloadable installation bundles, can we close this issue?

  16. Hixie commented on May 3, 2018

    @Hixie
    Contributor

    The bug is that the message is misleading; as far as I am aware that is still the case.

  17. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 24, 2018
  18. zoechi commented on Aug 24, 2018

    @zoechi
    Contributor
  19. PStoner3 commented on May 17, 2019

    @PStoner3

    The last message in this conversation is from Aug 24, 2018. Today, I downloaded flutter_windows_v1.5.4-hotfix.2-stable.zip from https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_v1.5.4-hotfix.2-stable.zip.

    I am trying to evaluate the product for a new Android application that has been proposed by my company.

    I've tried to create a new project in the latest edition of VS Code (v1.34.0) and received this same message:

    Running "flutter packages get" in myfirstflutterapp...
    Got TLS error trying to find package cupertino_icons at https://pub.dartlang.org.

    Also tried the same in Android Studio (Android Studio 3.4
    Build #AI-183.5429.30.34.5452501, built on April 9, 2019
    JRE: 1.8.0_152-release-1343-b01 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0). I had to kill instance of Android Studio (AS). I am assuming AS is having the same issue.

    Are there any other updates for this issue?

  20. thiennhank9 commented on Jul 8, 2019

    @thiennhank9

    I ran cmd below then it worked:
    set NODE_TLS_REJECT_UNAUTHORIZED=0

  21. blasten commented on Aug 6, 2019

    @blasten

    This is fixed on master.

  22. sm-tester commented on Oct 19, 2019

    @sm-tester

    Bug appears on latest stable version on the macOS Catalina

  23. Paul74 commented on Jan 21, 2021

    @Paul74

    Have this issue, I'm browsing pretty much the whole Internet and still can't work it out. My pc is running behind a corporate proxy (credentials required).

    Error is in android studio when launching whatever pub get/upgrade thing:
    Got TLS error trying to find packagewhatever at https://pub.flutter-io.cn.
    pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...

  24. erperejildo commented on Mar 13, 2021

    @erperejildo

    Have this issue, I'm browsing pretty much the whole Internet and still can't work it out. My pc is running behind a corporate proxy (credentials required).

    Error is in android studio when launching whatever pub get/upgrade thing:
    Got TLS error trying to find packagewhatever at https://pub.flutter-io.cn.
    pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...

    exactly same thing. I use the company laptop for which I have Bitdefender installed and cannot even stop it.

    Did you fix it?

  25. erperejildo commented on Mar 13, 2021

    @erperejildo

    This is fixed on master.

    I' already on master but even if try to change branches it fails:

    Screenshot 2021-03-13 at 17 29 11

  26. github-actions commented on Aug 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  27. locked as resolved and limited conversation to collaborators on Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: contributor-productivityTeam-specific productivity, code health, technical debt.dependency: dartDart team may need to help usplatform-windowsBuilding on or for Windows specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions