coco-annotator icon indicating copy to clipboard operation
coco-annotator copied to clipboard

Cannot install COCO Annotator using Docker either on Linux or Windows

Open FeriBolour opened this issue 4 years ago • 5 comments

Hello Everyone, I haven't worked with Docker before trying to use this tool. I followed all the installation steps from docker and COCO-Annotator both on Linux and Windows and it always gets stuck in the middle of the installation at the same place.

When I run $ docker-compose up I get this error: . . . annotator_workers | [2021-10-12 00:17:02,694: INFO/MainProcess] mingle: all alone annotator_workers | [2021-10-12 00:17:02,807: INFO/MainProcess] celery@67c1eba9b51e ready. annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> closing AMQP connection <0.778.0> (172.18.0.4:59266 -> 172.18.0.2:5672): annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> missed heartbeats from client, timeout: 60s

I would appreciate any kind of help. Am I doing something wrong?

Thank You

FeriBolour avatar Oct 12 '21 00:10 FeriBolour

Verify docker and docker-compose versions.

tejasri19 avatar Oct 13 '21 09:10 tejasri19

After tons of hours I finally figure it out how to solve this problem, which due to the system conflict on macOs. (So problem occurred and solved under macOS).

In my case, I got the error read as: response from daemon: Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use on my docker container for COCO-Annotator.

This is because under the MacOS system, AirPlayer Server is also using the port :5000, which is in conflict with the localhost of COCO-Annotator.

To solve this, go to:

System Preferences › Sharing, and unchecking AirPlay Receiver to release port 5000

And then back to terminal:

$ cd coco-annotator
$ docker-compose up 

Up to this step I finally got to install COCO-Annotator and enter the localhost:5000.

If the problem is still not solved, try to do:

docker-compose down  # Stop container on current dir if there is a docker-compose.yml
docker rm -fv $(docker ps -aq)  # Remove all containers
sudo lsof -i -P -n | grep 5000  # List who's using the port 5000
kill -9 <process id> or kill -9 `sudo lsof -t -i:5000`  # remove other servers which using the port 5000

Good luck :)

pinglin-zhang avatar Apr 02 '22 12:04 pinglin-zhang

Hello Everyone, I haven't worked with Docker before trying to use this tool. I followed all the installation steps from docker and COCO-Annotator both on Linux and Windows and it always gets stuck in the middle of the installation at the same place.

When I run $ docker-compose up I get this error: . . . annotator_workers | [2021-10-12 00:17:02,694: INFO/MainProcess] mingle: all alone annotator_workers | [2021-10-12 00:17:02,807: INFO/MainProcess] celery@67c1eba9b51e ready. annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> closing AMQP connection <0.778.0> (172.18.0.4:59266 -> 172.18.0.2:5672): annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> missed heartbeats from client, timeout: 60s

I would appreciate any kind of help. Am I doing something wrong?

Thank You

Did you solve it? Even I am stuck at this step.

I have also tried

docker-compose down  # Stop container on current dir if there is a docker-compose.yml
docker rm -fv $(docker ps -aq)  # Remove all containers
sudo lsof -i -P -n | grep 5000  # List who's using the port 5000
kill -9 <process id> or kill -9 `sudo lsof -t -i:5000`  # remove other servers which using the port 5000

but still facing this problem.

santosh-shriyan avatar Feb 08 '23 07:02 santosh-shriyan

Hello Everyone, I haven't worked with Docker before trying to use this tool. I followed all the installation steps from docker and COCO-Annotator both on Linux and Windows and it always gets stuck in the middle of the installation at the same place. When I run $ docker-compose up I get this error: . . . annotator_workers | [2021-10-12 00:17:02,694: INFO/MainProcess] mingle: all alone annotator_workers | [2021-10-12 00:17:02,807: INFO/MainProcess] celery@67c1eba9b51e ready. annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> closing AMQP connection <0.778.0> (172.18.0.4:59266 -> 172.18.0.2:5672): annotator_message_q | 2021-10-12 00:20:01.659862+00:00 [erro] <0.778.0> missed heartbeats from client, timeout: 60s I would appreciate any kind of help. Am I doing something wrong? Thank You

Did you solve it? Even I am stuck at this step.

I have also tried

docker-compose down  # Stop container on current dir if there is a docker-compose.yml
docker rm -fv $(docker ps -aq)  # Remove all containers
sudo lsof -i -P -n | grep 5000  # List who's using the port 5000
kill -9 <process id> or kill -9 `sudo lsof -t -i:5000`  # remove other servers which using the port 5000

but still facing this problem.

Yeah i solved it with this solution and I have shared it in my last reply (also see here https://github.com/jsbroks/coco-annotator/issues/517#issuecomment-1086626277). Good luck.

pinglin-zhang avatar Feb 08 '23 07:02 pinglin-zhang

I have encountered a similar problem, and the error message is as follows: annotator_message_q | [error]<0.729.0>closing AMQP connection <0.729.0> (172.18.0.5:50396 -> 172.18.0.4:5672): annotator_message_q | [error]<0.729.0> missed heartbeats from client, timeout: 60s But I checked the port occupation. Even if no program occupied port 5000, I still reported an error. Why?

LiuMingrui-Study avatar Feb 09 '23 07:02 LiuMingrui-Study