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
11.89k stars 2.9k forks source link

Unable to Login app.cvat.ai Today #7888

Closed oycTechV closed 2 months ago

oycTechV commented 2 months ago

Actions before raising this issue

Steps to Reproduce

  1. Go to https://app.cvat.ai/auth/login
  2. Click Create an account
  3. Error Appeared TypeError r.map is not a function

TypeError: r.map is not a function at Qx (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:7340470) at Xi (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5843017) at zo (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5851864) at Fo (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5851683) at Lo (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5851366) at ws (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5892591) at xl (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5881823) at El (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5881748) at hl (https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5878771) at https://app.cvat.ai/assets/cvat-ui.6cd38ef4eb8ad59e17c6.min.js:2:5830426 Untitled

Expected Behavior

https://app.cvat.ai/auth/login should allow user to login using google account

Possible Solution

Possibly login credential management server died

Context

Trying to start a new annotation. Suddenly server is unreachable and then when reachable this happened

Environment

Visit using google chrome, google company account
bsekachev commented 2 months ago

There were some server-side issues this morning. We apologize for that. Now the instance is working.

O-J1 commented 2 months ago

There were some server-side issues this morning. We apologize for that. Now the instance is working.

I dont believe this is correct, even now, for the last 3-ish hours I have not been able to annotate. Right now when I log in it just infinitely loads and 9 times out of 10 my projects will not show up and I get error messages like:

"Could not get models from the server

e.response is undefined"

"Could not fetch models meta information

Network Error."

"Error during fetching a job

Network Error."

and "Could not fetch tasks

Network Error."
oycTechV commented 2 months ago

bugReportCVAI

Hi, just found out that currently I am stuck 612 image and is unable to proceed on labelling next image @bsekachev can we open the issue again

bsekachev commented 2 months ago

Hello,

  1. Please, do not hide URL. Your data are protected by permissions system. Anybody from the Internet will not be able to open the link. And we need this URL to reproduce the issue.
  2. Please, follow this link https://speedtest.globalaccelerator.aws/#/ and try to perform speed tests in different regions. Share us with results.
oycTechV commented 2 months ago

Hi @bsekachev , thanks for following the thread. This is the screenshot testFromMalaysia

bsekachev commented 2 months ago

Our server is in Ireland.

With your internet provider downloading 100KB took 1.9 seconds. Data chunk with image 613 is 9.2 Megabytes (the chunk contains 68 images overall).

From this, I may conclude, that it will be approximately downloaded in 175 seconds.

oycTechV commented 2 months ago

Noted, thanks you @bsekachev I found that it tooks more than 10 minutes without changes at the page Following the investigation I found this at the error console image I believe the javascript below is responsible for the stuck progress.

                        try {
                            const o = await yr.get(`${i}/jobs/${t}/data`, {
                                params: {
                                    ...fr(),
                                    quality: r,
                                    type: "chunk",
                                    number: n
                                },
                                responseType: "arraybuffer"
                            })
                              , s = +(o.headers || {})["content-length"];
                            if (Number.isInteger(s) && o.data.byteLength < +s) {
                                if (a < 10)
                                    return setTimeout((()=>{
                                       throw new Error(`Truncated chunk, try: ${a}. Job: ${t}, chunk: ${n}, quality: ${r}. Body size: ${o.data.byteLength}`)
                                    }
                                    )),
                                    await e(t, n, r, a + 1);
                                throw new Error(`Truncated chunk. Job: ${t}, chunk: ${n}, quality: ${r}. Body size: ${o.data.byteLength}`)
                            }
                            return o.data
                        } catch (e) {
                            throw vr(e)
                        }

Ps. Error line is : throw new Error(Truncated chunk, try: ${a}. Job: ${t}, chunk: ${n}, quality: ${r}. Body size: ${o.data.byteLength}) File name is : cvat-ui.6cd38ef4eb8ad59e17c6.min.js Hope it helps

bsekachev commented 2 months ago

This is not an error actually. This is special exception that we log to understand how popular the following problem is.

When network is unstable (i mean connection interruptions), chunk transmission from server to client may get broken and chunk is not fully downloaded (truncated, as message says).

In this case, CVAT client does one more try to download the chunk from scratch. And we throw this exception to see it in our analytics.

oycTechV commented 2 months ago

image My previous load of annotation is from 800. Now when I refresh, it seems that my annotation from 700 to about 900 (my latest progress) is wiped out

Added other error: image