Menu

#18 Can't install "Warning: "openssl.exe" could not be copied...

closed-fixed
nobody
None
5
2010-09-28
2010-07-19
Greg Hazel
No

Copied file "sort-7.6.exe"
Copied file "unzip.exe"
Copied file "wget-1.12.exe"
Copied file "cacert.pem"
Copied file "libeay32.dll"
Copied file "libssl32.dll"
Warning: "openssl.exe" could not be copied to "C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin"

The supplemental utilities could not be installed.

This was with GetGnuWin32-0.6.3

I accidentally filed it here first:
https://sourceforge.net/tracker/index.php?func=detail&aid=3028613&group_id=23617&atid=379173#

Discussion

  • Jay Satiro

    Jay Satiro - 2010-07-20

    Hi Greg. I do not have any other reports like this. Are you installing over an existing installation? Please record the output of:
    icacls C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe
    attrib C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe
    icacls C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe
    attrib C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe
    try deleting openssl.exe from gnuwin32\bin
    del C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe

     
  • Greg Hazel

    Greg Hazel - 2010-07-20

    This happens on a clean installation.

    Results for you (incase SF smashes them: http://codepad.org/bnIINAZY ):

    C:\Users\Greg\Downloads\GetGnuWin32>icacls C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe
    C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe: The system cannot find the file specified.
    Successfully processed 0 files; Failed processing 1 files

    C:\Users\Greg\Downloads\GetGnuWin32>attrib C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe
    File not found - C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe

    C:\Users\Greg\Downloads\GetGnuWin32>icacls C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe
    C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe NT AUTHORITY\SYSTEM:(I)(F)
    BUILTIN\Administrators:(I)(F)
    greg-x201\Greg:(I)(F)

    Successfully processed 1 files; Failed processing 0 files

    C:\Users\Greg\Downloads\GetGnuWin32>attrib C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe
    A C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin\openssl.exe

    C:\Users\Greg\Downloads\GetGnuWin32>cd bin

    C:\Users\Greg\Downloads\GetGnuWin32\bin>supplemental_install.bat C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin

    Author's note (Jay Satiro <raysatiro@users.sourceforge.net>) :

    Last updated July 4, 2010

    Some of the packages available with the gnuwin32 project are wildly outdated.
    I have compiled more recent builds of the following utilities:

    UnZip 6.00, OpenSSL 1.0.0a, Wget 1.12.1-dev (03-04-10), Sort 7.6

    Would you like more information? [yes]

    UnZip 6.00; unzip.exe (04-20-09) (bugfixes, security fixes)
    ^ Suggested replacement for GnuWin32 UnZip 5.51 of May 2004

    OpenSSL 1.0.0a; all binary files (06-01-10) (bugfixes, security fixes)
    ^ Suggested replacement for GnuWin32 OpenSSL 0.9.8h of May 2008

    Wget 1.12.1-dev; wget-1.12.exe (06-23-10) (bugfixes, security fixes)
    >> No international support, and english help text only.
    >> Built from wget mainline 013c8e2f5997 03-04-10
    ^^ Suggested supplement to GnuWin32 Wget 1.11.4 of Jun 2008

    Bundle of CA Root Certificates; cacert.pem (09-22-09)
    >> Extracted from Mozilla Certificate Authorities list.
    ^^ Suggested replacement for <unknown>

    Sort 7.6 testbuild; sort-7.6.exe (09-11-09) (bugfixes)
    >> Properly supports LC_ALL environment variable. Test build.
    ^^ Suggested supplement to GnuWin32 Sort 5.3.0 of April 2005

    Would you like to install these utilities? [yes]

    Please type the existing directory you want to install to and hit enter.
    [C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin]
    If it is the directory above that's in brackets, you can just hit enter.

    Copied file "sort-7.6.exe"
    Copied file "unzip.exe"
    Copied file "wget-1.12.exe"
    Copied file "cacert.pem"
    Copied file "libeay32.dll"
    Copied file "libssl32.dll"
    Warning: "openssl.exe" could not be copied to "C:\Users\Greg\Downloads\GetGnuWin32\gnuwin32\bin"

    The supplemental utilities could not be installed.
    To try later run supplemental_install.bat in GetGnuWin32's bin directory.
    C:\Users\Greg\Downloads\GetGnuWin32\bin

    Ending supplemental install.
    Press any key to continue . . .

     
  • Jay Satiro

    Jay Satiro - 2010-07-20

    It appears your installation is corrupted. openssl.exe should not be missing from GetGnuWin32\bin. Do you see any error messages when you run download.bat?
    = Checking for signed update (attempt 1)...

    GetGnuWin32 signed update found, verifying signature...
    Verified OK

    Archive: update94d563d1564001.zip
    inflating: bin/findhash.exe
    inflating: bin/libeay32.dll
    inflating: bin/libssl32.dll
    inflating: bin/openssl.exe
    inflating: bin/supplemental_install.bat
    inflating: bin/wget-1.12.exe
    inflating: bin.lst
    inflating: dep.lst
    inflating: doc.lst
    inflating: lib.lst
    inflating: packages.sha
    inflating: update_changelog.txt

    GetGnuWin32 update successful.

     
  • Greg Hazel

    Greg Hazel - 2010-07-20

    I moved that directory out of the way and ran GetGnuWin32-0.6.3.exe again. I do get an error when I run download.bat:

    http://codepad.org/YmAV3tkB

    C:\Users\Greg\Downloads\GetGnuWin32>dir bin\openssl.exe
    Volume in drive C is Windows7_OS
    Volume Serial Number is 20E2-67EC

    Directory of C:\Users\Greg\Downloads\GetGnuWin32\bin

    11/06/2009 10:03 PM 2,020,820 openssl.exe
    1 File(s) 2,020,820 bytes
    0 Dir(s) 63,140,098,048 bytes free

    C:\Users\Greg\Downloads\GetGnuWin32>download.bat

    = Checking for signed update (attempt 1)...

    GetGnuWin32 signed update found, verifying signature...
    Verified OK

    Archive: update94d563d1564001.zip
    inflating: bin/findhash.exe
    inflating: bin/libeay32.dll
    inflating: bin/libssl32.dll
    error: cannot create bin/openssl.exe
    Permission denied
    inflating: bin/supplemental_install.bat
    inflating: bin/wget-1.12.exe
    inflating: bin.lst
    inflating: dep.lst
    inflating: doc.lst
    inflating: lib.lst
    inflating: packages.sha
    inflating: update_changelog.txt

    GetGnuWin32 update successful.

    = Downloading and verifying 446 new packages from sourceforge.net...

    = This will take some time, be patient. No interaction is needed.
    = If you have to stop this process (CTRL + C) it can pickup where it left off.
    =
    Terminate batch job (Y/N)? y

    C:\Users\Greg\Downloads\GetGnuWin32>dir bin\openssl.exe
    Volume in drive C is Windows7_OS
    Volume Serial Number is 20E2-67EC

    Directory of C:\Users\Greg\Downloads\GetGnuWin32\bin

    File Not Found

     
  • Greg Hazel

    Greg Hazel - 2010-07-20

    Before openssl.exe disappears, here are the results of the commands you asked for:

    C:\Users\Greg\Downloads\GetGnuWin32>icacls bin\openssl.exe
    bin\openssl.exe NT AUTHORITY\SYSTEM:(I)(F)
    BUILTIN\Administrators:(I)(F)
    greg-x201\Greg:(I)(F)

    Successfully processed 1 files; Failed processing 0 files

    C:\Users\Greg\Downloads\GetGnuWin32>attrib bin\openssl.exe
    A C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe

     
  • Jay Satiro

    Jay Satiro - 2010-07-20

    That's strange. I'm not sure what could be causing that. openssl.exe is used to verify the update, so it's definitely there and working until unzip tries to overwrite it with the new version. Do you have an anti-virus client that could be interfering? If so can you check your logs.

    Try extracting openssl.exe from GetGnuWin32\update94d563d1564001.zip and manually placing it in the GetGnuWin32\bin directory

     
  • Greg Hazel

    Greg Hazel - 2010-07-20

    No antivirus installed, however Windows 7 does come with "Windows Defender" installed and enabled by default.

    Running handle ( http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx ) between the execution of openssl.exe and unzip.exe, I see:

    handle bin\openssl.exe
    svchost.exe pid: 2972 42C: C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe
    svchost.exe pid: 2972 61C: C:\Users\Greg\Downloads\GetGnuWin32\bin\openssl.exe

    Looking at which services each svchost.exe is responsible for I see:

    tasklist /svc /fi "imagename eq svchost.exe" | grep -i 2972
    svchost.exe 2972 WinDefend

    So, a little one second sleep hack should work fine.

     
  • Jay Satiro

    Jay Satiro - 2010-07-20

    Thanks I'll see what I can do about that. I did test on Windows 7 but I don't know if Windows Defender was enabled. I'll try reproducing what you describe some time this week.

     
  • Jay Satiro

    Jay Satiro - 2010-07-20
    • status: open --> open-accepted
     
  • Jay Satiro

    Jay Satiro - 2010-07-27

    Confirmed Windows 7 x64. I'm working on a patch.

     
  • Jay Satiro

    Jay Satiro - 2010-08-05

    I contacted Microsoft last week about this issue but did not receive a reply. However since Microsoft updated Windows Defender yesterday I am no longer able to reproduce this issue. Maybe that's just a coincidence though.

    I added an additional check to the update process to ensure all updated files are valid.

    If your GetGnuWin32 client was affected by this bug you'll need to reinstall, preferably over your existing installation to save the downloaded package cache. When the installer prompts on overwrite choose 'Yes to all.' When you next run download.bat the update it downloads now includes the additional posterity check.

    download.bat
    install c:\gnuwin32

    Thank you for your report. Please let me know if this solution works for you.

     
  • Greg Hazel

    Greg Hazel - 2010-08-05

    Where do I get the latest installer with your changes? I still see 0.6.3 on https://sourceforge.net/projects/getgnuwin32/files/

     
  • Jay Satiro

    Jay Satiro - 2010-08-05

    Hello Greg,

    The changes are not included with the installer. There is no need to release a new installer at this time.
    After you reinstall 0.6.3, and run download.bat, it contacts sourceforge to download an update which does include the changes described here. After the digital signature is verified and the update is unzipped a list of changes will be in update_changelog.txt

    Thanks and good night

     
  • Greg Hazel

    Greg Hazel - 2010-08-05

    Ok, cool.

    Running the download and installing again worked for me. Thanks!

     
  • Jay Satiro

    Jay Satiro - 2010-09-28
    • status: open-accepted --> closed-fixed
     
  • Jay Satiro

    Jay Satiro - 2010-09-28

    There have been no more reports of this issue since I added the additional check so I'm closing this as Fixed. Thanks Greg!

     

Log in to post a comment.