Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

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

Open
FunctionDJ opened this issue Apr 2, 2022 · 2 comments
Labels
type: bug code to address defects in shipped code

Comments

@FunctionDJ
Copy link

FunctionDJ commented Apr 2, 2022

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 FunctionDJ added the type: bug code to address defects in shipped code label Apr 2, 2022
@regoawt
Copy link

regoawt commented Aug 31, 2022

@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
Copy link

regoawt commented Aug 31, 2022

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants