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

Wb Upload fails with field length error #1041

Closed
maxpatiiuk opened this issue Oct 25, 2021 · 2 comments · Fixed by #1044
Closed

Wb Upload fails with field length error #1041

maxpatiiuk opened this issue Oct 25, 2021 · 2 comments · Fixed by #1044
Labels
1 - Bug Incorrect behavior of the product
Projects

Comments

@maxpatiiuk
Copy link
Member

Describe the bug
Workbench fails with an error message like shown on the screenshot.
While the error message is genuine, it is supposed to be caught by the validator instead of being shown as an exception.

To Reproduce

  1. Try to upload the attached data set

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Screen Shot 2021-10-25 at 5 21 32 PM

Additional context
Data set: 0.tsv.zip

@maxpatiiuk maxpatiiuk added the 1 - Bug Incorrect behavior of the product label Oct 25, 2021
@maxpatiiuk maxpatiiuk added this to Unsorted in Workbench via automation Oct 25, 2021
@maxpatiiuk
Copy link
Member Author

maxpatiiuk commented Oct 26, 2021

I am on the wb-meta-refactor branch. It has uploader-memory-optimization merged into it and is rebased of next-release

Not sure if it is related, but I got another exception with this dataset:

Screen Shot 2021-10-26 at 9 08 10 AM

specify7-specify7-worker-1  | [26/Oct/2021 14:07:59] [ERROR] [specifyweb.celery:30] Celery task failure!!!1
specify7-specify7-worker-1  | Traceback (most recent call last):
specify7-specify7-worker-1  |   File "/opt/specify7/ve/lib/python3.6/site-packages/celery/app/trace.py", line 405, in trace_task
specify7-specify7-worker-1  |     R = retval = fun(*args, **kwargs)
specify7-specify7-worker-1  |   File "/opt/specify7/ve/lib/python3.6/site-packages/celery/app/trace.py", line 697, in __protected_call__
specify7-specify7-worker-1  |     return self.run(*args, **kwargs)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/tasks.py", line 47, in upload
specify7-specify7-worker-1  |     do_upload_dataset(collection, uploading_agent_id, ds, no_commit, allow_partial, progress)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/upload.py", line 116, in do_upload_dataset
specify7-specify7-worker-1  |     base_table, upload_plan = get_ds_upload_plan(collection, ds)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/upload.py", line 205, in get_ds_upload_plan
specify7-specify7-worker-1  |     return base_table, plan.apply_scoping(collection)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/treerecord.py", line 31, in apply_scoping
specify7-specify7-worker-1  |     return apply_scoping(self, collection)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/scoping.py", line 179, in apply_scoping_to_treerecord
specify7-specify7-worker-1  |     disambiguation={},
specify7-specify7-worker-1  | TypeError: __new__() got an unexpected keyword argument 'root'
specify7-specify7-worker-1  | [2021-10-26 14:07:59,590: ERROR/ForkPoolWorker-1] Task specifyweb.workbench.tasks.upload[e342e724-caed-4bbd-a980-83b08de26bc1] raised unexpected: TypeError("__new__() got an unexpected keyword argument 'root'",)
specify7-specify7-worker-1  | Traceback (most recent call last):
specify7-specify7-worker-1  |   File "/opt/specify7/ve/lib/python3.6/site-packages/celery/app/trace.py", line 405, in trace_task
specify7-specify7-worker-1  |     R = retval = fun(*args, **kwargs)
specify7-specify7-worker-1  |   File "/opt/specify7/ve/lib/python3.6/site-packages/celery/app/trace.py", line 697, in __protected_call__
specify7-specify7-worker-1  |     return self.run(*args, **kwargs)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/tasks.py", line 47, in upload
specify7-specify7-worker-1  |     do_upload_dataset(collection, uploading_agent_id, ds, no_commit, allow_partial, progress)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/upload.py", line 116, in do_upload_dataset
specify7-specify7-worker-1  |     base_table, upload_plan = get_ds_upload_plan(collection, ds)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/upload.py", line 205, in get_ds_upload_plan
specify7-specify7-worker-1  |     return base_table, plan.apply_scoping(collection)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/treerecord.py", line 31, in apply_scoping
specify7-specify7-worker-1  |     return apply_scoping(self, collection)
specify7-specify7-worker-1  |   File "/opt/specify7/specifyweb/workbench/upload/scoping.py", line 179, in apply_scoping_to_treerecord
specify7-specify7-worker-1  |     disambiguation={},
specify7-specify7-worker-1  | TypeError: __new__() got an unexpected keyword argument 'root'

@benanhalt
Copy link
Contributor

Yes I think this second exception is due to a merge issue. That root argument is something I had to add at the last minute to main WB branch after the optimization branch was split off. I'm not surprised there is some incompatibility there.

I will take a look that the field size exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product
Projects
Workbench
  
Shipped
Development

Successfully merging a pull request may close this issue.

2 participants