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.

wrong redirection when dvc push to gdrive and no verification code is shown

See original GitHub issue

Bug Report

I have already set-up my gdrive FOLDER_ID accroding to the DVC document. However, the line for Enter verification code: did not show. When I pasted the link to the browser authorized it, and click the continuing button, the browser redirect to localhost:8080?code=... and no verification code is shown.

The issue is about DVC version 2.13.0. Everything looks fine after I downgraded my DVC version to 2.11.0.

Reproduce

  1. $ dvc add data
  2. $ dvc remote add -d ${REMOTE_NAME} gdrive://${FOLDER_ID}
  3. $ dvc push

Expected

Enter verification code: should be shown and the browser should redirect to the corresponding verification code.

Environment information

DVC version 2.13.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
shchekleincommented, Jul 27, 2022

For the record, docs are a bit outdated - I’ve created a PR - https://github.com/iterative/dvc.org/pull/3821/files

It doesn’t to Enter verification code now, it get’s from the browser since via web server that it creates.

Do you see the Authentication successful.?

1reaction
Min-Shengcommented, Aug 1, 2022

@Min-Sheng So it is solved for you now?

Btw, to avoid port forwarding you might want to use a service account as noted in the docs. https://dvc.org/doc/user-guide/setup-google-drive-remote#setup-a-google-drive-dvc-remote @efiop Yes, I solved it with port forwarding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have added my google drive as a remote storage - DVC
but when I do a dvc push, i get the below error. ... It is showing a permission error but I have already...
Read more >
failed to push some refs to remote Code Example
Integrate the remote changes (e.g. ... Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of...
Read more >
configuration error - Failed to authenticate GDrive remote ...
I ran this github actions workflow with several variations, but I cannot pull the data from DVC. name: auto-testing on: [push] jobs: run: ......
Read more >
dvc Changelog - pyup.io
worktree push: do not push existing versions by pmrowla in ... worktree: support push: false by pmrowla in https://github.com/iterative/dvc/pull/8581
Read more >
The DataLad Handbook
When copying code snippets into your own terminal, do not copy the leading $ – this ... Instead of typing the full path...
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