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

for clifs_web_1 Cannot start service web: OCI runtime create failed #11

Closed
XuecWu opened this issue Feb 14, 2022 · 6 comments
Closed

for clifs_web_1 Cannot start service web: OCI runtime create failed #11

XuecWu opened this issue Feb 14, 2022 · 6 comments

Comments

@XuecWu
Copy link

XuecWu commented Feb 14, 2022

Hi, @johanmodin Thank you for your great work! But I have faced some problem with clifs:
As shown below, I have created my ckifs_search-engine, That means that I have created my docker image, right? But I encountered errors while bringing up the project.
Step 15/18 : RUN python3 -c "import clip; clip.load('$MODEL', device='cpu')"
---> Running in 7145f0df5bd7
100%|#######################################| 402M/402M [03:58<00:00, 1.77MiB/s]
Removing intermediate container 7145f0df5bd7
---> a62989bd9503
Step 16/18 : RUN ln -sf /usr/bin/python3 /usr/bin/python
---> Running in a0e80becb3cf
Removing intermediate container a0e80becb3cf
---> fd581f18de7d
Step 17/18 : COPY app/ /app
---> 3525ae426cda
Step 18/18 : CMD python clifs.py
---> Running in 89927927e5ef
Removing intermediate container 89927927e5ef
---> fab0dbbe3a71
Successfully built fab0dbbe3a71
Successfully tagged clifs_search-engine:latest

Creating network "clifs_default" with the default driver
Creating clifs_web_1 ... error
Creating search-engine ...

ERROR: for clifs_web_1 Cannot start service web: OCI runtime create failed: container_linux.go:345:
Creating search-engine ... done

ERROR: for web Cannot start service web: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/clifs/entrypoint.sh": permission denied": unknown
ERROR: Encountered errors while bringing up the project.

So I want to know how to fix it and how to use it.
Thank you for your answering!!!

@XuecWu XuecWu changed the title OCI runtime create failed for clifs_web_1 Cannot start service web: OCI runtime create failed Feb 14, 2022
@XuecWu
Copy link
Author

XuecWu commented Feb 14, 2022

My docker version is 19.03.1 and the version of docker-compose is 1.29.2.
I ran docker-compose build && docker-compose -f docker-compose-gpu.yml up

@XuecWu
Copy link
Author

XuecWu commented Feb 14, 2022

I have solved the problem above ,but I encountered another one... I cant open the website by google and edge.
As shown below, I have tried http://172.18.0.2:5000/, but it doesnt work.
image

@johanmodin
Copy link
Owner

Hey, that address is only valid within the docker network and is not pointed to the web server, but rather the model server. Could you try going to the localhost address as is described in the setup?

Once the features for the files in the data/input directory have been encoded, as shown in the log, navigate to 127.0.0.1:8000 and search away.

@XuecWu
Copy link
Author

XuecWu commented Feb 14, 2022

@johanmodin Thank you for your reply! I have taken a try , after I ran docker-compose build && docker-compose -f docker-compose-gpu.yml up, I got this on google as shown blow.
image
Cant get it just as before.

@johanmodin
Copy link
Owner

johanmodin commented Feb 15, 2022

You could also try to browse to <your_machines_local_ip>:5000, e.g., 192.168.1.100:5000. If that doesn't work, I would assume that the problem is with the network configuration of your machine.

@XuecWu
Copy link
Author

XuecWu commented Feb 15, 2022

Thank you for your reply! I will take a try at once.

@XuecWu XuecWu closed this as completed Feb 16, 2022
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