tleyden / open-ocr

Run your own OCR-as-a-Service using Tesseract and Docker
Apache License 2.0
1.33k stars 223 forks source link

Launch OpenOCR on Bluemix #61

Closed jiangkid closed 8 years ago

jiangkid commented 8 years ago

Hi, I have pushed the required images: tutum/rabbitmq, tleyden5iwx/open-ocr-preprocessor and tleyden5iwx/open-ocr to Bluemix. And uploaded scripts: open-ocr-httpd open-ocr-preprocessor open-ocr-worker to my_volume. I use the command to start up OpenOCR docker-compose up -d

After a few minutes, the workspace_rabbitmq_1 is Running, but the other workers: workspace_strokewidthtransform_1, workspace_openocr_1, workspace_openocrworker_1 are all Crashed.

I am new to Docker, can you give me some advices?

The docker-compose.yml like this:

Start messaging broker

rabbitmq: image: registry.ng.bluemix.net/etfquant/rabbitmq dns: ["8.8.8.8"] volumes:

strokewidthtransform: image: registry.ng.bluemix.net/etfquant/open-ocr-preprocessor volumes:

openocrworker: image: registry.ng.bluemix.net/etfquant/open-ocr volumes:

openocr: image: registry.ng.bluemix.net/etfquant/open-ocr dns: ["8.8.8.8"] volumes:

tleyden commented 8 years ago

Is etfquant/rabbitmq == tutum/rabbitmq?

workspace_strokewidthtransform_1, workspace_openocr_1, workspace_openocrworker_1 are all Crashed.

Ok. Btw how are you determining they crashed? Can you add any relevant output to this issue?

I am new to Docker, can you give me some advices?

I'd start with docker log <container_id>. Find the container id of the workspace_openocr_1 container by running docker ls and looking for the container id (its a hash), and then run docker log <container_id> with that container id.

It should show you the logs of the process and whether it ran into any errors. (please post this output to the issue!)

jiangkid commented 8 years ago

Thank you for your help.

There are some logs for RabbitMQ, but no logs for the other worker. The output like this: 000

And I'm sure I have uploaded the scripts 01

tleyden commented 8 years ago

Hmm .. I don't know how to debug this without any logs. You might need to ask the bluemix support folks.

Although, I just found this on stack overflow:

http://stackoverflow.com/questions/33242142/run-a-docker-hub-container-on-bluemix-without-crashing-no-valid-host-was-found

You could try running cf ic inspect

tleyden commented 8 years ago

@jiangkid any update?

jiangkid commented 8 years ago

I have tried "cf ic inspect", but it doesn't work. Finally, I build a Docker Image by myself. Thanks. ^_^

tleyden commented 8 years ago

Ok, I don't think that's going to help anyone trying to use this on BlueMix, but glad to hear you managed to get things working.