Adservice error when building on windows
See original GitHub issueThis looks related to #128, but I’m running code with the changes mentioned, I’m still seeing an error.
I’m following the instructions to build as per Option 1: Running locally with “Docker for Desktop”
skaffold run
Gets to the step building the Adservice and errors out with:
Building [adservice]...
Sending build context to Docker daemon 106.5kB
Step 1/16 : FROM openjdk:8-slim as builder
---> ca76a0748b8a
Step 2/16 : WORKDIR /app
---> Using cache
---> 864059e8cd26
Step 3/16 : COPY ["build.gradle", "gradlew", "./"]
---> Using cache
---> 48f29d815557
Step 4/16 : COPY gradlew gradlew
---> 55cc63a88dc3
Step 5/16 : RUN chmod +x gradlew
---> Running in 7e26c9e7ad17
---> 8133454b3890
Step 6/16 : RUN ./gradlew downloadRepos
---> Running in a190a32b5a88
/usr/bin/env: ‘sh\r’: No such file or directory
FATA[0018] build failed: building [adservice]: build artifact: The command '/bin/sh -c ./gradlew downloadRepos' returned a non-zero code: 127
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Different errors upgrade build with Windows 10 Servicing
Use Event Viewer to check the error informations: 1. Open Event Viewer and navigate to Windows Logs\Application. 2. Click Find, and then search ......
Read more >Azure AD Connect sync: Changing the ADSync service account
Go to Windows Service Control Manager (START → Services). Select Microsoft Azure AD Sync and click Stop. Abandon the existing encryption key.
Read more >Managed Service Accounts: Understanding, Implementing ...
Cause: This is typically caused by not adding the “$” character to the end of the account name used in the Log On...
Read more >Troubleshoot provisioning errors | Microsoft Learn
In this article. Azure AD service connection point (SCP) misconfigured; Azure network connection isn't healthy; Disk allocation error ...
Read more >Windows Server - AD DS configuration operations fail
This article provides help to an error (The service cannot be started) that occurs when Active Directory Domain Services (AD DS) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got this to work by using this autocrlf parameter when cloning.
git clone https://github.com/GoogleCloudPlatform/microservices-demo.git --config core.autocrlf=input
It doesn’t really make sense to me either why it happened with JUST that dockerfile, but i’m not yet super familiar with this project. In any case, this is documented here now in case any other windows 10 pro users run into a similar issue.