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

Model Manager issue after adding a new model #554

Closed
Simonvil opened this issue Jul 9, 2019 · 2 comments · Fixed by #573
Closed

Model Manager issue after adding a new model #554

Simonvil opened this issue Jul 9, 2019 · 2 comments · Fixed by #573
Assignees
Labels
bug Something isn't working

Comments

@Simonvil
Copy link

Simonvil commented Jul 9, 2019

I uploaded a personnalized model, but I think my Json file was wrong. Now everytime i reload the dasboard i get the error "Cannot get models meta information: Getting meta request has been failed. Code: 400. Message: Expecting value: line 1 column 1 (char 0)", and when i try to go to model manager, i get a "The managers are being setup.." that never ends.

Here's the output of "docker logs cvat":

simon@simon-VirtualBox:~/cvat$ docker logs cvat
2019-07-09 08:23:24,419 INFO RPC interface 'supervisor' initialized
2019-07-09 08:23:24,419 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-07-09 08:23:24,420 INFO supervisord started with pid 1
2019-07-09 08:23:25,422 INFO spawned: 'ssh-agent' with pid 8
2019-07-09 08:23:25,424 INFO spawned: 'git_status_updater' with pid 9
2019-07-09 08:23:25,426 INFO spawned: 'rqworker_low' with pid 10
2019-07-09 08:23:25,428 INFO spawned: 'runserver' with pid 12
2019-07-09 08:23:25,430 INFO spawned: 'rqworker_default_0' with pid 13
2019-07-09 08:23:25,432 INFO spawned: 'rqworker_default_1' with pid 14
2019-07-09 08:23:25,467 DEBG 'ssh-agent' stdout output:
SSH_AUTH_SOCK=/tmp/ssh-agent.sock; export SSH_AUTH_SOCK;
echo Agent pid 15;

2019-07-09 08:23:25,467 DEBG 'ssh-agent' stderr output:
debug2: fd 3 setting O_NONBLOCK

2019-07-09 08:23:25,497 DEBG 'runserver' stderr output:
wait-for-it.sh: waiting for db:5432 without a timeout

2019-07-09 08:23:25,498 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: waiting for redis:6379 without a timeout

2019-07-09 08:23:25,498 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: waiting for redis:6379 without a timeout

2019-07-09 08:23:25,499 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2019-07-09 08:23:25,499 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2019-07-09 08:23:25,504 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2019-07-09 08:23:25,505 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2019-07-09 08:23:25,507 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: redis:6379 is available after 0 seconds

2019-07-09 08:23:25,507 DEBG 'runserver' stderr output:
wait-for-it.sh: db:5432 is available after 0 seconds

2019-07-09 08:23:25,507 DEBG 'rqworker_default_0' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2019-07-09 08:23:25,507 DEBG 'rqworker_default_1' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2019-07-09 08:23:25,509 DEBG 'git_status_updater' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2019-07-09 08:23:25,509 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: redis:6379 is available after 0 seconds

2019-07-09 08:23:25,509 DEBG 'runserver' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

2019-07-09 08:23:25,510 DEBG 'rqworker_low' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device

2019-07-09 08:23:25,510 DEBG 'rqworker_low' stderr output:
bash: no job control in this shell

2019-07-09 08:23:25,930 DEBG 'git_status_updater' stdout output:
[setupvars.sh] OpenVINO environment initialized

2019-07-09 08:23:25,937 DEBG 'rqworker_low' stdout output:
[setupvars.sh] OpenVINO environment initialized

2019-07-09 08:23:25,941 DEBG 'runserver' stdout output:
[setupvars.sh] OpenVINO environment initialized

2019-07-09 08:23:25,949 DEBG 'rqworker_default_0' stdout output:
[setupvars.sh] OpenVINO environment initialized

2019-07-09 08:23:25,976 DEBG 'rqworker_default_1' stdout output:
[setupvars.sh] OpenVINO environment initialized

2019-07-09 08:23:26,349 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,350 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,353 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:26,353 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,373 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,377 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:26,379 DEBG 'rqworker_low' stderr output:
Identity added: /home/django/.ssh/id_rsa (/home/django/.ssh/id_rsa)

2019-07-09 08:23:26,379 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,383 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,384 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:26,386 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,389 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:26,389 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,393 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,394 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:26,396 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,402 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,403 DEBG 'ssh-agent' stderr output:
debug1: type 11

2019-07-09 08:23:26,403 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,407 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,409 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:26,410 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,414 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:26,414 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,419 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:26,421 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:26,424 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:26,424 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:26,424 INFO success: git_status_updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:26,427 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:26,427 INFO success: rqworker_low entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:26,427 INFO success: runserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:26,428 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:27,428 INFO success: rqworker_default_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:27,428 INFO success: rqworker_default_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-09 08:23:34,992 DEBG 'rqworker_low' stderr output:
System check identified some issues:

