Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entrypoint error when running app-start.sh #460

Open
alex-atkins opened this issue Sep 12, 2024 · 1 comment
Open

Entrypoint error when running app-start.sh #460

alex-atkins opened this issue Sep 12, 2024 · 1 comment

Comments

@alex-atkins
Copy link

Describe the bug
Getting the following error when trying to run app-start.sh:

env: can't execute 'bash
': No such file or directory

Looks like it is coming from here:

#!/usr/bin/env bash

To Reproduce
Tag: 0.0.80
Build Dockerfile: make docker-build.sh
note: had to modify because there is a \r line separator that needs to be removed. Check for this in app-start.sh, but doesn't seem to be the issue.
Start app: make docker-start-api
Get error:
': No such file or directory
Note: Also entered container with make docker-start-bash and ran scripts/app-start.sh with same error.

Environment:

  • Build Env: Windows 11, MINGW64 terminal; Also tested on WSL2 Ubuntu with same results

Additional context
I see a similar issue #261 referencing a whitespace, but that is not present here.

@alex-atkins
Copy link
Author

There's some hidden value on the new line below. Removing the empty line and recreating it fixes the problem. There seems to be a line separator or other hidden character in a lot of these .sh files that causes issues in certain environments. Is there a way to remove them all and make sure future commits are clean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant