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

Error: exec: "/start.sh": stat /start.sh: no such file or directory: unknown #13

Open
SWS-5007 opened this issue Feb 3, 2023 · 2 comments

Comments

@SWS-5007
Copy link

SWS-5007 commented Feb 3, 2023

Hi, Greetings!
I deployed this harvester project on AWS Ubuntu.
Then, I run this command, docker-compose up --build, I am getting error below.

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 2/0
⠿ Container shearscan_harvester-mysql-1 Running 0.0s
⠿ Container shearscan_harvester-substrate-node-1 Running 0.0s
Attaching to shearscan_harvester-harvester-1, shearscan_harvester-mysql-1, shearscan_harvester-substrate-node-1
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/start.sh": stat /start.sh: no such file or directory: unknown

And here is my docker-compose.yml codebase.

version: '3.2'
services:
  harvester:
    build: .
    image: polkascan/harvester
    restart: unless-stopped
    entrypoint: /start.sh
    ports:
      - '9620:9616'
    environment:
...
...

What is wrong?
What should I do on AWS Ubuntu EC2 to solve this issue?

@arjanz
Copy link
Member

arjanz commented Feb 3, 2023

What is the reason you change the entrypoint from /usr/src/start.sh to /start.sh? If you didn't change the workdir in the Dockerimage you should change it back.

@SWS-5007
Copy link
Author

SWS-5007 commented Feb 5, 2023

I changed again as you said but I am getting same error.

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/src/start.sh": permission denied: unknown

Here is changed docker-compose.yml codebase.

version: '3.2'
services:
  harvester:
    build: .
    image: polkascan/harvester
    restart: unless-stopped
    entrypoint: /usr/src/start.sh

What is wrong yet?

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

2 participants