-
Notifications
You must be signed in to change notification settings - Fork 30
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
Multiprocessing task failed: Multiprocessing task did not complete successfully #13
Comments
It shouldn’t be crucial to use Python2.6. One thing your user can try is to increase the logging level, which should provide better information on why the task is failing. You can do this by adjusting your call to logging.basicConfig() on line 30. Make it look like this: logging.basicConfig(level="DEBUG") Then you’ll get output like this: Will download 2 files. Hopefully you’ll also get a better error as to why the individual job failed. If you want to make this a bit cleaner, you could add a verbose mode to your script which will switch the logging level. Peter From: Nils Homer [mailto:[email protected]] Hello, a user is getting an error using a script I wrote (see https://github.com/nh13/basespace-invaders), with the following stack trace using python 2.7.6 (is it absolutely crucial to use 2.6?). Any ideas on how to debug this error within the basespace python API? python samples2files.py --client-key xxxxxx --client-secret xxxx --access-token xxxxx --sample-id 12345678 --create-basespace-directory-structure Will download 4 files. Downloading (1/4): P12-HFhm-F_S12_L001_R1_001.fastq.gz File Path: P12-HFhm-F_S12_L001_R1_001.fastq.gz WARNING:BaseSpacePy.model.MultipartFileTransfer:Task failed after too many retries Traceback (most recent call last): File "samples2files.py", line 165, in
File "samples2files.py", line 107, in download
File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/model/File.py", line 82, in downloadFile File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/api/BaseSpaceAPI.py", line 1240, in fileDownload File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/api/BaseSpaceAPI.py", line 1323, in multipartFileDownload File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/model/MultipartFileTransfer.py", line 399, in download File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/model/MultipartFileTransfer.py", line 452, in _start_workers File "/usr/local/lib/python2.7/dist-packages/BaseSpacePy/model/MultipartFileTransfer.py", line 281, in start_workers BaseSpacePy.api.BaseSpaceException.MultiProcessingTaskFailedException: 'Multiprocessing task failed: Multiprocessing task did not complete successfully’ — |
Hi @nh13 - I just finished developing a similar script for downloading basespace data (sadly didn't realize yours existed til after the fact) and am also encountering the same issue with the parallel download. I am using a version of the SDK ported to python 3, but the error is exactly the same. It looks like the workers get spun up, start trying to download, and I get a file double the filesize of what it should be, then nothing happens and it errors out after a while. |
@tgjohnst I just wrapped in retries and it usually succeeds after that. nh13/basespace-invaders#7 |
Thanks for the quick response! Hmm, I'll give that a try, but this has failed a few runs in a row, so not sure if retries will help. I activated debug-level logging and my debug output is looking a little weird. Specifically, there is a 166MB file, but the downloader is aiming for 8x 25MB chunks when I think there should only be 7 for a file that size, and the 8th chunk is the one failing.
|
Sorry I can’t be more help, just relating what worked for me. Hopefully Illumina support can help. |
Thanks anyway! I'm thinking for now, I'll manually avoid multipart and just use getFileUrl() to pull the entire file at once. Kind of a workaround but at least it doesn't fail for anything large enough to require multipart. |
Sorry, this is not supported. It does indeed look to me like the first stumbling block is an off-by-one error. Not sure why you'd need to add one on the ceiling: We do have a fully supported CLI that does a great job of downloading you can easily call from your script if that helps. |
Hello,
a user is getting an error using a script I wrote (see https://github.com/nh13/basespace-invaders), with the following stack trace using
python 2.7.6
(is it absolutely crucial to use 2.6?). Any ideas on how to debug this error within the basespace python API?The text was updated successfully, but these errors were encountered: