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.

Service Frontend failed to build non-zero code:128

See original GitHub issue

How to reproduce the problem

I tried to install doccano according to the provided installation guide: $ git clone https://github.com/doccano/doccano.git $ cd doccano $ docker-compose -f docker-compose.prod.yml up

warning Pattern ["squire-rte@github:seonim-ryu/Squire#fd40b4e3020845825701e9689f190bab3f4775d4"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-squire-rte-1.9.0/node_modules/squire-rte" as pattern ["squire-rte@github:seonim-ryu/Squire#10a470c9dfd07cfb37b06dedc581526b061975e1"]. This could result in non-deterministic behavior, skipping.
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: /app
Output:
fatal: the remote end hung up upon initial contact
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning sha.js@2.4.11: Invalid bin entry for "sha.js" (in "sha.js").
Service 'frontend' failed to build : The command '/bin/sh -c apk add -U --no-cache git python3 make g++   && yarn install   && yarn build   && apk del --no-cache git make g++' returned a non-zero code: 128

Your Environment

  • Operating System: Windows 10
  • Python Version Used: Python 3.7
  • When you install doccano: error during installation
  • How did you install doccano (Heroku button etc): clone git

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Hironsancommented, Sep 25, 2020

@copamundiale OK. Now you encountered status 127. Could you please try the following command?

$ git clone https://github.com/doccano/doccano.git --config core.autocrlf=input
$ cd doccano
$ Rewrite Dockerfile. See https://github.com/doccano/doccano/pull/657/files
$ docker-compose -f docker-compose.prod.yml up

Windows users need --config core.autocrlf=input option:

1reaction
LukasKrieschcommented, Sep 24, 2020

Thank you for you reply! I read both issues and changed the dockerfile. Now I receive the following error:

Service ‘frontend’ failed to build : The command ‘/bin/sh -c git config --global url.https://github.com/’ returned a non-zero code: 127

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-zero exit code: 128 Error executing command
This ERROR is caused when you have an Environment Variable called GIT_EXEC_PATH . Resolution. Remove the GIT_EXEC_PATH variable from the User ...
Read more >
Git / Bower Errors: Exit Code # 128 & Failed connect
Searching for a solution for the 2nd error, it seems that setting a username/pwd for a proxy server will resolve the issue if...
Read more >
[Solved]-Service 'web' failed to build with Protocol error-docker
It sounds like it can't find the repositories. Add this line before you run your apk add commands. RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.7/main" ...
Read more >
Custom AWS git-code-commit MFE repo giving error while ...
returned a non-zero code: 128 ERROR: Service 'mfe' failed to build : Build failed Error: Command failed with status 1: docker-compose -f ...
Read more >
Build fails with "Git fetch failed with exit code: 128" error with ...
I double checked that the service connection credentials looked good for Bitbucket screen-shot-2018-08-13-at-113106-am.png. Here is a screenshot and the text ...
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