build-image icon indicating copy to clipboard operation
build-image copied to clipboard

buildbot shell errors with "/bin/bash^M: bad interpreter: No such file or directory"

Open FunctionDJ opened this issue 2 years ago • 2 comments

Describe the bug

I've followed the instructions from the README using WSL 2 to install Docker in Ubuntu. I cloned this repository (build-image) from within WSL, not through Windows. The target project directory however is a mount in Ubuntu that points to the Windows filesystem. I already had to use dos2unix to be able to run the ./test-tools/start-image.sh which otherwise showed me the same error. Unfortunately i can't use this command or install this tool in the buildbot shell.

This is the output:

buildbot@5c4d253a1237:/$ /opt/build-bin/build npm run build
bash: /opt/build-bin/build: /bin/bash^M: bad interpreter: No such file or directory

It's totally possible, if not likely, that it's an issue on my side and not the project, but i've read the README thoroughly and can't figure it out. Any help is highly appreciated.

To Reproduce

Steps to reproduce the behavior:

  • Follow instructions on README using Ubuntu in WSL

FunctionDJ avatar Apr 02 '22 17:04 FunctionDJ

@FunctionDJ did you manage to resolve this issue? Similarly stuck - tried to use sed to remove the carriage returns but got a permission denied.

regoawt avatar Aug 31 '22 13:08 regoawt

@FunctionDJ did you manage to resolve this issue? Similarly stuck - tried to use sed to remove the carriage returns but got a permission denied.

Had to manually change the EOL encoding of run_build.sh and run_build_functions.sh to Unix in notepad++ which did the trick.

regoawt avatar Aug 31 '22 14:08 regoawt