question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

repro, status: config file error: Unsupported URL type b''://

See original GitHub issue

UPDATE (@shcheklein )

See this fast way to reproduce and the summary of the issue: https://github.com/iterative/dvc/issues/6530#issuecomment-913818383

Bug Report

Description

I just upgraded DVC to version 2.6.4 and all of a sudden get this error with the same dvc.yaml file which worked fine previously. Note that while running these commands, another DVC process was running.

Reproduce

$ dvc status dvc.yaml
ERROR: config file error: Unsupported URL type b''://
$ dvc repro dvc.yaml --dry
ERROR: configuration error - config file error: Unsupported URL type b''://

Expected

Environment information

Output of dvc doctor:

$ dvc doctor
DVC version: 2.6.4 (conda)
---------------------------------
Platform: Python 3.9.6 on Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-glibc2.17
Supports:
	http (requests = 2.25.1),
	https (requests = 2.25.1),
	s3 (s3fs = 2021.8.0, boto3 = 1.17.106)
Cache types: hardlink, symlink
Cache directory: xfs on /dev/md124
Caches: local
Remotes: s3, s3
Workspace directory: xfs on /dev/md124
Repo: dvc (subdir), git

Also observe this issue with DVC 2.5.4 after downgrading again:

> dvc doctor
DVC version: 2.5.4 (conda)
---------------------------------
Platform: Python 3.9.6 on Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-glibc2.17
Supports:
	http (requests = 2.25.1),
	https (requests = 2.25.1),
	s3 (s3fs = 2021.6.1, boto3 = 1.17.49)
Cache types: hardlink, symlink
Cache directory: xfs on /dev/md124
Caches: local
Remotes: s3, s3
Workspace directory: xfs on /dev/md124
Repo: dvc (subdir), git

Additional Information (if any):

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
schuhschuhcommented, Sep 6, 2021

I think I just found the cause of this issue. I added a print statement of stage and deps arguments passed to fill_stage_dependencies() and discovered that the deps list included a boolean False value. This was caused by the following in the dvc.yaml:

stages:
  stage_name:
    cmd: ...
    deps:
      - ${eval.model_path}

where eval.model_path is set in the params.yaml file. I set this to false in order to indicate that the model to be evaluated is a dummy model without trainable parameters (used as a reference for comparison). Removing this line from the dependencies resolved the issue.

It would probably make sense to check whether the arguments are valid file path strings to produce a more helpful error message.

0reactions
dberenbaumcommented, Sep 7, 2021

I just upgraded DVC to version 2.6.4 and all of a sudden get this error with the same dvc.yaml file which worked fine previously.

@schuhschuh Can you clarify whether you still expect this pipeline to run as is? I want to make sure we’re addressing your initial question, since it seems like at this point all of the issues found are about error handling, and some error was expected here since your dependency resolved to nothing.

1. The obvious one - we don't do the schema check after we apply the value as we do for the `dvc.yaml`. Should we do a separate `dvc.lock` schema check pass as we do for `dvc.yaml`? cc @skshetry

👍 I think we can leave this issue open to address validating the schema after applying the values.

2\. Error - cryptic and not useful. It took a lot of time and effort to figure out what's going on because of this.

Combined with the concerns about the stack trace, this seems like a discussion that might extend outside of this ticket about how that code is organized, but honestly I don’t have a lot of context without digging deeper. @skshetry What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Unsupported URL" when adding SSH remote - DVC
I am trying to add a new ssh remote. and I get a Initialization error: Config file error: Unsupported URL when trying dvc...
Read more >
config error · Issue #2388 · iterative/dvc - GitHub
I set up a remote to an S3, but went on to delete it (and all other remotes from dvc remote list), now...
Read more >
unsupported url scheme; fallback: http error: status code 404, net
i have a poor understanding of js and webpack. I want to know which js file is triggerd when i press a button....
Read more >
Troubleshoot sync health and errors in Azure File Sync
Troubleshoot common issues with monitoring sync health and resolving sync errors in an Azure File Sync deployment.
Read more >
Messages - IBM
Create / configure property files required for Active Directory to IBM Tivoli Directory Server ... Unsupported URL in the entry at line line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found