WARNINGS:
?: (2_0.W001) Your URL pattern 'api/swagger.slug:format$' [name='schema-json'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
08:23:34 RQ worker 'rq:worker:c98d5f4c9d01433ba5e6f38cd5a75df5' started, version 1.0

2019-07-09 08:23:34,992 DEBG 'rqworker_low' stderr output:
08:23:34 *** Listening on low...

2019-07-09 08:23:34,993 DEBG 'rqworker_default_1' stderr output:
System check identified some issues:

WARNINGS:
?: (2_0.W001) Your URL pattern 'api/swagger.slug:format$' [name='schema-json'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
08:23:34 RQ worker 'rq:worker:0422d72e435b4483a5eb939a83c3e795' started, version 1.0

2019-07-09 08:23:34,993 DEBG 'rqworker_default_1' stderr output:
08:23:34 *** Listening on default...

2019-07-09 08:23:34,994 DEBG 'rqworker_default_1' stderr output:
08:23:34 Cleaning registries for queue: default

2019-07-09 08:23:34,994 DEBG 'rqworker_low' stderr output:
08:23:34 Cleaning registries for queue: low

2019-07-09 08:23:34,998 DEBG 'rqworker_default_0' stderr output:
System check identified some issues:

WARNINGS:
?: (2_0.W001) Your URL pattern 'api/swagger.slug:format$' [name='schema-json'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
08:23:34 RQ worker 'rq:worker:5e2d70c5b9d240839954378134223037' started, version 1.0

2019-07-09 08:23:34,998 DEBG 'rqworker_default_0' stderr output:
08:23:34 *** Listening on default...

2019-07-09 08:23:35,937 DEBG 'runserver' stderr output:
System check identified some issues:

WARNINGS:
?: (2_0.W001) Your URL pattern 'api/swagger.slug:format$' [name='schema-json'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().

2019-07-09 08:23:35,938 DEBG 'runserver' stdout output:
Operations to perform:
Apply all migrations: admin, auth, auto_annotation, contenttypes, engine, git, sessions
Running migrations:
No migrations to apply.

2019-07-09 08:23:36,396 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:36,399 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:36,399 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:36,403 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:36,403 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:36,966 DEBG 'runserver' stdout output:

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

2019-07-09 08:23:37,199 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK

2019-07-09 08:23:37,201 DEBG 'ssh-agent' stderr output:
debug1: type 17

2019-07-09 08:23:37,203 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:37,207 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:37,222 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:38,856 DEBG 'runserver' stdout output:
Successfully ran command.
Server URL : http://localhost:8080/
Server Root : /tmp/mod_wsgi-localhost:8080:1000
Server Conf : /tmp/mod_wsgi-localhost:8080:1000/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

2019-07-09 08:23:38,894 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:38.894052 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181): Starting process 'localhost:8080' with threads=5.
[Tue Jul 09 08:23:38.894177 2019] [mpm_event:notice] [pid 12:tid 140163043092352] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.6.2 Python/3.5 configured -- resuming normal operations
[Tue Jul 09 08:23:38.894234 2019] [mpm_event:info] [pid 12:tid 140163043092352] AH00490: Server built: 2019-04-03T13:34:47
[Tue Jul 09 08:23:38.894240 2019] [core:notice] [pid 12:tid 140163043092352] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/mod_wsgi-localhost:8080:1000/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'

2019-07-09 08:23:38,894 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:38.894541 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181): Python home /usr.

2019-07-09 08:23:38,894 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:38.894565 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181): Initializing Python.

2019-07-09 08:23:38,923 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:38.921864 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181): Attach interpreter ''.

2019-07-09 08:23:38,928 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:38.925449 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181): Imported 'mod_wsgi'.
[Tue Jul 09 08:23:38.925519 2019] [wsgi:info] [pid 181:tid 140163043092352] mod_wsgi (pid=181, process='localhost:8080', application=''): Loading Python script file '/tmp/mod_wsgi-localhost:8080:1000/handler.wsgi'.

2019-07-09 08:23:39,205 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 17

2019-07-09 08:23:39,207 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:39,213 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11

2019-07-09 08:23:39,214 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4

2019-07-09 08:23:41,337 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:41.337214 2019] [wsgi:error] [pid 181:tid 140162826422016] [remote 172.19.0.1:39544] [2019-07-09 08:23:41,336] WARNING django.request: Not Found: /favicon.ico

2019-07-09 08:23:41,424 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:41.423992 2019] [wsgi:error] [pid 181:tid 140162834814720] [remote 172.19.0.1:39568] [2019-07-09 08:23:41,423] WARNING django.request: Bad Request: /auto_annotation/meta/get

2019-07-09 08:23:50,598 DEBG 'runserver' stderr output:
[Tue Jul 09 08:23:50.598400 2019] [wsgi:error] [pid 181:tid 140162818029312] [remote 10.33.128.86:54982] [2019-07-09 08:23:50,598] WARNING django.request: Bad Request: /auto_annotation/meta/get

2019-07-09 08:25:59,682 DEBG 'runserver' stderr output:
[Tue Jul 09 08:25:59.681968 2019] [wsgi:error] [pid 181:tid 140162843207424] [remote 10.33.128.86:55007] [2019-07-09 08:25:59,681] WARNING django.request: Bad Request: /auto_annotation/meta/get

2019-07-09 08:44:05,166 DEBG 'runserver' stderr output:
[Tue Jul 09 08:44:05.166158 2019] [wsgi:error] [pid 181:tid 140162834814720] [remote 10.33.128.86:55273] [2019-07-09 08:44:05,166] WARNING django.request: Bad Request: /auto_annotation/meta/get

2019-07-09 08:49:54,938 DEBG 'runserver' stderr output:
[Tue Jul 09 08:49:54.938086 2019] [wsgi:error] [pid 181:tid 140162809636608] [remote 172.19.0.1:39712] [2019-07-09 08:49:54,937] WARNING django.request: Bad Request: /auto_annotation/meta/get

@bsekachev bsekachev added the bug Something isn't working label Jul 9, 2019
@azhavoro
Copy link
Contributor

@Simonvil Could you please share your json? Thanks.

@azhavoro
Copy link
Contributor

@Simonvil PR #573 fixes the issue for future, in your case you should additionally delete the corrupted model via Admin panel(<your_cvat_hostname>/admin). Thanks for the bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants