coco-annotator
coco-annotator copied to clipboard
webclient is not working
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 -
stop or remove container
docker ps
docker stop CONTAINER_ID_YOU_WANT_TO_STOP
docker rm -f CONTAINER_ID_YOU_WANT_TO_STOP
@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.
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: @.***>
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
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.