question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adservice error when building on windows

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
geoff-maddockcommented, Mar 19, 2019

Got this to work by using this autocrlf parameter when cloning.

git clone https://github.com/GoogleCloudPlatform/microservices-demo.git --config core.autocrlf=input

4reactions
geoff-maddockcommented, Mar 19, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found