-
Notifications
You must be signed in to change notification settings - Fork 651
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: Params File path cannot be a blob container 'az://' #4904
Comments
Related to #4494 Thanks for the triage, I was stumped by the previous ticket but maybe the session not being created yet could explain it |
My co-workers have indicated that using |
Indeed the problem is that the config is loaded before the session, but the config also loads the params file to apply the params. The S3 and AZ filesystems in Nextflow depend on some config settings to resolve paths with the necessary credentials, so there is a circular dependency here. The discussions in #2723 and #4669 are relevant here. Separating the params definition from the config file might help resolve this circular dependency. If the config file can be loaded first, then the params are resolved, the params file could be a remote file and rely on the config to retrieve remote paths. As long as the relevant config settings are themselves not dependent on params, which I don't think is typically done. |
Based on those discussions, it appears that quick fix is not available. We will make our own temporary workaround of writing the params-files onto the local file system or attach a volume to the container instance. Would it safe to say that you are leaning towards the functionality of remote files for |
It's an interesting question. Of course some files simply can't be remote, like the nextflow log, config files, because they are used before the config settings are available to authenticate with remote storage. The params file sits in a grey area where it might be possible if we can get the dependencies right. To be honest it's not a critical factor in the design of config / params. If we can accommodate it or if it helps us narrow down some design choices, I'll try to support it. But I doubt we will hang the entire design on whether or not the params file can be remote. I think it's relatively easy to stage the params file locally beforehand |
Bug report
Expected behavior and actual behavior
Expecting that ability to reference a azure blob container for
-params-file 'az://full/path/param.json'
.Actual behavior is a NextFlow error Missing Nextflow session which stop application from running. If
-params-file
file is on local file system, works as expected.Steps to reproduce the problem
Program output
Top part of the stackTrace. Full nextflow.log attached.
nextflow.log
Environment
Additional context
Command being executed :
nextflow -log nextflow.log -c azure_batch.config run 'https://github.com/DarianHole/test-nextflow' -w 'az://root/workdir/' --outdir 'az://root/outputs/' -params-file 'az://root/params.json'
The text was updated successfully, but these errors were encountered: