none
git does not work in new container with kernel build 14300.1043 RRS feed

  • Question

  • Dear Microsoft,

    I have been working with Windows Containers a lot in the last weeks. But recently I started having problems with a container containing git.

    When I create a container with git using Windows Server 2016 TP5 (Build 14300.1000), git will work. When I repeat the same with the latest Updates (Build 14300.1043), git will crash and report this in the event log.

    The following steps reproduce the issue:

    1. Install Windows Server 2016 TP5 without any updates (Build 14300.1000)
    2. Install Container feature according to official documentation (https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/quick_start_windows_server)
    3. Build an container image with git (see Dockerfile below): docker build -t git . <-- NO ERRORS
      (direct link to git installer: https://github.com/git-for-windows/git/releases/download/v2.9.0.windows.1/Git-2.9.0-64-bit.exe)
    4. Test container: docker run -i git (it displays git version) <-- WORKS
    5. Install updates (Build 14300.1043)
    6. Test container as in step 4 <-- WORKS
    7. Build container from cache: docker build -t git . <-- NO ERRORS
    8. Test container as in step 4 <-- FAILS (no output)
    9. Buid container without cache: docker build -t git --no-cache . <-- NO ERRORS
    10. Test container as in step 4 <-- FAILS

    I have used the following Dockerfile:

    FROM windowsservercore
    
    ADD Git-2.9.0-64-bit.exe /
    RUN powershell -Command Start-Process -FilePath c:\Git-2.9.0-64-bit.exe -PassThru -Wait -ArgumentList \"/VERYSILENT /NORESTART /NOCANCEL /SP- /SUPPRESSMSGBOXES /DIR=c:\\git\"
    
    CMD c:\git\cmd\git.exe version

    I have attached the crash information recorded in the event log using the following command:

    Get-WinEvent -LogName Application | Where-Object {$_.ProviderName -like '*Error*'}
    Can you please verify if this is a bug?

    Thanks in advance

    Nicholas Dille, MVP, @NicholasDille

    Message              : Fault bucket 120494979259, type 4
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: git.exe
                           P2: 2.9.0.1
                           P3: aa20aa08
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a81d
                           P7: c0000006
                           P8: 000000000002b946
                           P9: 
                           P10: 
                           
                           Attached files:
                           C:\Users\ContainerAdministrator\AppData\Local\Temp\WER811A.tmp.appcompat.txt
                           C:\ProgramData\Microsoft\Windows\WER\Temp\WER8476.tmp.WERInternalMetadata.xml
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2af8
                           795fc78d55_ba22f97c_cab_161a8485\memory.hdmp
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2af8
                           795fc78d55_ba22f97c_cab_161a8485\triagedump.dmp
                           WERGenerationLog.txt
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2a
                           f8795fc78d55_ba22f97c_15528a13
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: c78c2220-ea0d-4591-8d88-e6cd6ecc73c2
                           Report Status: 0
                           Hashed bucket: cafdd07fe20c58e0e6df64a7e280c0d9
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 41
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:53:10 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Fault bucket , type 0
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: git.exe
                           P2: 2.9.0.1
                           P3: aa20aa08
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a81d
                           P7: c0000006
                           P8: 000000000002b946
                           P9: 
                           P10: 
                           
                           Attached files:
                           C:\Users\ContainerAdministrator\AppData\Local\Temp\WER811A.tmp.appcompat.txt
                           C:\ProgramData\Microsoft\Windows\WER\Temp\WER8476.tmp.WERInternalMetadata.xml
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2af8
                           795fc78d55_ba22f97c_cab_161a8485\memory.hdmp
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2af8
                           795fc78d55_ba22f97c_cab_161a8485\triagedump.dmp
                           WERGenerationLog.txt
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2af8
                           795fc78d55_ba22f97c_cab_161a8485
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: c78c2220-ea0d-4591-8d88-e6cd6ecc73c2
                           Report Status: 4
                           Hashed bucket: 
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 40
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:53:08 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Windows cannot access the file  for one of the following reasons: there is a problem with the 
                           network connection, the disk that the file is stored on, or the storage drivers installed on 
                           this computer; or the disk is missing. Windows closed the program Git for Windows because of 
                           this error.
                           
                           Program: Git for Windows
                           File: 
                           
                           The error value is listed in the Additional Data section.
                           User Action
                           1. Open the file again. This situation might be a temporary problem that corrects itself when 
                           the program runs again.
                           2. If the file still cannot be accessed and
                           	- It is on the network, your network administrator should verify that there is not a problem 
                           with the network and that the server can be contacted.
                           	- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is 
                           fully inserted into the computer.
                           3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, 
                           type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
                           4. If the problem persists, restore the file from a backup copy.
                           5. Determine whether other files on the same disk can be opened. If not, the disk might be 
                           damaged. If it is a hard disk, contact your administrator or computer hardware vendor for 
                           further assistance.
                           
                           Additional Data
                           Error value: C000026E
                           Disk type: 0
    Id                   : 1005
    Version              : 
    Qualifiers           : 49152
    Level                : 2
    Task                 : 100
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 39
    ProviderName         : Application Error
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:53:07 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Error
    OpcodeDisplayName    : 
    TaskDisplayName      : Application Crashing Events
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty}
    
    Message              : Faulting application name: git.exe, version: 2.9.0.1, time stamp: 0xaa20aa08
                           Faulting module name: KERNELBASE.dll, version: 10.0.14300.1000, time stamp: 0x56f4a81d
                           Exception code: 0xc0000006
                           Fault offset: 0x000000000002b946
                           Faulting process id: 0x1638
                           Faulting application start time: 0x01d1d8355d04ea43
                           Faulting application path: C:\git\mingw64\bin\git.exe
                           Faulting module path: C:\Windows\system32\KERNELBASE.dll
                           Report Id: c78c2220-ea0d-4591-8d88-e6cd6ecc73c2
                           Faulting package full name: 
                           Faulting package-relative application ID: 
    Id                   : 1000
    Version              : 
    Qualifiers           : 0
    Level                : 2
    Task                 : 100
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 38
    ProviderName         : Application Error
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:53:07 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Error
    OpcodeDisplayName    : Info
    TaskDisplayName      : Application Crashing Events
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Fault bucket 108250109450, type 1
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: Git-2.9.0-64-bit.tmp
                           P2: 51.1052.0.0
                           P3: 56bce029
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a94b
                           P7: 0eedfade
                           P8: 000c8048
                           P9: 
                           P10: 
                           
                           Attached files:
                           C:\Users\ContainerAdministrator\AppData\Local\Temp\WER1E5.tmp.appcompat.txt
                           C:\ProgramData\Microsoft\Windows\WER\Temp\WER205.tmp.WERInternalMetadata.xml
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_Git-2.9.0-64-bit_69cf4c2dddbc17a2ce1b8
                           7cd1d83585bcd9fe325_453bb1b8_cab_167c0214\memory.hdmp
                           C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_Git-2.9.0-64-bit_69cf4c2dddbc17a2ce1b8
                           7cd1d83585bcd9fe325_453bb1b8_cab_167c0214\triagedump.dmp
                           WERGenerationLog.txt
                           C:\Windows\Temp\WERFC7.tmp.csv
                           C:\Windows\Temp\WERFE7.tmp.txt
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Git-2.9.0-64-bit_69cf4c2dddbc17a2ce1
                           b87cd1d83585bcd9fe325_453bb1b8_16d10fe6
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: 4c1b1647-bdc4-441e-8196-fc5c08a0c156
                           Report Status: 8
                           Hashed bucket: 39c6b0f05f88cdc9717ec184ab1720ce
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 35
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:51:33 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Fault bucket 120494979259, type 4
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: git.exe
                           P2: 2.9.0.1
                           P3: aa20aa08
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a81d
                           P7: c0000006
                           P8: 000000000002b946
                           P9: 
                           P10: 
                           
                           Attached files:
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2a
                           f8795fc78d55_ba22f97c_16d10b91
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: 2750d275-acdc-4b87-bd6d-5a1a0e2bf8f1
                           Report Status: 0
                           Hashed bucket: cafdd07fe20c58e0e6df64a7e280c0d9
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 34
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:51:32 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Fault bucket 120494979259, type 4
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: git.exe
                           P2: 2.9.0.1
                           P3: aa20aa08
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a81d
                           P7: c0000006
                           P8: 000000000002b946
                           P9: 
                           P10: 
                           
                           Attached files:
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2a
                           f8795fc78d55_ba22f97c_16d10a1a
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: 50ddae9b-a02d-4be5-9c72-22bb0faaaea5
                           Report Status: 0
                           Hashed bucket: cafdd07fe20c58e0e6df64a7e280c0d9
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 33
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:51:31 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}
    
    Message              : Fault bucket 120494979259, type 4
                           Event Name: APPCRASH
                           Response: Not available
                           Cab Id: 0
                           
                           Problem signature:
                           P1: git.exe
                           P2: 2.9.0.1
                           P3: aa20aa08
                           P4: KERNELBASE.dll
                           P5: 10.0.14300.1000
                           P6: 56f4a81d
                           P7: c0000006
                           P8: 000000000002b946
                           P9: 
                           P10: 
                           
                           Attached files:
                           
                           These files may be available here:
                           C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_git.exe_682189cfa267393b27f8a1a3cd2a
                           f8795fc78d55_ba22f97c_16d10901
                           
                           Analysis symbol: 
                           Rechecking for solution: 0
                           Report Id: 9a622aab-57c4-4150-959c-897f92d412a7
                           Report Status: 0
                           Hashed bucket: cafdd07fe20c58e0e6df64a7e280c0d9
    Id                   : 1001
    Version              : 
    Qualifiers           : 0
    Level                : 4
    Task                 : 0
    Opcode               : 
    Keywords             : 36028797018963968
    RecordId             : 32
    ProviderName         : Windows Error Reporting
    ProviderId           : 
    LogName              : Application
    ProcessId            : 
    ThreadId             : 
    MachineName          : WIN-SHSNAVDV03B
    UserId               : 
    TimeCreated          : 7/7/2016 2:51:31 AM
    ActivityId           : 
    RelatedActivityId    : 
    ContainerLog         : application
    MatchedQueryIds      : {}
    Bookmark             : System.Diagnostics.Eventing.Reader.EventBookmark
    LevelDisplayName     : Information
    OpcodeDisplayName    : Info
    TaskDisplayName      : 
    KeywordsDisplayNames : {Classic}
    Properties           : {System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty, 
                           System.Diagnostics.Eventing.Reader.EventProperty...}


    Thursday, July 7, 2016 9:58 AM

Answers

  • Solution:

    Set-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers' -Name VSmbDisableOplocks -Type DWord -Value 1 -Force

    Sunday, July 10, 2016 8:10 PM

All replies

  • I've updated my TP5 machine to Build 14300.1043 and tried the Dockerfile

    Building and running, rebuilding and running - everything works. I always get the git version string git version 2.9.0.windows.1


    Thursday, July 7, 2016 7:20 PM
  • Hi Stefan,

    I am totally lost here. I have again tested the whole process:

    1. Install TP5 from ISO (no network connection)
    2. Setup container host
    3. Test the above Dockerfile <-- WORKS
    4. Update with latest updates
    5. Test the above Dockerfile without using the cache <-- FAILS

    I have then build a new VM, patched it first and then setup the container host. In this case I am able to build the image but it fails.

    Do you have any idea what the difference is in our setups?

    Thanks

    Nicholas

    Friday, July 8, 2016 8:42 PM
  • Solution:

    Set-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers' -Name VSmbDisableOplocks -Type DWord -Value 1 -Force

    Sunday, July 10, 2016 8:10 PM
  • Hi Nicholas,

    glad you found a way to make it work in your setup. I've checked the registry VSmbDisableOplocks key doesn't exist in my setup.

    I use this Packer template to build the TP5 from ISO for VMware/VirtualBox/Hyper-V: https://github.com/StefanScherer/docker-windows-box#get-the-base-box

    Stefan

    Wednesday, July 13, 2016 7:12 AM