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

Result size still needs to be shrunk #30

Open
robobenklein opened this issue Feb 20, 2020 · 3 comments
Open

Result size still needs to be shrunk #30

robobenklein opened this issue Feb 20, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@robobenklein
Copy link
Member

[2020-02-20 04:59:31] [    INFO] [worker main_loop] Claimed job: 5e28c9271342c9331683f852, going to work.
[2020-02-20 04:59:31] [    INFO] [worker checkin] Checkin completed: setup
[2020-02-20 04:59:31] [    INFO] [worker checkin] Checkin completed: clone
[2020-02-20 04:59:31] [    INFO] [worker run_job] Beginning clone for job 5e28c9271342c9331683f852
[2020-02-20 04:59:35] [    INFO] [worker checkin] Checkin completed: analyze
[2020-02-20 05:01:29] [   ERROR] [worker run_job] Unknown error when submitting job result!
[2020-02-20 05:01:29] [ WARNING] [worker run_job] <Response [500]>
[2020-02-20 05:01:29] [   ERROR] [worker __main__] Unknown exception: Failed to communicate result to server.
[2020-02-20 05:01:29] [    INFO] [worker checkin] Checkin completed: error
Traceback (most recent call last):
  File "/home/ca-worker/venv/bin/ca-worker", line 8, in <module>
    sys.exit(__main__())
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 257, in __main__
    raise e
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 243, in __main__
    main_loop()
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 271, in main_loop
    run_job(job)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 161, in run_job
    raise ConnectionError("Failed to communicate result to server.")
ConnectionError: Failed to communicate result to server.

because:

  File "/home/ca-jobserver/CodeAnalytics-distributor/venv/lib/python3.6/site-packages/pymongo/message.py", line 1077, in _raise_document_too_large
    raise DocumentTooLarge("%r command document too large" % (operation,))
pymongo.errors.DocumentTooLarge: 'update' command document too large
[2020-02-20 05:01:29] [   DEBUG] [app update_worker_status] worker coretester2 status: error 

worker state:

{
    "endpoint" : "https://ca-core.unhexium.dev",
    "error" : {
        "type" : "<class 'ConnectionError'>",
        "str" : "Failed to communicate result to server.",
        "time" : ISODate("2020-02-20T05:01:29.578Z")
    },
    "job" : {
        "_id" : ObjectId("5e28c9271342c9331683f852"),
        "function" : "caanalyzer.__main__:analyze",
        "repodir" : "job-5e28c9271342c9331683f852",
        "url" : "https://github.com/streamlit/streamlit.git",
        "workdir" : "/tmp/ca-workdir/ca-worker-coretester2"
    },
    "lastcheckin" : ISODate("2020-02-20T05:01:29.578Z"),
    "lastcheckin_human" : "2020-02-20 05:01:29 ",
    "status" : "error"
}
@robobenklein robobenklein added the bug Something isn't working label Feb 20, 2020
@robobenklein robobenklein added this to the million repo ready milestone Feb 20, 2020
@argvrutter
Copy link

argvrutter commented Feb 20, 2020 via email

@robobenklein
Copy link
Member Author

Still a problem: pymongo.errors.DocumentTooLarge: BSON document too large (17069471 bytes) - the connected server supports BSON document sizes up to 16793598 bytes.

Ofc. a 17MB result is toooo big.

job https://github.com/demicoder/quanswer.git

@jball1997
Copy link
Contributor

Wanna use GridFS?

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

No branches or pull requests

4 participants