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

Install of esp-idf-tools-setup-2.3.exe fails under Windows 10 exit code -2 (IDFGH-4112) #5979

Closed
s-marley opened this issue Oct 14, 2020 · 14 comments
Labels
Platform: Windows issues pertain to Windows Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@s-marley
Copy link

s-marley commented Oct 14, 2020

Environment

  • Development Kit: N/A
  • Kit version (for WroverKit/PicoKit/DevKitC): N/A
  • Module or chip used: N/A
  • IDF version (run git describe --tags to find it): 4.1
  • Build System: N/A
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): N/A
  • Operating System: Windows 10 v2004
  • (Windows only) environment type: N/A
  • Using an IDE?: No, can't install
  • Power Supply: N/A

Problem 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

  1. Run esp-idf-tools-setup-2.3.exe
  2. Accept defaults for all options
  3. Installer installs Python and Git, Dowloads and extracts IDF Tools 4.1
  4. Towards end of install process, installer fails with exit code -2

Debug Logs

Install log below:

2020-10-14 20:20:52.726   Log opened. (Time zone: UTC+01:00)
2020-10-14 20:20:52.726   Setup version: Inno Setup version 6.0.2 (u)
2020-10-14 20:20:52.726   Original Setup EXE: E:\Desktop\esp-idf-tools-setup-2.3.exe
2020-10-14 20:20:52.727   Setup command line: /SL5="$306DC,350580993,721408,E:\Desktop\esp-idf-tools-setup-2.3.exe" 
2020-10-14 20:20:52.727   Windows version: 10.0.19041  (NT platform: Yes)
2020-10-14 20:20:52.727   64-bit Windows: Yes
2020-10-14 20:20:52.727   Processor architecture: x64
2020-10-14 20:20:52.727   User privileges: None
2020-10-14 20:20:52.727   Administrative install mode: No
2020-10-14 20:20:52.727   Install mode root key: HKEY_CURRENT_USER
2020-10-14 20:20:52.728   64-bit install mode: Yes
2020-10-14 20:20:52.731   Created temporary directory: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp
2020-10-14 20:20:52.736   -- DLL function import --
2020-10-14 20:20:52.736   Function name: idpAddFile
2020-10-14 20:20:52.736   DLL name: files:idp.dll
2020-10-14 20:20:52.736   Extracting temporary file: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.747   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.747   Importing the DLL function.
2020-10-14 20:20:52.797   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.797   -- DLL function import --
2020-10-14 20:20:52.797   Function name: idpAddFileComp
2020-10-14 20:20:52.797   DLL name: files:idp.dll
2020-10-14 20:20:52.797   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.797   Importing the DLL function.
2020-10-14 20:20:52.797   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.797   -- DLL function import --
2020-10-14 20:20:52.797   Function name: idpAddMirror
2020-10-14 20:20:52.797   DLL name: files:idp.dll
2020-10-14 20:20:52.797   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.797   Importing the DLL function.
2020-10-14 20:20:52.797   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.797   -- DLL function import --
2020-10-14 20:20:52.797   Function name: idpAddFtpDir
2020-10-14 20:20:52.797   DLL name: files:idp.dll
2020-10-14 20:20:52.797   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.797   Importing the DLL function.
2020-10-14 20:20:52.797   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.797   -- DLL function import --
2020-10-14 20:20:52.797   Function name: idpAddFtpDirComp
2020-10-14 20:20:52.797   DLL name: files:idp.dll
2020-10-14 20:20:52.797   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.797   Importing the DLL function.
2020-10-14 20:20:52.797   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.797   -- DLL function import --
2020-10-14 20:20:52.797   Function name: idpClearFiles
2020-10-14 20:20:52.797   DLL name: files:idp.dll
2020-10-14 20:20:52.797   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpFilesCount
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpFtpDirsCount
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpFileDownloaded
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpFilesDownloaded
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpDownloadFile
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpDownloadFiles
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpDownloadFilesComp
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpDownloadFilesCompUi
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.798   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.798   Importing the DLL function.
2020-10-14 20:20:52.798   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.798   -- DLL function import --
2020-10-14 20:20:52.798   Function name: idpStartDownload
2020-10-14 20:20:52.798   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpStopDownload
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetLogin
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetProxyMode
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetProxyName
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetProxyLogin
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpConnectControl
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpAddMessage
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetInternalOption
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.799   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.799   Importing the DLL function.
2020-10-14 20:20:52.799   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.799   -- DLL function import --
2020-10-14 20:20:52.799   Function name: idpSetDetailedMode
2020-10-14 20:20:52.799   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpSetComponents
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpReportError
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpTrace
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpAddFileSize
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpAddFileSize
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpGetFileSize
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: idpGetFilesSize
2020-10-14 20:20:52.800   DLL name: files:idp.dll
2020-10-14 20:20:52.800   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idp.dll
2020-10-14 20:20:52.800   Importing the DLL function.
2020-10-14 20:20:52.800   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.800   -- DLL function import --
2020-10-14 20:20:52.800   Function name: proc_start
2020-10-14 20:20:52.800   DLL name: files:cmdlinerunner.dll
2020-10-14 20:20:52.800   Extracting temporary file: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\cmdlinerunner.dll
2020-10-14 20:20:52.807   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\cmdlinerunner.dll
2020-10-14 20:20:52.807   Importing the DLL function.
2020-10-14 20:20:52.821   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.821   -- DLL function import --
2020-10-14 20:20:52.821   Function name: proc_get_exit_code
2020-10-14 20:20:52.821   DLL name: files:cmdlinerunner.dll
2020-10-14 20:20:52.821   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\cmdlinerunner.dll
2020-10-14 20:20:52.821   Importing the DLL function.
2020-10-14 20:20:52.821   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.821   -- DLL function import --
2020-10-14 20:20:52.821   Function name: proc_get_output
2020-10-14 20:20:52.821   DLL name: files:cmdlinerunner.dll
2020-10-14 20:20:52.821   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\cmdlinerunner.dll
2020-10-14 20:20:52.821   Importing the DLL function.
2020-10-14 20:20:52.821   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.821   -- DLL function import --
2020-10-14 20:20:52.821   Function name: proc_end
2020-10-14 20:20:52.821   DLL name: files:cmdlinerunner.dll
2020-10-14 20:20:52.821   Dest DLL name: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\cmdlinerunner.dll
2020-10-14 20:20:52.821   Importing the DLL function.
2020-10-14 20:20:52.821   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.821   -- DLL function import --
2020-10-14 20:20:52.821   Function name: SetEnvironmentVariableW
2020-10-14 20:20:52.821   DLL name: kernel32.dll
2020-10-14 20:20:52.821   Dest DLL name: kernel32.dll
2020-10-14 20:20:52.821   Importing the DLL function.
2020-10-14 20:20:52.821   Successfully imported the DLL function. Delay loaded? No
2020-10-14 20:20:52.913   Found link in "For more infojects/esp-idf/en/latest/versions.html": "https://docs.espressif.com/projects/esp-idf/en/latest/versions.html"
2020-10-14 20:20:55.918   OnPythonPagePrepare
2020-10-14 20:20:55.919   In -2147483647\Software\Python\PythonCore
2020-10-14 20:20:55.919   In -2147483647\Software\Python\PythonCore\3.7
2020-10-14 20:20:55.919   Adding Python version=3.7 name=Python 3.7 (64-bit) executable=C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\python.exe
2020-10-14 20:20:55.919   Nothing found in -2147483646\Software\Python
2020-10-14 20:20:55.919   Nothing found in -2147483646\Software\Wow6432Node\Python
2020-10-14 20:20:56.929   OnPythonPageValidate index=0
2020-10-14 20:20:56.929   OnPythonPageValidate: PythonPath=C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\ PythonExecutablePath=C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\python.exe
2020-10-14 20:20:56.937   OnGitPagePrepare
2020-10-14 20:20:57.153   Git path: C:\Program Files\Git\cmd\git.exe
2020-10-14 20:20:57.153   Running /C "C:\Program Files\Git\cmd\git.exe" --version >gitver.txt
2020-10-14 20:20:57.260   Git version: 2.28.0.windows.1
2020-10-14 20:20:57.260   Adding Git version=2.28.0.windows.1 name=2.28.0.windows.1 executable=C:\Program Files\Git\cmd\git.exe
2020-10-14 20:20:58.570   OnGitPageValidate index=0
2020-10-14 20:20:58.577   OnIDFPagePrepare
2020-10-14 20:21:00.662   OnIDFPageValidate index=0
2020-10-14 20:21:00.670   OnIDFDownloadPagePrepare
2020-10-14 20:21:01.939   Downloaded https://dl.espressif.com/dl/esp-idf/idf_versions.txt to C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\idf_versions.txt
2020-10-14 20:21:01.943   Versions count: 8
2020-10-14 20:21:01.943   Version 0: v4.1
2020-10-14 20:21:01.943   Version 1: v4.0.1
2020-10-14 20:21:01.944   Version 2: v3.3.4
2020-10-14 20:21:01.944   Version 3: release/v4.2
2020-10-14 20:21:01.944   Version 4: release/v4.1
2020-10-14 20:21:01.944   Version 5: release/v4.0
2020-10-14 20:21:01.945   Version 6: release/v3.3
2020-10-14 20:21:01.945   Version 7: master
2020-10-14 20:21:03.249   OnIDFDownloadPageValidate index=0
2020-10-14 20:21:20.105   Checking PSMODULEPATH for Windows Defender module...
2020-10-14 20:21:20.105   CheckWinDefenderAvailable: YES (C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Defender)
2020-10-14 20:21:25.618   Summary message: 
                          Using Python 3.7:
                                C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\python.exe
                          
                          Using Git 2.28.0.windows.1:
                                C:\Program Files\Git\cmd\git.exe
                          
                          Will download ESP-IDF v4.1 into:
                                E:\Desktop\esp-idf
                          
                          IDF tools directory (IDF_TOOLS_PATH):
                                C:\Users\Scott Marley\esp
                          
                          
2020-10-14 20:21:26.304   GetIDFZIPFileVersion(v4.1)=v4.1
2020-10-14 20:21:26.304   Adding download: https://github.com/espressif/esp-idf/releases/download/v4.1/esp-idf-v4.1.zip, mirror: https://dl.espressif.com/dl/esp-idf/releases/esp-idf-v4.1.zip, destination: C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip
2020-10-14 20:23:11.386   Calling RestartManager's RmGetList.
2020-10-14 20:23:11.415   RmGetList finished successfully.
2020-10-14 20:23:11.415   RestartManager found no applications using one of our files.
2020-10-14 20:23:11.423   Starting the installation process.
2020-10-14 20:23:11.426   Directory for uninstall files: C:\Users\Scott Marley\esp
2020-10-14 20:23:11.426   Creating new uninstall log: C:\Users\Scott Marley\esp\unins000.dat
2020-10-14 20:23:11.428   -- File entry --
2020-10-14 20:23:11.429   Dest filename: C:\Users\Scott Marley\esp\unins000.exe
2020-10-14 20:23:11.429   Non-default bitness: 32-bit
2020-10-14 20:23:11.430   Time stamp of our file: 2020-10-14 20:20:52.555
2020-10-14 20:23:11.430   Installing the file.
2020-10-14 20:23:11.437   Successfully installed the file.
2020-10-14 20:23:11.437   -- File entry --
2020-10-14 20:23:11.437   Dest filename: C:\Users\Scott Marley\esp\idf_tools_fallback.py
2020-10-14 20:23:11.437   Time stamp of our file: 2020-02-11 09:02:54.000
2020-10-14 20:23:11.437   Installing the file.
2020-10-14 20:23:11.472   Successfully installed the file.
2020-10-14 20:23:11.473   -- File entry --
2020-10-14 20:23:11.473   Dest filename: C:\Users\Scott Marley\esp\tools_fallback.json
2020-10-14 20:23:11.473   Time stamp of our file: 2020-02-11 09:02:42.000
2020-10-14 20:23:11.473   Installing the file.
2020-10-14 20:23:11.475   Successfully installed the file.
2020-10-14 20:23:11.475   -- File entry --
2020-10-14 20:23:11.475   Dest filename: C:\Users\Scott Marley\esp\idf_cmd_init.bat
2020-10-14 20:23:11.475   Time stamp of our file: 2020-02-11 09:02:42.000
2020-10-14 20:23:11.475   Installing the file.
2020-10-14 20:23:11.477   Successfully installed the file.
2020-10-14 20:23:11.477   -- File entry --
2020-10-14 20:23:11.477   Dest filename: C:\Users\Scott Marley\esp\dist\binutils-esp32s2ulp-win32-2.28.51-esp-20191205.zip
2020-10-14 20:23:11.477   Time stamp of our file: 2020-02-11 17:56:46.000
2020-10-14 20:23:11.477   Installing the file.
2020-10-14 20:23:12.146   Successfully installed the file.
2020-10-14 20:23:12.146   -- File entry --
2020-10-14 20:23:12.147   Dest filename: C:\Users\Scott Marley\esp\dist\binutils-esp32ulp-win32-2.28.51-esp-20191205.zip
2020-10-14 20:23:12.147   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:12.147   Installing the file.
2020-10-14 20:23:12.839   Successfully installed the file.
2020-10-14 20:23:12.839   -- File entry --
2020-10-14 20:23:12.840   Dest filename: C:\Users\Scott Marley\esp\dist\binutils-esp32ulp-win32-2.28.51-esp32ulp-20180809.zip
2020-10-14 20:23:12.840   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:12.840   Installing the file.
2020-10-14 20:23:13.420   Successfully installed the file.
2020-10-14 20:23:13.420   -- File entry --
2020-10-14 20:23:13.421   Dest filename: C:\Users\Scott Marley\esp\dist\ccache-3.7-w64.zip
2020-10-14 20:23:13.421   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:13.421   Installing the file.
2020-10-14 20:23:13.433   Successfully installed the file.
2020-10-14 20:23:13.433   -- File entry --
2020-10-14 20:23:13.433   Dest filename: C:\Users\Scott Marley\esp\dist\cmake-3.13.4-win64-x64.zip
2020-10-14 20:23:13.433   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:13.433   Installing the file.
2020-10-14 20:23:15.576   Successfully installed the file.
2020-10-14 20:23:15.577   -- File entry --
2020-10-14 20:23:15.577   Dest filename: C:\Users\Scott Marley\esp\dist\idf-exe-v1.0.1.zip
2020-10-14 20:23:15.577   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.577   Installing the file.
2020-10-14 20:23:15.583   Successfully installed the file.
2020-10-14 20:23:15.583   -- File entry --
2020-10-14 20:23:15.583   Dest filename: C:\Users\Scott Marley\esp\dist\mconf-v4.6.0.0-idf-20190628-win32.zip
2020-10-14 20:23:15.584   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.584   Installing the file.
2020-10-14 20:23:15.643   Successfully installed the file.
2020-10-14 20:23:15.644   -- File entry --
2020-10-14 20:23:15.644   Dest filename: C:\Users\Scott Marley\esp\dist\ninja-1.9.0-win64.zip
2020-10-14 20:23:15.645   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.645   Installing the file.
2020-10-14 20:23:15.663   Successfully installed the file.
2020-10-14 20:23:15.664   -- File entry --
2020-10-14 20:23:15.665   Dest filename: C:\Users\Scott Marley\esp\dist\openocd-esp32-win32-0.10.0-esp32-20190313.zip
2020-10-14 20:23:15.665   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.665   Installing the file.
2020-10-14 20:23:15.808   Successfully installed the file.
2020-10-14 20:23:15.809   -- File entry --
2020-10-14 20:23:15.809   Dest filename: C:\Users\Scott Marley\esp\dist\openocd-esp32-win32-0.10.0-esp32-20191114.zip
2020-10-14 20:23:15.809   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.809   Installing the file.
2020-10-14 20:23:15.914   Successfully installed the file.
2020-10-14 20:23:15.915   -- File entry --
2020-10-14 20:23:15.915   Dest filename: C:\Users\Scott Marley\esp\dist\placeholder
2020-10-14 20:23:15.915   Time stamp of our file: 2020-02-10 20:13:36.000
2020-10-14 20:23:15.915   Installing the file.
2020-10-14 20:23:15.916   Successfully installed the file.
2020-10-14 20:23:15.916   -- File entry --
2020-10-14 20:23:15.917   Dest filename: C:\Users\Scott Marley\esp\dist\xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32.zip
2020-10-14 20:23:15.917   Time stamp of our file: 2020-02-11 17:56:48.000
2020-10-14 20:23:15.917   Installing the file.
2020-10-14 20:23:22.819   Successfully installed the file.
2020-10-14 20:23:22.819   -- File entry --
2020-10-14 20:23:22.820   Dest filename: C:\Users\Scott Marley\esp\dist\xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip
2020-10-14 20:23:22.820   Time stamp of our file: 2020-02-11 17:56:50.000
2020-10-14 20:23:22.820   Installing the file.
2020-10-14 20:23:30.999   Successfully installed the file.
2020-10-14 20:23:31.000   -- File entry --
2020-10-14 20:23:31.000   Dest filename: C:\Users\Scott Marley\esp\dist\xtensa-esp32s2-elf-gcc8_2_0-esp-2019r2-win32.zip
2020-10-14 20:23:31.000   Time stamp of our file: 2020-02-11 17:56:50.000
2020-10-14 20:23:31.000   Installing the file.
2020-10-14 20:23:38.195   Successfully installed the file.
2020-10-14 20:23:38.195   -- File entry --
2020-10-14 20:23:38.195   Dest filename: C:\Users\Scott Marley\esp\dist\tools_WD_excl.ps1
2020-10-14 20:23:38.195   Time stamp of our file: 2020-02-11 09:02:42.000
2020-10-14 20:23:38.195   Installing the file.
2020-10-14 20:23:38.197   Successfully installed the file.
2020-10-14 20:23:38.198   -- File entry --
2020-10-14 20:23:38.198   Dest filename: C:\Users\Scott Marley\esp\dist\tools_WD_clean.ps1
2020-10-14 20:23:38.198   Time stamp of our file: 2020-02-11 09:02:42.000
2020-10-14 20:23:38.198   Installing the file.
2020-10-14 20:23:38.199   Successfully installed the file.
2020-10-14 20:23:38.199   -- Registry entry --
2020-10-14 20:23:38.199   Key: HKEY_CURRENT_USER\Environment
2020-10-14 20:23:38.199   Value name: IDF_TOOLS_PATH
2020-10-14 20:23:38.199   Creating or opening the key.
2020-10-14 20:23:38.199   Deleting the value.
2020-10-14 20:23:38.199   Creating or setting the value.
2020-10-14 20:23:38.200   Successfully created or set the value.
2020-10-14 20:23:38.200   Saving uninstall information.
2020-10-14 20:23:38.200   Deleting uninstall key left over from previous non administrative install.
2020-10-14 20:23:38.200   Creating new uninstall key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\{9E068D99-5C4B-4E5F-96A3-B17CF291E6BD}_is1
2020-10-14 20:23:38.200   Writing uninstall key values.
2020-10-14 20:23:38.201   Detected previous administrative 64-bit install? No
2020-10-14 20:23:38.201   Detected previous administrative 32-bit install? No
2020-10-14 20:23:38.208   Installation process succeeded.
2020-10-14 20:23:38.213   Setting PATH for this process: C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\;C:\Program Files\Git\cmd\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\AWRoot\bin\common;C:\AWRoot\bin\lib;C:\Android;C:\Windows\System32;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Git\cmd;C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\;C:\Users\Scott Marley\AppData\Local\Microsoft\WindowsApps;
2020-10-14 20:23:38.213   PYTHONPATH=
2020-10-14 20:23:38.213   Extracting temporary file: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\7za.exe
2020-10-14 20:23:38.264   Extracting ESP-IDF reference repository: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\7za.exe x -oC:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip"
2020-10-14 20:23:38.264   Reference repository path: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\esp-idf-v4.1
2020-10-14 20:23:38.283   ProcStart failed
2020-10-14 20:23:38.283   Done, exit code=-2
2020-10-14 20:23:38.283   --------
2020-10-14 20:23:38.283   Running command: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\7za.exe x -oC:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip"
                          
2020-10-14 20:23:38.283   --------
2020-10-14 20:23:38.283   Message box (OK):
                          Installation has failed with exit code -2
2020-10-14 20:23:42.012   User chose OK.
2020-10-14 20:23:42.025   Message box (Yes/No):
                          Installation log has been created, it may contain more information about the problem.
                          Display the installation log now?
2020-10-14 20:23:42.967   User chose Yes.
2020-10-14 20:23:42.993   CurStepChanged raised an exception.

@github-actions github-actions bot changed the title Install of esp-idf-tools-setup-2.3.exe fails under Windows 10 exit code -2 Install of esp-idf-tools-setup-2.3.exe fails under Windows 10 exit code -2 (IDFGH-4112) Oct 14, 2020
@krzychb
Copy link
Collaborator

krzychb commented Oct 14, 2020

The installer fails when extracting zipped ESP-IDF repository:

2020-10-14 20:23:38.213   Extracting temporary file: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\7za.exe
2020-10-14 20:23:38.264   Extracting ESP-IDF reference repository: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\7za.exe x -oC:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip"
2020-10-14 20:23:38.264   Reference repository path: C:\Users\Scott Marley\AppData\Local\Temp\is-UA59D.tmp\esp-idf-v4.1
2020-10-14 20:23:38.283   ProcStart failed
2020-10-14 20:23:38.283   Done, exit code=-2

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?

@s-marley
Copy link
Author

@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.

@igrr
Copy link
Member

igrr commented Oct 15, 2020

@s-marley Thanks for reporting, will prepare a fix soon.

@igrr
Copy link
Member

igrr commented Oct 15, 2020

@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)

@s-marley
Copy link
Author

s-marley commented Oct 15, 2020

@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.

2020-10-15 18:48:48.468   Installation process succeeded.
2020-10-15 18:48:48.470   Setting PATH for this process: C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\;C:\Program Files\Git\cmd\;C:\Program Files\Mozilla Firefox;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\AWRoot\bin\common;C:\AWRoot\bin\lib;C:\Android;C:\Windows\System32;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Git\cmd;C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Scott Marley\AppData\Local\Programs\Python\Python37\;C:\Users\Scott Marley\AppData\Local\Microsoft\WindowsApps;
2020-10-15 18:48:48.470   PYTHONPATH=
2020-10-15 18:48:48.470   Extracting temporary file: C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp\7za.exe
2020-10-15 18:48:48.523   Extracting ESP-IDF reference repository: C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp\7za.exe x -o"C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp" -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip"
2020-10-15 18:48:48.523   Reference repository path: "C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp\esp-idf-v4.1"
2020-10-15 18:48:48.549   ProcStart failed
2020-10-15 18:48:48.549   Done, exit code=-2
2020-10-15 18:48:48.549   --------
2020-10-15 18:48:48.549   Running command: C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp\7za.exe x -o"C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp" -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip"
                          
2020-10-15 18:48:48.549   --------
2020-10-15 18:48:48.549   Message box (OK):
                          Installation has failed with exit code -2

Thank you for looking into this for me.

@igrr
Copy link
Member

igrr commented Oct 18, 2020

@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?

  1. Run the installer, wait until it fails the same way. Do not exit the installer yet.
  2. Open windows explorer, go to C:\Users\Scott Marley\AppData\Local\Temp and find the most recent directory named "is-XXXX.tmp".
  3. In command prompt, try to run 7za.exe from that directory. Is any error shown on this step?

@s-marley
Copy link
Author

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:
image
That's probably not very useful for you though!

@s-marley
Copy link
Author

Jus to add to this, I tried to run the same command as the installer does, and got this message, looks like it can't find C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip
image
You can see I then go to C:\Users\Scott Marley\esp\releases and esp-idf-v4.1.zip is actually there.

@igrr
Copy link
Member

igrr commented Oct 23, 2020

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: C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp\7za.exe x -o"C:\Users\Scott Marley\AppData\Local\Temp\is-0B23L.tmp" -r -aoa "C:\Users\Scott Marley\esp\releases\esp-idf-v4.1.zip" (notice double quotes after -o flag).

@s-marley
Copy link
Author

Apologies. I've done it again with the path-fix version, and everything seems to work as expected. I'm still getting the error on the installer though.
image

@tom-borcin tom-borcin added the Platform: Windows issues pertain to Windows label Mar 23, 2021
@georgik
Copy link
Collaborator

georgik commented Apr 16, 2021

Confirmed. The problem is also present in Online Installer v 2.7.
Workaround: Use Offline Installer which does not require 7z to extract data.
You can download it from: https://dl.espressif.com/dl/esp-idf/

@espressif-bot espressif-bot added the Status: In Progress Work is in progress label Apr 16, 2021
@georgik
Copy link
Collaborator

georgik commented Apr 16, 2021

One other workaround based on changing environment variable TMP which is used for temporary directory:

mkdir C:\Temp
set TMP=C:\Temp
esp-idf-tools-setup-online-2.7.exe

Please note that there might be an environment variable TEMP which does not have effect on installer.

georgik added a commit to espressif/idf-installer that referenced this issue Apr 20, 2021
* 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
@georgik
Copy link
Collaborator

georgik commented Apr 20, 2021

@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

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: In Progress Work is in progress labels Apr 20, 2021
@Alvin1Zhang
Copy link
Collaborator

Thanks for reporting, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows issues pertain to Windows Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

7 participants