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

Unable to create a new task #5448

Closed
2 tasks done
kd610 opened this issue Dec 11, 2022 · 12 comments · Fixed by #5467
Closed
2 tasks done

Unable to create a new task #5448

kd610 opened this issue Dec 11, 2022 · 12 comments · Fixed by #5467
Assignees
Labels
bug Something isn't working

Comments

@kd610
Copy link

kd610 commented Dec 11, 2022

My actions before raising this issue

Expected Behaviour

A task will be successfully created once the data is uploaded and clicked save & continue.

Current Behaviour

I follow an installation manual using Docker by docker-compose up. It successfully builds the software and I can access it there via localhost:8080. But I couldn't finish creating a task as I stuck after I uploaded a video and save&continue. I bet there might be a problem with the cvat_worker_low node (an error message is below).

cvat_worker_low       | Error: Format string '%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST)s:6379 -t 0 -- bash -ic " \\\nif [ \\"%(ENV_CVAT_DEBUG_ENABLED)s\\" = \'yes\' ]; then \\\n_DEBUG_CMD=\\"-m debugpy --listen 0.0.0.0:%(ENV_CVAT_DEBUG_PORT)s\\";\nelse\n_DEBUG_CMD=\\"\\";\nfi && \\\n\\\nexec python3 ${_DEBUG_CMD} %(ENV_HOME)s/manage.py rqworker -v 3 low \\\n"' for 'program:rqworker_low.command' contains names ('ENV_CVAT_DEBUG_ENABLED') which cannot be expanded. Available names: ENV_CVAT_DEBUG_PORT, ENV_CVAT_POSTGRES_HOST, ENV_CVAT_REDIS_HOST, ENV_DJANGO_CONFIGURATION, ENV_HOME, ENV_HOSTNAME, ENV_LANG, ENV_LC_ALL, ENV_NUMPROCS, ENV_PATH, ENV_TERM, ENV_TZ, ENV_USER, ENV_http_proxy, ENV_https_proxy, ENV_no_proxy, ENV_socks_proxy, group_name, here, host_node_name, process_num, program_name in section 'program:rqworker_low' (file: 'supervisord/worker.low.conf')

Also, the screenshots of logs after I run docker-compose up are shown below.
Screen Shot 2022-12-11 at 12 50 44
Screen Shot 2022-12-11 at 12 50 55

Steps to Reproduce (for bugs)

  1. Clone the latest cvan repository.
  2. Run docker-compose up

Context

This issue affects me to create a new task to start annotation...

Your Environment

  • Git hash commit (git log -1): a3b4f97
  • Docker version docker version (e.g. Docker 17.0.05): Docker 4.13.1
  • Are you using Docker Swarm or Kubernetes?: No
  • Operating System and version (e.g. Linux, Windows, MacOS): MacOS Monterey, MacBook Pro (13-inch, M1, 2020)
@ranshadmi
Copy link

Having the same issue on Windows 10. Following any helpful comments.

@amitmohanty
Copy link

following

@nmanovic nmanovic added the bug Something isn't working label Dec 13, 2022
@nmanovic
Copy link
Contributor

@kd610 , thanks for the report. I can reproduce it. It leads to problems with creating new tasks. Containers for cvat_worker_default and cvat_worker_low are restarting.

@nmanovic
Copy link
Contributor

To reproduce the problem it is necessary to run CVAT using docker-compose up -d command.

@David-19940718
Copy link

To reproduce the problem it is necessary to run CVAT using docker-compose up -d command.

Thanks for reply, and may I ask how can I solve it?

@nmanovic
Copy link
Contributor

The current workaround is to run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d command. It will define a missing environment variable.

@ranshadmi
Copy link

@kd610 , thanks for the report. I can reproduce it. It leads to problems with creating new tasks. Containers for cvat_worker_default and cvat_worker_low are restarting.

Exactly what I'm seeing!

@David-19940718
Copy link

The current workaround is to run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d command. It will define a missing environment variable.

Thanks very much, everything is ok after run the command docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d.

@ranshadmi
Copy link

The current workaround is to run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d command. It will define a missing environment variable.

Thanks! It works! I'm loving the tool again!

@kd610
Copy link
Author

kd610 commented Dec 14, 2022

The current workaround is to run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d command. It will define a missing environment variable.

Thank you so much for your all support @nmanovic ! I successfully made a task on my machine. I shall close this issue as it's already solved!

@AbdelsalamHaa
Copy link

@nmanovic This didn't work out for me.
cvat_worker_low and cvat_worker_default are unable to start and keep on restarting

@cccober
Copy link

cccober commented Dec 16, 2022

@nmanovic This didn't work out for me. cvat_worker_low and cvat_worker_default are unable to start and keep on restarting

didn't work either

nmanovic pushed a commit that referenced this issue Dec 16, 2022
Fixes #5448, #5453, #5457

- Relaxed env var requirements in the images, no mandatory ones
- RQ workers now use a custom python class for remote debugging
- Factored out common remote debugging implementation
mikhail-treskin pushed a commit to retailnext/cvat that referenced this issue Jul 1, 2023
Fixes cvat-ai#5448, cvat-ai#5453, cvat-ai#5457

- Relaxed env var requirements in the images, no mandatory ones
- RQ workers now use a custom python class for remote debugging
- Factored out common remote debugging implementation
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.

8 participants