# Start session link automatically fetching LFS data?

**URL:** <https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030>\
**Category:** General\
**Created:** [27 March 2024 13:31 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030 "2024-03-27T13:31:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinem](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@colinem](https://renku.discourse.group/u/colinem)\
**Post date:** [27 March 2024 13:31 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/1 "2024-03-27T13:31:27Z")

</div>

Hi,

Is there a possibility to **create a start session link** with the option **automatically fetch LFS data**?

I tried to go around this question, changing the .renku/renku.init with `fs_threshold = 4mb`. But it did not solve my issue, even if I though it should.

The project is public and intended for teaching (this is why I would like the set-up as easy as possible for the students to connect to the project).  
I can share here the project name if needed.  
Thanks!

---

<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:** [27 March 2024 14:55 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/2 "2024-03-27T14:55:19Z")

</div>

Hi @colinem - you can set this for the project in `Settings --> Sessions --> Automatically fetch LFS data`

Just please make sure to also set the amount of storage that is required at the same time - keep in mind that LFS requires _twice_ the space (once for the cache, and another time for the files in the project path).

Hope that helps!

---

<div class="post-metadata">

**Author:** ![colinem](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@colinem](https://renku.discourse.group/u/colinem)\
**Post date:** [28 March 2024 10:16 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/3 "2024-03-28T10:16:14Z")

</div>

Hi @rrrrrok, thanks a lot for your helpful answer.

Unfortunately, when I try to change the setting of the project, I get the following error:

 ![session_settings_error](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/29178809edcb637fda0790d0729f4c55f57b5af6.png)

And when I try to update the project setting, I also get a similar error:

 ![project_update_error](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/2ae34e2e3f53a84e9795e2a864924456a1d3935a.png)

---

<div class="post-metadata">

**Author:** ![ralf.grubenmann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/ralf.grubenmann/32/78_2.png) [@ralf.grubenmann](https://renku.discourse.group/u/ralf.grubenmann)\
**Post date:** [28 March 2024 10:33 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/4 "2024-03-28T10:33:12Z")

</div>

it looks like your token for gitlab has expired (though that shouldn’t happen), you might need to log out and log back in again.

---

<div class="post-metadata">

**Author:** ![colinem](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@colinem](https://renku.discourse.group/u/colinem)\
**Post date:** [28 March 2024 13:57 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/5 "2024-03-28T13:57:12Z")

</div>

Thanks @ralf.grubenmann.  
I tried to log out and in again from renkulab. And also to log out from Gitlab (which I opened through RenkuLab: i.e. [https://gitlab.renkulab.io/](https://gitlab.renkulab.io/)). But the issue remained.

Is that what you meant?

---

<div class="post-metadata">

**Author:** ![cramakri](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/cramakri/32/7_2.png) [@cramakri](https://renku.discourse.group/u/cramakri)\
**Post date:** [28 March 2024 14:56 UTC](https://renku.discourse.group/t/start-session-link-automatically-fetching-lfs-data/1030/6 "2024-03-28T14:56:15Z")

</div>

It looks like there is a problem in the interaction between the UI and GitLab somewhere. In the meantime, you can (hopefully) use the following workaround to update this setting.

- Start a session in the project
- In the session, use the renku-cli to set the config value: `renku config set interactive.lfs_auto_fetch true`
- Push your changes with `git push`

That should hopefully allow you do make this change while we investigate what is preventing the UI from allowing you to do this.
