# Webdav Switchdrive

**URL:** <https://renku.discourse.group/t/webdav-switchdrive/1010>\
**Category:** RenkuLab\
**Created:** [2 March 2024 11:27 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010 "2024-03-02T11:27:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guiwitz](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/guiwitz/32/477_2.png) [@guiwitz](https://renku.discourse.group/u/guiwitz)\
**Post date:** [2 March 2024 11:27 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010/1 "2024-03-02T11:27:23Z")

</div>

Hi,

I’m trying to add remote access to data on my switchdrive but can’t figure out how to set it up properly. I manage to connect via webdav on my computer using the address switchdrive provides ([https://drive.switch.ch/remote.php/dav/files/myemail](https://drive.switch.ch/remote.php/dav/files/myemail)) plus my regular credentials but those don’t work on renkulab and I get “An error occurred when trying to start a new session. Error message: Something went wrong.”

If instead I use [https://drive.switch.ch/remote.php/webdav](https://drive.switch.ch/remote.php/webdav) then I don’t have an error message but the session never starts and just hangs (no logs are shown). @rrrrrok maybe you know how to set this? I have seen [this thread](https://renku.discourse.group/t/how-to-make-available-a-large-calibration-dataset/972/6) but I’d like to use the interface here as it seems now available in Renkulab.

Thanks!

---

<div class="post-metadata">

**Author:** ![elisabetc](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/elisabetc/32/811_2.png) [@elisabetc](https://renku.discourse.group/u/elisabetc)\
**Post date:** [4 March 2024 09:31 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010/2 "2024-03-04T09:31:00Z")

</div>

Hi @guiwitz, Have you tried to follow the procedure from our docs [here](https://renku.readthedocs.io/en/latest/how-to-guides/renkulab/external-storage.html#webdav)? The step-by-step guide should follow you through the process. Please, let me know if this does not work for you.

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [4 March 2024 12:16 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010/3 "2024-03-04T12:16:10Z")

</div>

I just tried this and it worked @guiwitz:

On Switch Drive:

1. Go to your user `Settings` → `Security`
2. Click on `Create App passcode` (name it whatever you want)
3. Copy and save the token - note the email/username (because it’s based on edu-id it could be different than your switch drive account correspondence email - it was in my case)

In your renku project:

1. `Settings` → `Cloud storage`
2. add `WebDav`
3. Use `https://drive.switch.ch/remote.php/webdav` as the URL
4. copy/paste your username and token from above (you will need to enter the token again, we don’t have credentials storage yet…)

Let me know how it goes!

---

<div class="post-metadata">

**Author:** ![guiwitz](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/guiwitz/32/477_2.png) [@guiwitz](https://renku.discourse.group/u/guiwitz)\
**Post date:** [4 March 2024 12:32 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010/4 "2024-03-04T12:32:26Z")

</div>

Thanks for your help @elisabetc and @rrrrrok ! I had tried exactly that but also added a “source path” and apparently that’s what’s causing problems. If I configure without this source path everything works fine and my switchdrive gets mounted correctly, so that’s a success! If I add a source path (which is probably wrongly formatted) it just spins forever at the initialisation stage. Any idea how to format that path?

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [4 March 2024 12:51 UTC](https://renku.discourse.group/t/webdav-switchdrive/1010/5 "2024-03-04T12:51:42Z")

</div>

Aha great news! “Source path” is relative to the root path in your switch-drive, without the leading `/`.
