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

Update CONTRIBUTING.md guide to run debug version of CVAT #4072

Closed
2 tasks done
AmitN1212 opened this issue Dec 23, 2021 · 17 comments · Fixed by #4082
Closed
2 tasks done

Update CONTRIBUTING.md guide to run debug version of CVAT #4072

AmitN1212 opened this issue Dec 23, 2021 · 17 comments · Fixed by #4082
Assignees
Labels
documentation Documentation should be updated

Comments

@AmitN1212
Copy link
Contributor

AmitN1212 commented Dec 23, 2021

My actions before raising this issue

Expected Behaviour

Sign in successfully to CVAT.

Current Behaviour

I am getting the following error:
Screenshot from 2021-12-23 08-48-15

Possible Solution

Steps to Reproduce (for bugs)

  1. I had CVAT worked well with the latest commits in the development environment.
  2. I pulled the last commit.
  3. I ran these commands in order to update CVAT :
    • pip install -r cvat/requirements/development.txt
    • python manage.py migrate
    • python manage.py collectstatic
    • npm ci
  4. I got the same error that I am getting now so I completely reinstalled CVAT using these steps.

Your Environment

Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18.04

Here are the logs from VScode console:
server-chrome-logs.txt
server-django-logs.txt

@bsekachev
Copy link
Member

Probably need to run OpenPolicyAgent:

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up cvat_opa

@AmitN1212
Copy link
Contributor Author

Probably need to run OpenPolicyAgent:

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up cvat_opa

Thanks, it worked. However, now when I try to register and create another account (after I have created the superuser), it immediately fails and I get this exception:

Exception has occurred: Error: Async Validation Error
  at next (http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135283:40)
    at count (http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135193:7)
    at cb (http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:136288:11)
    at Object.pattern$2 [as validator] (http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135929:3)
    at http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:136351:20
    at http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135198:5
    at Array.forEach (<anonymous>)
    at asyncParallelArray (http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135197:7)
    at http://localhost:3000/cvat-ui.81eaae8014885db72a4a.min.js:135298:9
    at Array.forEach (<anonymous>)

Do you have any idea of solving it?

@bsekachev
Copy link
Member

Could you please send us a screenshot?

@AmitN1212
Copy link
Contributor Author

Could you please send us a screenshot?

When I enter a character it is stuck:

Screenshot from 2021-12-23 14-43-37

This is what I see in VScode:
Screenshot from 2021-12-23 14-46-46

@bsekachev
Copy link
Member

Just remove breakpoint on uncaught exceptions in VSCode. It is a validation libary which throws different exceptions while working. It is a normal behaviour I believe.

@AmitN1212
Copy link
Contributor Author

Just remove breakpoint on uncaught exceptions in VSCode. It is a validation libary which throws different exceptions while working. It is a normal behaviour I believe.

It worked, thanks!

Btw, maybe it is better to update the dev environment instructions, so it will include this:

Probably need to run OpenPolicyAgent:

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up cvat_opa

@bsekachev
Copy link
Member

Btw, maybe it is better to update the dev environment instructions, so it will include this:

Agree.

@bsekachev bsekachev added the documentation Documentation should be updated label Dec 23, 2021
@bsekachev bsekachev changed the title Can't log in into CVAT after pulling the last commit Update CONTRIBUTING.md guide to run debug version of CVAT Dec 23, 2021
@nmanovic
Copy link
Contributor

@AmitN1212 , could you please help us and contribute?

@AmitN1212
Copy link
Contributor Author

@AmitN1212 , could you please help us and contribute?

I'll try.
Should I also add instructions for installing docker and docker-compose inside it?

It is necessary for it:

Probably need to run OpenPolicyAgent:

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up cvat_opa

@nmanovic
Copy link
Contributor

@AmitN1212 , if you think it will make the tutorial better, let's do that. I will propose to insert links on official tutorials whenever it is possible. Otherwise it can be nightmare to keep it up to date.

@AmitN1212
Copy link
Contributor Author

AmitN1212 commented Dec 23, 2021

@AmitN1212 , if you think it will make the tutorial better, let's do that. I will propose to insert links on official tutorials whenever it is possible. Otherwise it can be nightmare to keep it up to date.

@nmanovic Sure. Do you want me to change some more things that I think will make the instructions much clearer?

@g-kartik
Copy link
Contributor

g-kartik commented Dec 26, 2021

Another issue I faced while setting the development server was that the UI was not able to find the server

image

image

image

Replacing localhost to 127.0.0.1 fixed the issue
https://github.com/openvinotoolkit/cvat/blob/develop/cvat-ui/package.json#L8

I guess lookup from localhost to 127.0.0.1 is failing for some reason

@AmitN1212
Copy link
Contributor Author

Replacing localhost to 127.0.0.1 fixed the issue

@g-kartik I think you can fix it with running the server:chrome configuration in VSCode after you run server:debug so you don't need to change this.

@azhiv
Copy link
Contributor

azhiv commented Mar 22, 2022

@g-kartik Downrading my Node v17 to smth like v12 fixed the issue for me, found the problem description here (v16 should also work)

@sanjanaarora
Copy link

sanjanaarora commented Mar 23, 2023

Hi I am trying to install CVAT on my Linux Machine have tried all the above said solutions but still not able to configure. I have attached all the related screenshot to it. Can somebody pls help me with this
docker-composr yml
docker ps
Error after running cvat
package json of cvat-ui
server log

@azhiv
Copy link
Contributor

azhiv commented Mar 27, 2023

@sanjanaarora I don't remember the exact details, but this might be fixed by configuring a virtual network for the containers. In this way the connection will become available, this was my case.

@sanjanaarora
Copy link

sanjanaarora commented Mar 29, 2023

@azhiv thx for the rely but If I run in the virtual Environment with "docker-compose up -d" it works fine but when I want to use it for development using
docker run -d --rm --name cvat_opa_debug -p 8181:8181 openpolicyagent/opa:0.45.0-rootless
run --server --set=decision_logs.console=true --set=services.cvat.url=http://host.docker.internal:7000
--set=bundles.cvat.service=cvat --set=bundles.cvat.resource=/api/auth/rules

then it does'nt work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation should be updated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants