When running DefectDojo using the provided docker-compose.yml, the initializer container fails to start due to a shebang parsing error.
The container exits with the following error:
env: 'bash\r': No such file or directory
env: use -[v]S to pass options in shebang lines
This prevents the initializer service from completing successfully and blocks the rest of the services (uwsgi, celeryworker, celerybeat) from starting.
Steps to Reproduce
- Clone the repository
- Run:
- Observe container logs
Actual Behavior
The initializer container exits with code 127.
initializer-1 | env: 'bash\r': No such file or directory
initializer-1 | env: use -[v]S to pass options in shebang lines
initializer-1 exited with code 127
Container django-defectdojo-initializer-1 Error
service "initializer" didn't complete successfully: exit 127
Expected Behavior
The initializer container should successfully initialize the database and exit normally, allowing the dependent services (uwsgi, celeryworker, celerybeat) to start.
Environment
- Docker version:
<your docker version>
- Docker Compose version:
<your compose version>
- OS:
<Linux / WSL / Windows / macOS>
- DefectDojo version:
latest
- Installation method: Docker Compose
Possible Cause
It appears that one or more entrypoint scripts contain Windows CRLF line endings, resulting in the shebang being interpreted as:
When running DefectDojo using the provided
docker-compose.yml, theinitializercontainer fails to start due to a shebang parsing error.The container exits with the following error:
This prevents the
initializerservice from completing successfully and blocks the rest of the services (uwsgi,celeryworker,celerybeat) from starting.Steps to Reproduce
Actual Behavior
The
initializercontainer exits with code127.Expected Behavior
The
initializercontainer should successfully initialize the database and exit normally, allowing the dependent services (uwsgi,celeryworker,celerybeat) to start.Environment
<your docker version><your compose version><Linux / WSL / Windows / macOS>latestPossible Cause
It appears that one or more entrypoint scripts contain Windows CRLF line endings, resulting in the shebang being interpreted as: