Skip to content
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

404 error after installing #1815

Closed
2 tasks
repoAI opened this issue Jun 29, 2020 · 8 comments
Closed
2 tasks

404 error after installing #1815

repoAI opened this issue Jun 29, 2020 · 8 comments
Labels
question Further information is requested

Comments

@repoAI
Copy link

repoAI commented Jun 29, 2020

My actions before raising this issue

when i try to access remotely to the system i getting ngnix error, but when i trying localy, all is working

Expected Behaviour

Current Behaviour

working only localy

Possible Solution

Steps to Reproduce (for bugs)

  1. install the cvat as described in the installtion guide
  2. try to access from another computer or remotely

Context

the system in installed on ibm server, i want to access it remotely

Your Environment

  • Git hash commit (git log -1):
    ommit db29291 (HEAD -> develop, origin/develop, origin/HEAD)
    Author: Andrey Zhavoronkov 41117609+azhavoro@users.noreply.github.com
    Date: Thu Jun 25 22:28:01 2020 +0300

    added hash to js bundle names (Add hash to js bundle names #1803)

  • Docker version docker version (e.g. Docker 17.0.05):
    Client: Docker Engine - Community
    Version: 19.03.12
    API version: 1.40
    Go version: go1.13.10
    Git commit: 48a66213fe
    Built: Mon Jun 22 15:45:36 2020
    OS/Arch: linux/amd64
    Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.12
API version: 1.40 (minimum version 1.12)
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:44:07 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683

  • Are you using Docker Swarm or Kubernetes?
    nope
  • Operating System and version (e.g. Linux, Windows, MacOS):
    ubuntu 18.04
  • Code example or link to GitHub repo or gist to reproduce problem:
    http://cvat.repoai.com:8080
  • Other diagnostic information / logs:
    Logs from `cvat` container

Docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
673a13bea6ac nginx:stable-alpine "/bin/sh -c 'envsubs…" 6 minutes ago Up 6 minutes 0.0.0.0:8080->80/tcp cvat_proxy
d1c94c12c604 cvat_cvat_ui "nginx -g 'daemon of…" 6 minutes ago Up 6 minutes 80/tcp cvat_ui
60d745e0a60d cvat "/usr/bin/supervisord" 6 minutes ago Up 6 minutes 8080/tcp, 8443/tcp cvat
b013374759ba postgres:10-alpine "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 5432/tcp cvat_db
defac1e0cf0e redis:4.0-alpine "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 6379/tcp cvat_redis

docker cvat logs:
Last login: Sun Jun 28 21:22:01 on ttys000
zeevmindali@zeevs-MBP-2 ~ % ssh root@cvat.repoai.com
root@cvat.repoai.com's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-88-generic x86_64)

System information as of Mon Jun 29 04:55:50 UTC 2020

System load: 0.0 Users logged in: 0
Usage of /: 6.5% of 98.06GB IP address for eth0: 10.194.172.8
Memory usage: 3% IP address for eth1: 158.177.212.250
Swap usage: 0% IP address for docker0: 172.17.0.1
Processes: 121

104 packages can be updated.
60 updates are security updates.

Last login: Mon Jun 29 04:51:21 2020 from 46.116.99.82
root@cvat:# cd cvat
root@cvat:
/cvat# ls
CHANGELOG.md components datumaro supervisord.conf
CONTRIBUTING.md cvat docker-compose.ci.yml tests
Dockerfile cvat-canvas docker-compose.yml utils
Dockerfile.ci cvat-core manage.py wait-for-it.sh
Dockerfile.ui cvat-data mod_wsgi.conf
LICENSE cvat-ui package.json
README.md cvat_proxy ssh
root@cvat:/cvat# nano docker-sompose.yml
root@cvat:
/cvat# nano docker-compose.yml
root@cvat:/cvat# docker-compose up -d
Creating network "cvat_default" with the default driver
Creating cvat_db ... done
Creating cvat_redis ... done
Creating cvat ... done
Creating cvat_ui ... done
Creating cvat_proxy ... done
root@cvat:
/cvat# docker-compose down
Stopping cvat_proxy ... done
Stopping cvat_ui ... done
Stopping cvat ... done
Stopping cvat_db ... done
Stopping cvat_redis ... done
Removing cvat_proxy ... done
Removing cvat_ui ... done
Removing cvat ... done
Removing cvat_db ... done
Removing cvat_redis ... done
Removing network cvat_default
root@cvat:/cvat# nano docker-compose.yml
root@cvat:
/cvat# cd cvat
cvat/ cvat-canvas/ cvat-core/ cvat-data/ cvat-ui/ cvat_proxy/
root@cvat:/cvat# cd cvat_proxy
root@cvat:
/cvat/cvat_proxy# ls
conf.d nginx.conf
root@cvat:~/cvat/cvat_proxy# cat nginx.conf
worker_processes 2;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# For long domain names (e.g. AWS hosts)
server_names_hash_bucket_size 128;

include /etc/nginx/conf.d/*.conf;
client_max_body_size 0;

}
root@cvat:/cvat/cvat_proxy# cd ..
root@cvat:
/cvat# docker-compose up -d
Creating network "cvat_default" with the default driver
Creating cvat_redis ... done
Creating cvat_db ... done
Creating cvat ... done
Creating cvat_ui ... done
Creating cvat_proxy ... done
root@cvat:~/cvat# git log -1
commit db29291 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Andrey Zhavoronkov 41117609+azhavoro@users.noreply.github.com
Date: Thu Jun 25 22:28:01 2020 +0300

added hash to js bundle names (#1803)

root@cvat:~/cvat# docker version
Client: Docker Engine - Community
Version: 19.03.12
API version: 1.40
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:45:36 2020
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.12
API version: 1.40 (minimum version 1.12)
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:44:07 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
root@cvat:~/cvat# lb_release -a

Command 'lb_release' not found, did you mean:

command 'lsb_release' from deb lsb-release

Try: apt install

root@cvat:/cvat# lb-release -a
lb-release: command not found
root@cvat:
/cvat# ls
CHANGELOG.md components datumaro supervisord.conf
CONTRIBUTING.md cvat docker-compose.ci.yml tests
Dockerfile cvat-canvas docker-compose.yml utils
Dockerfile.ci cvat-core manage.py wait-for-it.sh
Dockerfile.ui cvat-data mod_wsgi.conf
LICENSE cvat-ui package.json
README.md cvat_proxy ssh
root@cvat:/cvat# cd cvat
root@cvat:
/cvat/cvat# ls
init.py requirements simpleworker.py utils
apps settings urls.py wsgi.py
root@cvat:/cvat/cvat# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
673a13bea6ac nginx:stable-alpine "/bin/sh -c 'envsubs…" 6 minutes ago Up 6 minutes 0.0.0.0:8080->80/tcp cvat_proxy
d1c94c12c604 cvat_cvat_ui "nginx -g 'daemon of…" 6 minutes ago Up 6 minutes 80/tcp cvat_ui
60d745e0a60d cvat "/usr/bin/supervisord" 6 minutes ago Up 6 minutes 8080/tcp, 8443/tcp cvat
b013374759ba postgres:10-alpine "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 5432/tcp cvat_db
defac1e0cf0e redis:4.0-alpine "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 6379/tcp cvat_redis
root@cvat:
/cvat/cvat# docker logs cvat
2020-06-29 04:59:37,424 INFO RPC interface 'supervisor' initialized
2020-06-29 04:59:37,424 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-06-29 04:59:37,424 INFO supervisord started with pid 1
2020-06-29 04:59:38,427 INFO spawned: 'ssh-agent' with pid 10
2020-06-29 04:59:38,433 INFO spawned: 'rqscheduler' with pid 11
2020-06-29 04:59:38,435 INFO spawned: 'runserver' with pid 12
2020-06-29 04:59:38,442 INFO spawned: 'rqworker_low' with pid 15
2020-06-29 04:59:38,447 INFO spawned: 'rqworker_default_0' with pid 16
2020-06-29 04:59:38,453 INFO spawned: 'rqworker_default_1' with pid 21
2020-06-29 04:59:38,457 INFO spawned: 'git_status_updater' with pid 26
2020-06-29 04:59:38,464 INFO spawned: 'clamav_update' with pid 34
2020-06-29 04:59:38,469 DEBG 'ssh-agent' stdout output:
SSH_AUTH_SOCK=/tmp/ssh-agent.sock; export SSH_AUTH_SOCK;
echo Agent pid 14;

2020-06-29 04:59:38,470 DEBG 'ssh-agent' stderr output:
debug2: fd 3 setting O_NONBLOCK

2020-06-29 04:59:38,470 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2020-06-29 04:59:38,470 DEBG 'runserver' stderr output:
wait-for-it.sh: waiting for cvat_db:5432 without a timeout

2020-06-29 04:59:38,474 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2020-06-29 04:59:38,474 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2020-06-29 04:59:38,475 DEBG 'runserver' stderr output:
wait-for-it.sh: cvat_db:5432 is available after 0 seconds

2020-06-29 04:59:38,477 DEBG 'rqscheduler' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,477 DEBG 'runserver' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,478 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140037915600584 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stderr)>
2020-06-29 04:59:38,478 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140037915600440 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stdout)>
2020-06-29 04:59:38,479 INFO exited: clamav_update (exit status 0; not expected)
2020-06-29 04:59:38,480 DEBG received SIGCLD indicating a child quit
2020-06-29 04:59:38,487 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2020-06-29 04:59:38,488 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2020-06-29 04:59:38,492 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2020-06-29 04:59:38,496 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2020-06-29 04:59:38,500 DEBG 'rqworker_low' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,500 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2020-06-29 04:59:38,500 DEBG 'rqworker_default_0' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,502 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2020-06-29 04:59:38,504 DEBG 'git_status_updater' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,541 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2020-06-29 04:59:38,543 DEBG 'rqworker_default_1' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2020-06-29 04:59:38,678 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,693 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,696 DEBG 'ssh-agent' stderr output:
debug1: type 11

2020-06-29 04:59:38,696 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,701 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,704 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:38,706 DEBG 'git_status_updater' stderr output:
Identity added: /home/django/.ssh/id_rsa (/home/django/.ssh/id_rsa)

2020-06-29 04:59:38,706 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,726 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,729 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:38,733 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,738 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:38,739 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,766 DEBG 'rqscheduler' stderr output:
04:59:38 Registering birth

2020-06-29 04:59:38,769 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,771 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:38,774 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,796 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:38,797 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,812 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,814 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:38,817 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,830 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:38,837 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,866 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:38,875 DEBG 'ssh-agent' stderr output:
debug1: type 17
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:38,897 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:39,916 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,916 INFO success: rqscheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,917 INFO success: runserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,917 INFO success: rqworker_low entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,917 INFO success: rqworker_default_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,917 INFO success: rqworker_default_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,917 INFO success: git_status_updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-29 04:59:39,919 INFO spawned: 'clamav_update' with pid 119
2020-06-29 04:59:39,933 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140037915600728 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stdout)>
2020-06-29 04:59:39,933 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140037915600296 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stderr)>
2020-06-29 04:59:39,933 INFO exited: clamav_update (exit status 0; not expected)
2020-06-29 04:59:39,933 DEBG received SIGCLD indicating a child quit
2020-06-29 04:59:41,938 INFO spawned: 'clamav_update' with pid 165
2020-06-29 04:59:41,955 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140037915600728 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stderr)>
2020-06-29 04:59:41,960 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140037915600512 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stdout)>
2020-06-29 04:59:41,961 INFO exited: clamav_update (exit status 0; not expected)
2020-06-29 04:59:41,961 DEBG received SIGCLD indicating a child quit
2020-06-29 04:59:44,966 INFO spawned: 'clamav_update' with pid 181
2020-06-29 04:59:44,978 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140037915600440 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stdout)>
2020-06-29 04:59:44,979 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140037915601016 for <Subprocess at 140037915751992 with name clamav_update in state STARTING> (stderr)>
2020-06-29 04:59:44,979 INFO exited: clamav_update (exit status 0; not expected)
2020-06-29 04:59:44,979 DEBG received SIGCLD indicating a child quit
2020-06-29 04:59:45,980 INFO gave up: clamav_update entered FATAL state, too many start retries too quickly
2020-06-29 04:59:47,318 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:ac9b8c38401541bdb56f6f94cb1e2f44' started, version 1.0

2020-06-29 04:59:47,319 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:*** Listening on low...

2020-06-29 04:59:47,320 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:Cleaning registries for queue: low

2020-06-29 04:59:47,343 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:118f588fb63e40c2ad84984ef2ae7d87' started, version 1.0

2020-06-29 04:59:47,345 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:*** Listening on default...

2020-06-29 04:59:47,345 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:Cleaning registries for queue: default

2020-06-29 04:59:47,422 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:621595ef7d874e7f9553f74b29d29a5c' started, version 1.0

2020-06-29 04:59:47,423 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:*** Listening on default...

2020-06-29 04:59:47,900 DEBG 'runserver' stdout output:
Operations to perform:
Apply all migrations: account, admin, auth, authtoken, contenttypes, engine, git, sessions, sites, socialaccount
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

2020-06-29 04:59:48,743 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:48,748 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:48,748 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:48,752 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:48,752 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:49,506 DEBG 'runserver' stdout output:

0 static files copied to '/home/django/static', 411 unmodified.

2020-06-29 04:59:49,787 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:49,789 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:49,791 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:49,795 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:49,795 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:56,005 DEBG 'runserver' stdout output:
Successfully ran command.
Server URL : http://localhost:8080/
Server Root : /tmp/cvat-server
Server Conf : /tmp/cvat-server/httpd.conf
Error Log File : /dev/stderr (INFO)
Request Capacity : 5 (1 process * 5 threads)
Request Timeout : 60 (seconds)
Startup Timeout : 15 (seconds)
Queue Backlog : 100 (connections)
Queue Timeout : 45 (seconds)
Server Capacity : 20 (event/worker), 20 (prefork)
Server Backlog : 500 (connections)
Locale Setting : C.UTF-8

2020-06-29 04:59:56,061 DEBG 'runserver' stderr output:
[Mon Jun 29 04:59:56.061010 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229): Starting process 'localhost:8080' with threads=5.
[Mon Jun 29 04:59:56.061168 2020] [mpm_event:notice] [pid 12:tid 140181305505664] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.7.1 Python/3.5 configured -- resuming normal operations
[Mon Jun 29 04:59:56.061303 2020] [mpm_event:info] [pid 12:tid 140181305505664] AH00490: Server built: 2019-10-08T13:31:25
[Mon Jun 29 04:59:56.061313 2020] [core:notice] [pid 12:tid 140181305505664] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/cvat-server/httpd.conf -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND'

2020-06-29 04:59:56,061 DEBG 'runserver' stderr output:
[Mon Jun 29 04:59:56.061675 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229): Python home /usr.
[Mon Jun 29 04:59:56.061704 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229): Initializing Python.

2020-06-29 04:59:56,094 DEBG 'runserver' stderr output:
[Mon Jun 29 04:59:56.094171 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229): Attach interpreter ''.

2020-06-29 04:59:56,098 DEBG 'runserver' stderr output:
[Mon Jun 29 04:59:56.098276 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229): Imported 'mod_wsgi'.

2020-06-29 04:59:56,098 DEBG 'runserver' stderr output:
[Mon Jun 29 04:59:56.098349 2020] [wsgi:info] [pid 229:tid 140181305505664] mod_wsgi (pid=229, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.

2020-06-29 04:59:56,391 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2020-06-29 04:59:56,393 DEBG 'ssh-agent' stderr output:
debug1: type 17

2020-06-29 04:59:56,396 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:56,401 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:56,402 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

root@cvat:/cvat/cvat# docker logs cvat >> log-docker
root@cvat:
/cvat/cvat# nano log-docker

GNU nano 2.9.3 log-docker

2020-06-29 04:59:56,396 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2020-06-29 04:59:56,401 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2020-06-29 04:59:56,402 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

Next steps

You may join our Gitter channel for community support.

@azhavoro
Copy link
Contributor

@zeevmindali
Copy link

yes, did it already

@azhavoro
Copy link
Contributor

Could you attach your docker-compose config and logs from cvat_proxy container docker logs cvat_proxy?

@zeevmindali
Copy link

proxy logs:
109.184.201.132 - - [29/Jun/2020:06:46:07 +0000] "GET / HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36"
109.184.201.132 - - [29/Jun/2020:06:46:09 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "http://cvat.repoai.com:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36"

docker-compose.ci.yml:

Copyright (C) 2018-2020 Intel Corporation

SPDX-License-Identifier: MIT

version: "2.3"

services:
cvat_db:
container_name: cvat_db
image: postgres:10-alpine
networks:
default:
aliases:
- db
restart: always
environment:
POSTGRES_USER: root
POSTGRES_DB: cvat
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- cvat_db:/var/lib/postgresql/data

cvat_redis:
container_name: cvat_redis
image: redis:4.0-alpine
networks:
default:
aliases:
- redis
restart: always

cvat:
container_name: cvat
image: cvat
restart: always
depends_on:
- cvat_redis
- cvat_db
build:
context: .
args:
http_proxy:
https_proxy:
no_proxy:
socks_proxy:
TF_ANNOTATION: "no"
AUTO_SEGMENTATION: "no"
USER: "django"
DJANGO_CONFIGURATION: "production"
TZ: "Etc/UTC"
OPENVINO_TOOLKIT: "no"
CLAM_AV: "no"
environment:
DJANGO_MODWSGI_EXTRA_ARGS: ""
ALLOWED_HOSTS: '*'
CVAT_REDIS_HOST: "cvat_redis"
CVAT_POSTGRES_HOST: "cvat_db"
volumes:
- cvat_data:/home/django/data
- cvat_keys:/home/django/keys
- cvat_logs:/home/django/logs
- cvat_models:/home/django/models

cvat_ui:
container_name: cvat_ui
restart: always
build:
context: .
args:
http_proxy:
https_proxy:
no_proxy:
socks_proxy:
dockerfile: Dockerfile.ui

networks:
  default:
    aliases:
      - ui
depends_on:
  - cvat

cvat_proxy:
container_name: cvat_proxy
image: nginx:stable-alpine
restart: always
depends_on:
- cvat
- cvat_ui
environment:
CVAT_HOST: repoai.com
ports:
- "8080:80"
volumes:
- ./cvat_proxy/nginx.conf:/etc/nginx/nginx.conf:ro
- ./cvat_proxy/conf.d/cvat.conf.template:/etc/nginx/conf.d/cvat.conf.template:ro
command: /bin/sh -c "envsubst '$$CVAT_HOST' < /etc/nginx/conf.d/cvat.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"

volumes:
cvat_db:
cvat_data:
cvat_keys:
cvat_logs:
cvat_models:

@azhavoro
Copy link
Contributor

Try to set CVAT_HOST to cvat.repoai.com

@zeevmindali
Copy link

sweet, it worked now, the subdomain made the problem.
if I want to use an ip instead of domain, should I write in CVAT_HOST the ip of the computer?

@azhavoro
Copy link
Contributor

azhavoro commented Jun 29, 2020

Yes, you should use ip in this case, but it's possible to use both (i.e. CVAT_HOST: "cvat.repoai.com x.x.x.x"). Please see more details here http://nginx.org/en/docs/http/server_names.html.

@azhavoro azhavoro added the question Further information is requested label Jun 29, 2020
@azhavoro
Copy link
Contributor

Duplicate of #1806

@azhavoro azhavoro marked this as a duplicate of #1806 Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants