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

[BUG]: fail to start examor-server-1 container #21

Closed
JokinYang opened this issue Sep 1, 2023 · 3 comments
Closed

[BUG]: fail to start examor-server-1 container #21

JokinYang opened this issue Sep 1, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@JokinYang
Copy link
Contributor

Description of the bug

Unable up the compose env, because of fail to start the examor-server-1 .
output log as below:

2023-09-01 14:27:57 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:27:58 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:27:59 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:00 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:02 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:05 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:12 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:25 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:51 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:29:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:30:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:31:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:32:44 /usr/bin/env: ‘bash\r’: No such file or directory

the command I used :

git clone https://github.com/codeacme17/examor.git
cd examor
docker-compose up

version I used:

> git log -n 1
commit 6fec558a4667a002cd18de3f563ab29e7523169e (HEAD -> main, origin/main, origin/HEAD)
Author: codeacme17 <vir_kings@qq.com>
Date:   Thu Aug 31 21:08:51 2023 +0800

    fix: fix some bugs
@JokinYang JokinYang added the bug Something isn't working label Sep 1, 2023
@codeacme17
Copy link
Owner

codeacme17 commented Sep 1, 2023

@JokinYang, Try replace python:3.11.3 to python:3.11.3-alpine in /server/DockerFile. Then rerun the docker-compose. Maybe will fix this issue.

@JokinYang
Copy link
Contributor Author

@JokinYang, Try replace python:3.11.3 to python:3.11.3-alpine in /server/DockerFile. Then rerun the docker-compose. Maybe will fix this issue.

I tried using python:3.11.3-alpine as the base image. error /usr/bin/env: ‘bash\r’: No such file or directory not occured, but it fails at installing numpy due to [Errno 2] No such file or directory: 'gcc'.


Fixed this problem by removing the \r character behind the #!/usr/bin/env bash in the server/wait-for-it.sh

Thanks for your atteneion!

@codeacme17
Copy link
Owner

@JokinYang, Thank to you very much too. You are welcome to submit a PR to fix this problem. If it is inconvenient for you, I can also update it in the next patch version. 🥰 And will close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants