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

Fail to build docker container for Windows #86

Closed
ashie opened this issue Jun 4, 2020 · 4 comments · Fixed by #95
Closed

Fail to build docker container for Windows #86

ashie opened this issue Jun 4, 2020 · 4 comments · Fixed by #95

Comments

@ashie
Copy link
Member

ashie commented Jun 4, 2020

Although we don't changes Dockerfile for Windows, docker build on GitHub Actions fails since yesterday.

https://github.com/clear-code/td-agent-builder/runs/736916721

Install MSYS2 and MINGW development toolchain succeeded
 _____       _           _____           _        _ _         ___  
|  __ \     | |         |_   _|         | |      | | |       |__ \ 
| |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
|  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ / 
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_ 
|_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                    __/ |           _                              
                   |___/          _|_ _  __   | | o __  _| _     _ 
                                   | (_) |    |^| | | |(_|(_)\^/_> 

re-exec error: exit status 1: output: time="2020-06-04T02:31:07Z" level=error msg="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" error="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" importFolderPath="C:\\ProgramData\\docker\\tmp\\hcs403266603" path="\\\\?\\C:\\ProgramData\\docker\\windowsfilter\\2961a824bef1e7df5eedfe4d3e33fde61d6396f0abf0b24601adc418cda42486"
hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)
rake aborted!
Command failed with status (1): [docker build --tag td-agent-windows-x64 ms...]
D:/a/td-agent-builder/td-agent-builder/td-agent/Rakefile:902:in `run_docker'
D:/a/td-agent-builder/td-agent-builder/td-agent/Rakefile:822:in `block (2 levels) in define'
D:/a/td-agent-builder/td-agent-builder/td-agent/Rakefile:812:in `block (2 levels) in define'
Tasks: TOP => msi:dockerbuild
(See full trace by running task with --trace)
@ashie
Copy link
Member Author

ashie commented Jun 5, 2020

It's also reproduced on my local environment when I remove the existing container.

@ashie ashie changed the title CI: Fail to build docker container for Windows Fail to build docker container for Windows Jun 5, 2020
@ashie
Copy link
Member Author

ashie commented Jun 5, 2020

Although we don't changes Dockerfile for Windows, docker build on GitHub Actions fails since yesterday.

A few days ago I got an update of Docker Desktop (19.03.8).
Is it the cause of this issue?

@cosmo0920
Copy link
Contributor

See also: microsoft/hcsshim#835

@philipsabri
Copy link

It seemse to be the latest msys2 choco version 20200602.0.0
Going back a few versions fixed it for me.

...
# Install toolchain
RUN \
  choco install -y git wixtoolset 7zip && \
  choco install -y msys2 --params /NoUpdate --version 20190524.0.0.20191030 && \
  choco install -y ruby && \
  refreshenv && \
  ridk install 3

also checking from the github action logs you can see the latest sucessfull run with windows used version 20200522.0.0 compared to the failed version 20200602.0.0

Maybe a fix for you would be using the 20200522.0.0 msys2 version again as the last successful build

ashie added a commit that referenced this issue Jun 10, 2020
It avoids the following error on building Window container
with MSYS2 20200602.0.0:

re-exec error: exit status 1: output: time="2020-06-04T02:31:07Z" level=error msg="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" error="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" importFolderPath="C:\\ProgramData\\docker\\tmp\\hcs403266603" path="\\\\?\\C:\\ProgramData\\docker\\windowsfilter\\2961a824bef1e7df5eedfe4d3e33fde61d6396f0abf0b24601adc418cda42486" hcsshim::ImportLayer - failed failed in Win32: The system can not find the path specified. (0x3)

Fix #86

Thanks flurreN!

Signed-off-by: Takuro Ashie <[email protected]>
ashie added a commit that referenced this issue Jun 10, 2020
It avoids the following error on building Window container
with MSYS2 20200602.0.0:

re-exec error: exit status 1: output: time="2020-06-04T02:31:07Z" level=error msg="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" error="hcsshim::ImportLayer - failed failed in Win32: The system cannot find the path specified. (0x3)" importFolderPath="C:\\ProgramData\\docker\\tmp\\hcs403266603" path="\\\\?\\C:\\ProgramData\\docker\\windowsfilter\\2961a824bef1e7df5eedfe4d3e33fde61d6396f0abf0b24601adc418cda42486" hcsshim::ImportLayer - failed failed in Win32: The system can not find the path specified. (0x3)

Fix #86

Thanks flurreN!

Signed-off-by: Takuro Ashie <[email protected]>
@ashie ashie closed this as completed in #95 Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants