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

webclient is not working

Open EthemCan opened this issue 3 years ago • 5 comments

I am having this issue when I run annotator_webclient so annotator can not be fully downloaded: Error invoking remote method 'docker-start-container': Error: (HTTP code 304) container already started -

EthemCan avatar Nov 07 '21 21:11 EthemCan

stop or remove container

docker ps
docker stop CONTAINER_ID_YOU_WANT_TO_STOP
docker rm -f CONTAINER_ID_YOU_WANT_TO_STOP

geminixiang avatar Dec 15 '21 15:12 geminixiang

@EthemCan Were you able to start the webclient? I have the same problem on MacBook with M1. First I downloaded coco-annotator, ran through Docker but webclient didn't work. I found a solution - the "airplay sharing" function had to be turned off. However, after disabling it, the webclient still does not run with the same error as yours.

1krupson avatar Feb 17 '22 09:02 1krupson

I also have m1 mac which use docker to run coco-annotator in. I still have no solution so that I stopped my project

On 17 Feb 2022 Thu at 12:39 1krupson @.***> wrote:

@EthemCan https://github.com/EthemCan Were you able to start the webclient? I have the same problem on MacBook with M1. First I downloaded coco-annotator, ran through Docker but webclient didn't work. I found a solution - the "airplay sharing" function had to be turned off. However, after disabling it, the webclient still does not run with the same error as yours.

— Reply to this email directly, view it on GitHub https://github.com/jsbroks/coco-annotator/issues/522#issuecomment-1042751752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMGS7HW72YJNK327CGKJWDU3S64XANCNFSM5HRHVRCQ . You are receiving this because you were mentioned.Message ID: @.***>

EthemCan avatar Feb 17 '22 16:02 EthemCan

I also have m1 mac which use docker to run coco-annotator in. I still have no solution so that I stopped my project

Try:

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 (which has similar host domain as COCO-ANNOTATOR
kill -9 <process id> or kill -9 `sudo lsof -t -i:5000`  # remove other servers which using the port 5000

Make sure Airply is unchecked on System Preferences › Sharing

If still not working, try reinstall everything:

brew reinstall --cask docker #install docker through brew cask works better in my case
brew reinstall docker-compose

pinglin-zhang avatar Apr 03 '22 05:04 pinglin-zhang

Solution below:

Turns out this is actually really easy to disable. You need to comment out the following line in the compose file.

(from this)

  • FILE_WATCHER=true

(to this)

- FILE_WATCHER=true

https://github.com/jsbroks/coco-annotator/blob/master/docker-compose.yml#L19

Setting it to false has no effect, it must be commented out, and that will disable the watcher which uses inotify.

1krupson avatar Apr 04 '22 08:04 1krupson