-
Notifications
You must be signed in to change notification settings - Fork 598
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
Azure Batch - java.lang.NullPointerException - findBestVm #1992
Comments
Hi @sminot , thanks for raising this issue with us. I was wondering whether it'd be possible for you share with us some more specifics of your Azure env such as quotas/region etc |
I'm happy to share anything that would be helpful! The region is |
It looks it's failing here nextflow/plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchService.groovy Line 168 in 00ced0b
@sminot could you share your NF config? |
Masking the private info, my config is:
|
I think the problem is that it can't find a VM type matching the cpus/mem in your pipeline task. If you specify a concrete one using the https://www.nextflow.io/docs/edge/azure.html#pools-configuration |
Looking at that configuration, I updated my config to include:
And the new error traceback is:
|
|
Good point! I must admit that this Azure configuration is all very new to me. I changed the It's entirely possible that this error is being caused by some problem with my Azure configuration that I'm not aware of. I tried following the setup instructions on the Nextflow docs page, but it's completely possible that I missed something. Since I'm not giving you particularly good information to go on, I wouldn't object to closing this issue and moving the discussion to an email thread if you would prefer, @pditommaso. I would be very excited to get up and running on Azure with Nextflow, but I also don't want to ask too much of your time! Many thanks for any help you can provide. |
No pb. Don't see any |
Oops! I am clearly learning here... I can confirm that this fixes the bug! The next error I see is coming from inside the job (and therefore my responsibility), and so I am going to marked this as resolved. Thank you!! |
Cool, i've uploaded a patch to prevent the NPE in the future |
Bug report
Expected behavior and actual behavior
I'm trying to get set up running Nextflow with Azure Batch as the executor. Prior to running this test, I was able to confirm that
nextflow run hello
worked perfectly well with my setup. I think that does a good job of making sure that my storage container and Batch service are configured relatively well.After making sure that
hello
worked, I moved on to testing a larger workflow which runs a series of jobs to generate a useful dataset. At this point I got the errorjava.lang.NullPointerException
described below.Steps to reproduce the problem
The command I ran was:
Unfortunately, I'm not 100% sure that this can be reproduced outside of our Azure environment, but the command above should provide a starting place.
Program output
The error I got was:
Looking at the logs, the traceback is:
Environment
The text was updated successfully, but these errors were encountered: