cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.38k stars 2.97k forks source link

Custom Detectron2 model not showing in CVAT Model selection and causing 500 server error eventough it works on nuclio when tested. #4442

Closed fathyshalaby closed 2 years ago

fathyshalaby commented 2 years ago

My actions before raising this issue

Expected Behaviour

The Serverless function is based on the serverless function tutorial where a detectron2 model is used for auto-labeling. It is expected that if I add my own custom model with 11 classes and weights (.pth) file that cvat should display the new model and I can use it for auto-labeling.

Current Behaviour

Currently when I upload the model through nuclio and turn it into a severless function it works fine with no errors and when tested on nuclio produces no error and sends a valid response. However when CVAT (locally) gets refreshed (the browser window), one receives a Server Error 500 (from /api/lambda/functions).

Possible Solution

Steps to Reproduce (for bugs)

1.launch the cvat by the docker compose as stated in the severless tutorial 2.run the ./serverless/deploy_cpu.sh ./serverless/pytorch/facebookresearch/detectron2/custommodel/

  1. Open CVAT

Context

Your Environment

-functional.yaml is the same as the tutorial.

''

2022-03-11 08:47:13,984 DEBG 'ssh-agent' stderr output: debug2: fd 3 setting O_NONBLOCK

2022-03-11 08:47:13,985 DEBG 'rqworker_low' stderr output: wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2022-03-11 08:47:13,986 DEBG 'git_status_updater' stderr output: wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2022-03-11 08:47:13,986 DEBG 'rqscheduler' stderr output: wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2022-03-11 08:47:13,986 DEBG 'runserver' stderr output: wait-for-it.sh: waiting for cvat_db:5432 without a timeout

2022-03-11 08:47:13,986 DEBG 'rqworker_default_0' stderr output: wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2022-03-11 08:47:13,987 DEBG 'rqworker_default_1' stderr output: wait-for-it.sh: waiting for cvat_redis:6379 without a timeout

2022-03-11 08:47:13,989 DEBG 'rqworker_low' stderr output: wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2022-03-11 08:47:13,989 DEBG 'runserver' stderr output: wait-for-it.sh: cvat_db:5432 is available after 0 seconds

2022-03-11 08:47:13,990 DEBG 'git_status_updater' stderr output: wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2022-03-11 08:47:13,990 DEBG 'rqscheduler' stderr output: wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2022-03-11 08:47:13,990 DEBG 'rqworker_default_0' stderr output: wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2022-03-11 08:47:13,990 DEBG 'rqworker_default_1' stderr output: wait-for-it.sh: cvat_redis:6379 is available after 0 seconds

2022-03-11 08:47:13,990 DEBG 'rqworker_low' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:13,990 DEBG 'git_status_updater' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:13,991 DEBG 'rqscheduler' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:13,991 DEBG 'runserver' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:13,991 DEBG 'rqworker_default_1' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:13,991 DEBG 'rqworker_default_0' stderr output: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

2022-03-11 08:47:14,165 DEBG 'rqscheduler' stderr output: 08:47:14 Registering birth

2022-03-11 08:47:14,179 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:14,184 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:14,188 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:14,190 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:14,191 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:14,191 DEBG 'runserver' stderr output: Identity added: /home/django/.ssh/id_rsa (django@8d2a2d63b18e)

2022-03-11 08:47:14,194 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:14,196 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:14,198 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:14,216 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:14,230 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:14,231 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:14,234 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:14,238 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:14,239 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:14,240 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:14,244 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:14,247 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:14,249 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:14,250 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:14,253 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:15,255 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,256 INFO spawned: 'clamav_update' with pid 411 2022-03-11 08:47:15,256 INFO success: git_status_updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,256 INFO success: rqscheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,256 INFO success: rqworker_default_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,257 INFO success: rqworker_default_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,257 INFO success: rqworker_low entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,257 INFO success: runserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-03-11 08:47:15,261 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 139733674666736 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stdout)> 2022-03-11 08:47:15,261 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 139733674666832 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stderr)> 2022-03-11 08:47:15,261 INFO exited: clamav_update (exit status 0; not expected) 2022-03-11 08:47:15,261 DEBG received SIGCHLD indicating a child quit 2022-03-11 08:47:17,265 INFO spawned: 'clamav_update' with pid 610 2022-03-11 08:47:17,269 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 139733674913408 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stdout)> 2022-03-11 08:47:17,269 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 139733674666688 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stderr)> 2022-03-11 08:47:17,269 INFO exited: clamav_update (exit status 0; not expected) 2022-03-11 08:47:17,269 DEBG received SIGCHLD indicating a child quit 2022-03-11 08:47:19,377 DEBG 'rqworker_default_0' stderr output: DEBUG - 2022-03-11 08:47:19,376 - worker - Registering birth of worker 29f03e7845ac43feb2ba24536fb7369f

2022-03-11 08:47:19,379 DEBG 'rqworker_default_0' stderr output: INFO - 2022-03-11 08:47:19,379 - worker - Worker rq:worker:29f03e7845ac43feb2ba24536fb7369f: started, version 1.5.1

2022-03-11 08:47:19,379 DEBG 'rqworker_default_0' stderr output: INFO - 2022-03-11 08:47:19,379 - worker - *** Listening on default...

2022-03-11 08:47:19,379 DEBG 'rqworker_default_0' stderr output: DEBUG - 2022-03-11 08:47:19,379 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,380 DEBG 'rqworker_default_1' stderr output: DEBUG - 2022-03-11 08:47:19,379 - worker - Registering birth of worker 2dc13898abb3407e9946b830fb4969e4

2022-03-11 08:47:19,380 DEBG 'rqworker_default_0' stderr output: INFO - 2022-03-11 08:47:19,380 - worker - Cleaning registries for queue: default

2022-03-11 08:47:19,381 DEBG 'rqworker_default_0' stderr output: DEBUG - 2022-03-11 08:47:19,381 - worker - *** Listening on default...

2022-03-11 08:47:19,381 DEBG 'rqworker_default_0' stderr output: DEBUG - 2022-03-11 08:47:19,381 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,381 DEBG 'rqworker_default_1' stderr output: INFO - 2022-03-11 08:47:19,381 - worker - Worker rq:worker:2dc13898abb3407e9946b830fb4969e4: started, version 1.5.1

2022-03-11 08:47:19,381 DEBG 'rqworker_default_1' stderr output: INFO - 2022-03-11 08:47:19,381 - worker - *** Listening on default...

2022-03-11 08:47:19,382 DEBG 'rqworker_default_1' stderr output: DEBUG - 2022-03-11 08:47:19,381 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,382 DEBG 'rqworker_default_1' stderr output: DEBUG - 2022-03-11 08:47:19,382 - worker - *** Listening on default...

2022-03-11 08:47:19,383 DEBG 'rqworker_default_1' stderr output: DEBUG - 2022-03-11 08:47:19,382 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,387 DEBG 'rqworker_low' stderr output: DEBUG - 2022-03-11 08:47:19,386 - worker - Registering birth of worker 2fd880818f2f49179bbc6ad713fae4eb

2022-03-11 08:47:19,388 DEBG 'rqworker_low' stderr output: INFO - 2022-03-11 08:47:19,388 - worker - Worker rq:worker:2fd880818f2f49179bbc6ad713fae4eb: started, version 1.5.1

2022-03-11 08:47:19,388 DEBG 'rqworker_low' stderr output: INFO - 2022-03-11 08:47:19,388 - worker - *** Listening on low...

2022-03-11 08:47:19,389 DEBG 'rqworker_low' stderr output: DEBUG - 2022-03-11 08:47:19,388 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,389 DEBG 'rqworker_low' stderr output: INFO - 2022-03-11 08:47:19,389 - worker - Cleaning registries for queue: low

2022-03-11 08:47:19,390 DEBG 'rqworker_low' stderr output: DEBUG - 2022-03-11 08:47:19,390 - worker - *** Listening on low...

2022-03-11 08:47:19,390 DEBG 'rqworker_low' stderr output: DEBUG - 2022-03-11 08:47:19,390 - worker - Sent heartbeat to prevent worker timeout. Next one should arrive within 480 seconds.

2022-03-11 08:47:19,620 DEBG 'runserver' stdout output: SSH keys were not found Copying them from keys volume Operations to perform: Apply all migrations: account, admin, auth, authtoken, contenttypes, dataset_repo, engine, organizations, sessions, sites, socialaccount Running migrations: No migrations to apply.

2022-03-11 08:47:20,406 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:20,408 INFO spawned: 'clamav_update' with pid 772 2022-03-11 08:47:20,408 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:20,410 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:20,412 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 139733674506224 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stdout)> 2022-03-11 08:47:20,412 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 139733674666880 for <Subprocess at 139733674912736 with name clamav_update in state STARTING> (stderr)> 2022-03-11 08:47:20,412 INFO exited: clamav_update (exit status 0; not expected) 2022-03-11 08:47:20,412 DEBG received SIGCHLD indicating a child quit 2022-03-11 08:47:20,415 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:20,415 INFO gave up: clamav_update entered FATAL state, too many start retries too quickly 2022-03-11 08:47:20,814 DEBG 'runserver' stdout output:

162 static files copied to '/home/django/static'.

2022-03-11 08:47:21,091 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:21,093 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:21,095 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:21,100 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:47:25,479 DEBG 'runserver' stdout output: Successfully ran command.

2022-03-11 08:47:25,481 DEBG 'runserver' stdout output: 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

2022-03-11 08:47:25,546 DEBG 'runserver' stderr output: [Fri Mar 11 08:47:25.546627 2022] [mpm_event:notice] [pid 15:tid 140038403603520] AH00489: Apache/2.4.41 (Ubuntu) mod_wsgi/4.7.1 Python/3.8 configured -- resuming normal operations [Fri Mar 11 08:47:25.546678 2022] [mpm_event:info] [pid 15:tid 140038403603520] AH00490: Server built: 2022-01-05T14:49:56 [Fri Mar 11 08:47:25.546680 2022] [core:notice] [pid 15:tid 140038403603520] 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'

2022-03-11 08:47:25,546 DEBG 'runserver' stderr output: [Fri Mar 11 08:47:25.546629 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945): Starting process 'localhost:8080' with threads=5.

2022-03-11 08:47:25,547 DEBG 'runserver' stderr output: [Fri Mar 11 08:47:25.547078 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945): Python home /opt/venv. [Fri Mar 11 08:47:25.547132 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945): Initializing Python.

2022-03-11 08:47:25,570 DEBG 'runserver' stderr output: [Fri Mar 11 08:47:25.570339 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945): Attach interpreter ''.

2022-03-11 08:47:25,573 DEBG 'runserver' stderr output: [Fri Mar 11 08:47:25.573135 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945): Imported 'mod_wsgi'. [Fri Mar 11 08:47:25.573164 2022] [wsgi:info] [pid 945:tid 140038403603520] mod_wsgi (pid=945, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.

2022-03-11 08:47:25,823 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK

2022-03-11 08:47:25,825 DEBG 'ssh-agent' stderr output: debug1: process_message: socket 1 (fd=4) type 17

2022-03-11 08:47:25,827 DEBG 'ssh-agent' stderr output: debug1: process_add_identity: add ssh-rsa SHA256:Grvtj0/bKv1TMoGFqdu4X6DBFuGp+fXlOxJksX63ioE "django@8d2a2d63b18e" (life: 0) (confirm: 0) (provider: none)

2022-03-11 08:47:25,832 DEBG 'ssh-agent' stderr output: debug2: fd 4 setting O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11

2022-03-11 08:48:58,395 DEBG 'runserver' stderr output: [Fri Mar 11 08:48:58.395009 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] [2022-03-11 08:48:58,386] ERROR django.request: Internal Server Error: /api/lambda/functions [Fri Mar 11 08:48:58.395028 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] Traceback (most recent call last): [Fri Mar 11 08:48:58.395030 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner [Fri Mar 11 08:48:58.395032 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = get_response(request) [Fri Mar 11 08:48:58.395034 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response [Fri Mar 11 08:48:58.395036 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = wrapped_callback(request, *callback_args, callback_kwargs) [Fri Mar 11 08:48:58.395037 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view [Fri Mar 11 08:48:58.395039 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return view_func(*args, *kwargs) [Fri Mar 11 08:48:58.395041 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/viewsets.py", line 125, in view [Fri Mar 11 08:48:58.395042 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return self.dispatch(request, args, kwargs) [Fri Mar 11 08:48:58.395044 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch [Fri Mar 11 08:48:58.395045 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = self.handle_exception(exc) [Fri Mar 11 08:48:58.395047 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception [Fri Mar 11 08:48:58.395049 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] self.raise_uncaught_exception(exc) [Fri Mar 11 08:48:58.395050 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception [Fri Mar 11 08:48:58.395052 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] raise exc [Fri Mar 11 08:48:58.395053 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch [Fri Mar 11 08:48:58.395055 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = handler(request, *args, *kwargs) [Fri Mar 11 08:48:58.395056 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 608, in func_wrapper [Fri Mar 11 08:48:58.395058 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] data = func(args, **kwargs) [Fri Mar 11 08:48:58.395059 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 650, in list [Fri Mar 11 08:48:58.395061 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return [f.to_dict() for f in gateway.list()] [Fri Mar 11 08:48:58.395062 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 69, in list [Fri Mar 11 08:48:58.395064 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = [LambdaFunction(self, item) for item in data.values()] [Fri Mar 11 08:48:58.395067 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 69, in [Fri Mar 11 08:48:58.395069 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = [LambdaFunction(self, item) for item in data.values()] [Fri Mar 11 08:48:58.395070 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 102, in init [Fri Mar 11 08:48:58.395072 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] spec = json.loads(meta_anno.get('spec') or '[]') [Fri Mar 11 08:48:58.395073 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/init.py", line 357, in loads [Fri Mar 11 08:48:58.395075 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return _default_decoder.decode(s) [Fri Mar 11 08:48:58.395076 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/decoder.py", line 337, in decode [Fri Mar 11 08:48:58.395078 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] obj, end = self.raw_decode(s, idx=_w(s, 0).end()) [Fri Mar 11 08:48:58.395079 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode [Fri Mar 11 08:48:58.395081 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] raise JSONDecodeError("Expecting value", s, err.value) from None [Fri Mar 11 08:48:58.395083 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] json.decoder.JSONDecodeError: Expecting value: line 13 column 1 (char 402)

2022-03-11 08:48:58,395 DEBG 'runserver' stderr output: [Fri Mar 11 08:48:58.395214 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] ERROR - 2022-03-11 08:48:58,386 - log - Internal Server Error: /api/lambda/functions [Fri Mar 11 08:48:58.395218 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] Traceback (most recent call last): [Fri Mar 11 08:48:58.395219 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner [Fri Mar 11 08:48:58.395221 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = get_response(request) [Fri Mar 11 08:48:58.395223 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response [Fri Mar 11 08:48:58.395224 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = wrapped_callback(request, *callback_args, callback_kwargs) [Fri Mar 11 08:48:58.395226 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view [Fri Mar 11 08:48:58.395228 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return view_func(*args, *kwargs) [Fri Mar 11 08:48:58.395229 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/viewsets.py", line 125, in view [Fri Mar 11 08:48:58.395231 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return self.dispatch(request, args, kwargs) [Fri Mar 11 08:48:58.395232 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch [Fri Mar 11 08:48:58.395234 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = self.handle_exception(exc) [Fri Mar 11 08:48:58.395235 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception [Fri Mar 11 08:48:58.395237 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] self.raise_uncaught_exception(exc) [Fri Mar 11 08:48:58.395238 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception [Fri Mar 11 08:48:58.395240 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] raise exc [Fri Mar 11 08:48:58.395241 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/opt/venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch [Fri Mar 11 08:48:58.395243 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = handler(request, *args, *kwargs) [Fri Mar 11 08:48:58.395245 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 608, in func_wrapper [Fri Mar 11 08:48:58.395246 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] data = func(args, **kwargs) [Fri Mar 11 08:48:58.395248 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 650, in list [Fri Mar 11 08:48:58.395249 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return [f.to_dict() for f in gateway.list()] [Fri Mar 11 08:48:58.395251 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 69, in list [Fri Mar 11 08:48:58.395252 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = [LambdaFunction(self, item) for item in data.values()] [Fri Mar 11 08:48:58.395255 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 69, in [Fri Mar 11 08:48:58.395257 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] response = [LambdaFunction(self, item) for item in data.values()] [Fri Mar 11 08:48:58.395258 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/home/django/cvat/apps/lambda_manager/views.py", line 102, in init [Fri Mar 11 08:48:58.395260 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] spec = json.loads(meta_anno.get('spec') or '[]') [Fri Mar 11 08:48:58.395261 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/init.py", line 357, in loads [Fri Mar 11 08:48:58.395263 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] return _default_decoder.decode(s) [Fri Mar 11 08:48:58.395264 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/decoder.py", line 337, in decode [Fri Mar 11 08:48:58.395266 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] obj, end = self.raw_decode(s, idx=_w(s, 0).end()) [Fri Mar 11 08:48:58.395267 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode [Fri Mar 11 08:48:58.395269 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] raise JSONDecodeError("Expecting value", s, err.value) from None [Fri Mar 11 08:48:58.395270 2022] [wsgi:error] [pid 945:tid 140036769048320] [remote 172.23.0.2:33756] json.decoder.JSONDecodeError: Expecting value: line 13 column 1 (char 402)

2022-03-11 08:48:58,724 DEBG 'runserver' stderr output: [Fri Mar 11 08:48:58.724519 2022] [wsgi:error] [pid 945:tid 140036785833728] [remote 172.23.0.2:33764] [2022-03-11 08:48:58,716] INFO cvat.server.task_1: get repository request

2022-03-11 08:48:58,727 DEBG 'runserver' stderr output: [Fri Mar 11 08:48:58.727497 2022] [wsgi:error] [pid 945:tid 140036785833728] [remote 172.23.0.2:33764] INFO - 2022-03-11 08:48:58,716 - views - get repository request`

Next steps

You may join our Gitter channel for community support.

fathyshalaby commented 2 years ago

Turned out to be a error in the function.yaml file (comma sign)