-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Install of esp-idf-tools-setup-2.3.exe fails under Windows 10 exit code -2 (IDFGH-4112) #5979
Comments
The installer fails when extracting zipped ESP-IDF repository:
Exit code 2 is a fatal error in 7zip, but no more information is provided on the reason. The repository size is almost 500 MB. Is it possible that you do not have enough space on your drive? |
@krzychb I don't think that's the issue, I have 50 GB available on C: at the moment. Thanks for the suggestion though. I do have 7zip installed anyway, but I presume the installer uses its own version. I can extract the repository manually, but I wouldn't know where to go from there. |
@s-marley Thanks for reporting, will prepare a fix soon. |
@s-marley Could you please try again with this installer http://dl.espressif.com/dl/esp-idf-tools-setup-2.3-pathfix.exe? (if it doesn't work, please upload the resulting error log) |
@igrr I'm afraid it failed again with the same error. The (hopefully) useful bit of the log is posted below. If you need the full log, it's on pastebin.
Thank you for looking into this for me. |
@s-marley sorry that the fix didn't work! I thought that the error was happening because the path to the temporary directory contained spaces, and wasn't correctly quoted on the command line. However it looks like 7za.exe can not start... Could you please try the following?
|
Hi @igrr and sorry for the delay. I've done as requested, and it seems to run. I asked it to do a benchmark, just to make sure it was funtioning. Image below: |
It seems like in the last case you were running the older command, where the destination path was not quoted. The version of the installer with quoting fix produced a slightly different command: |
Confirmed. The problem is also present in Online Installer v 2.7. |
One other workaround based on changing environment variable TMP which is used for temporary directory:
Please note that there might be an environment variable TEMP which does not have effect on installer. |
* tools: rename tool idf-curator to idf-env * tests: add docker-compose for testing installer on Windows images * tools: wrap 7za call in quotes * closes espressif/esp-idf#5979
@s-marley Problem caused by white character in Windows user's home is solved. Path to 7za.exe is now closed in quotes. Please download updated version of installer 2.7 from: https://dl.espressif.com/dl/esp-idf/ Solved by commit: espressif/idf-installer@cad8a7c |
Thanks for reporting, feel free to reopen. |
Environment
git describe --tags
to find it): 4.1xtensa-esp32-elf-gcc --version
to find it): N/AProblem Description
Running esp-idf-tools-setup-2.3.exe fails to complete the installation with exit code -2. I have tried with 4.1, 4.0 and one of the 3.x branches, and get the same error. I have re-downloaded and attempted again with same result. I have rebooted numerous times.
Expected Behavior
Installer succeeds
Actual Behavior
Installer fails with exit code -2
Steps to reproduce
Debug Logs
Install log below:
The text was updated successfully, but these errors were encountered: