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

exec /app/start.sh: no such file or directory #6746

Open
rjyotheeswara opened this issue Dec 3, 2024 · 3 comments
Open

exec /app/start.sh: no such file or directory #6746

rjyotheeswara opened this issue Dec 3, 2024 · 3 comments

Comments

@rjyotheeswara
Copy link

When connecting yolo model on docker getting these error

Screenshot 2024-12-03 145554

@heidi-humansignal
Copy link
Collaborator

Hi there!

Thank you for reaching out.
I'm sorry to hear that you're encountering this error when connecting the YOLO model using Docker:

exec /app/start.sh : No such file or directoryExited with code 1

This issue is commonly caused by Windows' handling of line endings in text files, which can affect scripts like start.sh used in Docker containers.
To resolve this issue, please follow these steps:

  • Adjust Git Configuration
    Before cloning the repository, configure Git to prevent automatic conversion of line endings. Open Git Bash or your preferred terminal and run:

    git config --global core.autocrlf false

  • Re-clone the Repository
    If you've already cloned the repository, you'll need to delete your existing local copy and clone it again to ensure the line endings are preserved correctly.

  • Delete your existing local clone of the repository.

  • Run the following command to clone the repository again:
    git clone https://github.com/HumanSignal/label-studio-ml-backend.git

  • Build and Run the Docker Containers
    Navigate to the directory containing the Dockerfile and docker-compose.yml files (for the YOLO model), and then run:

    docker-compose build docker-compose up

By following these steps, you should be able to resolve the start.sh error and successfully connect the YOLO model using Docker.
For more details, please refer to the troubleshooting section in our documentation:

  • Label Studio ML Backend - Troubleshooting Docker Build on Windows
    Please let me know if you have any questions or if the issue persists.

Thanks,

Tyler Conlee
Head of Support
HumanSignal

Comment by Tyler Conlee
Workflow Run

@rjyotheeswara
Copy link
Author

rjyotheeswara commented Dec 11, 2024 via email

@heidi-humansignal
Copy link
Collaborator

Hello,

Would you mind sharing your template and prediction structure? Predictions JSON should be very similar to the annotation JSON.

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

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

No branches or pull requests

2 participants