-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cannot deploy CVAT on AWS EC2 instance #1287
Comments
Hi, thanks for the report, could you please attach the output from the following command |
One more question: is the admin page http://13.230.9.169:8080/admin reachable? |
@azhavoro Hi, thanks for your reply. I stopped that ubuntu instance but now it starts again, the IP has changed to 3.112.247.130, I edited CVAT_HOST on
Then your command I am quite new to docker and django, please let me know what's happen or what should I do, I am willing to learn. Thank you! |
oh, my bad , right command is |
note that I remember I added
|
@rasheeddo thank you, both config look correct.... Could you please run |
This is an output from that command
|
@rasheeddo Many thanks for help with localisation of the issue. By some reason cvat_ui image does not build properly and index.html page is not replaced with right index.html fie(or maybe it isn't generated). I need reproduce this issue, what OS and docker are you using? |
Thanks for your help too, it would be nice if we can make it works or know the reason why it won't, let me know if you need more information about this machine issue.
Docker version on this machine is |
@rasheeddo |
I entered the command
and the last command gave me this
|
please change cvat-ui to cvat_ui in the command |
@azhavoro sorry, I changed that to
|
after that I entered
and then
|
Hi rasheeddo, I just deployed CVAT to a cloud VM, and experience similar issue as you when I try to change the ports setting in docker-compose.override.yml. Later on I found that I have to change cvat-proxy's ports setting in docker-compose.yml directly. Don't know why, but you can have a try. |
Hi @Onion-Skins , thanks for your method I tried it but still I ended up at "Welcome to nginx!" page.
which OS are you using on cloud VM? |
My cloud VM's OS is Ubuntu 18.04.
services: Furthermore, you may also try clearing all CVAT data and and then run "docker-compose ... build" again. On ubuntu, you can use this command to clear CVAT data: |
@Onion-Skins I just removed the ports from docker-compose.override.yml, clear all the data from your command, the config on my docker-compose.yml is as below
and docker-compose.override.yml is as your suggestion
then I run these
but again I still cannot access login page just ended up at welcome page, even tried remove cache on browser but still no luck... |
I saw the same issue and updated on #1264. |
|
Just more reported update, I rent a virtual machine server with ubuntu 18.04 OS and do all installation. On docker-compose.yml, I changed But when I tried install cvat on my another ubuntu18 PC, and specified the CVAT_HOST as its local ip address as e.i. |
@rasheeddo , could you please try my PR? Does it work for you? Be sure that all containers are down when you do build (they take some memory from your system). The primary issue is webpack with less.js memory consumption. It was addressed in the PR. P.S. 1GB isn't enough in general case to annotate data. We don't have exact requirements for the CVAT server but I would say that 4G is a minimum. But with #1316 you should be able to build CVAT on your 1GB instance and create simple tasks. I tested the scenario on an AWS 1GB instance. |
@nmanovic , thank you for your help, it's working now! I tried on both VM and AWS EC2, with the branch nm/fix_aws_guide |
Hi, I've managed to deploy "develop" branch to deal with the AWS problem, but now images above a couple of MBs can't be upload to CVAT. However, in master it was possible. Deployment scenario: t1.micro with 1GB mem. I've been reviewing logs but I can't only see this message (firstly seen on screen): Error: Could not create the task on the server. Work-horse process was terminated unexpectedly (waitpid returned 9). I could understand that 100 images could blow up 1GB VM, but with a couple of MB is enough to break the upload. |
@sramirez , why is it critical to use t1.micro in your case? |
I was thinking on using free tier, I would try with a few RAM more. |
I created an ubuntu machine on AWS EC2 and installed according to the installation guide, everything seems to be installed properly without any error.
![inbound_rules](https://user-images.githubusercontent.com/33745402/76964208-b3f4ce00-6965-11ea-8cde-9ac72ab2bbfb.png)
On my AWS EC2 Security Groups, I set Inbound Rules as following image
My docker-compose.override.yml is here
13.230.9.169 is my ubuntu instance IPv4 Public IP on AWS.
I did
![browser](https://user-images.githubusercontent.com/33745402/76965042-fe2a7f00-6966-11ea-8978-63567d9c5b04.png)
docker-compose down
docker-compose -f docker-compose.yml -f docker-compose.override.yml build
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
Then I go to my chrome browser on my local machine to access that ubuntu AWS instance, and I got this
even I tried both 13.230.9.169:7070 and 13.230.9.169:8080, but both end up at the same page.
here is my
docker-compose config
and here is my
![docker ps](https://user-images.githubusercontent.com/33745402/76965360-7d1fb780-6967-11ea-89ec-957fac9d20af.png)
docker ps
I tried the following solutions
#930 (comment)
#1249 (comment)
#1158 (comment)
but none of them work ;( , still I ended up at Welcome to nginx! page, please give me some suggestions. Thank you in advance!
Note: CVAT on my local machine works fine, with localhost:8080 on browser.
The text was updated successfully, but these errors were encountered: