I’m just trying out Studio.
Bitbucket is used for Git and data is in Google Drive. Created a view and was able to connect to Bitbucket.
However, it appears that no remote control is identified. Note that I am able to dvc push and dvc pull from different computers without any problems. Any idea why?
I just had a look at this functionality in Studio and am also seeing some weirdness with it myself. Am taking some time for further investigation. Will keep you posted!
Hey @mcosta! Just had a look into this: could you please verify if the remote you are trying to configure is marked as the default remote in your DVC repo?
Currently, Studio does not appear to show non-default remotes on the View Settings page.
You can check this with the dvc remote default command:
# If this output is shown, then you do not have a default remote configured.
$ dvc remote default
No default remote set
$ dvc remote default <your-remote>
# Commit and push your changes:
$ git add .dvc/config
$ git commit -m "Added default remote"
$ git push
I hope this fixes your issue, but let me know if this does not help!
NB: This also confused me personally, which is why I posted that I was seeing some weirdness before. I’m filing an issue internally to improve our UX here.
To use service account, set gdrive_service_account_json_file_path, and optionallygdrive_service_account_user_email in DVC config Learn more at <e[36mhttps://man.dvc.org/remote/modify
I have to stop now, but will come back in a few hours.
I tracked down the problem to a bug in Studio. (We pass the credentials you set up in Studio to DVC as user credentials instead of service account credentials).
I am working on a fix for this. Will keep you posted!
Thank you for reporting this and for trying out Studio!
Confirm the directory exists and you can access it. 2. Make sure that credentials in ‘.dvc/tmp/gdrive-user-credentials.json’ are correct for this remote e.g. use the gdrive_user_credentials_file config option if you use multiple GDrive remotes with different email accounts. Details
Probably it is something with Google Service account configuration.
@mcosta Could you check if the Google Service account has permissions to access the Drive folder? You can share the folder with the service account by going to Google Drive, clicking “Share” on the folder you want to share and inviting the service account by email.