# Build Time Exceeds 1h

**URL:** <https://renku.discourse.group/t/build-time-exceeds-1h/698>\
**Category:** RenkuLab\
**Created:** [24 October 2022 08:52 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698 "2022-10-24T08:52:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [24 October 2022 08:52 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/1 "2022-10-24T08:52:55Z")

</div>

Hello Team,

We have a job that has started to fail recently while resolving dependencies while installing Renku. As far as I can see the problem is that a fresh build takes too long (excess 1h). Would it be possible to increase the build time limit for this repository? The builds usually take 20seconds, only these recent ones are a problem.

The repo in question: [Mirko Birbaumer / HSLU Statistical Data Analysis I · GitLab](https://renkulab.io/gitlab/mirko.birbaumer/hslu-statistical-data-analysis-i/)

Kind regards,  
Pascal

---

<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:** [24 October 2022 09:29 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/2 "2022-10-24T09:29:35Z")

</div>

That sounds like a likely cause for the problem you are seeing since the default build time limit is 1h (my access rights to your project do not let me verify this, though).

You need to go to GitLab to fix this, so it is a bit tedious, but it is something you can do yourself.

1. Access the project in GitLab

 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/b124396fad6201d3db140fcb66a11be8dd727f9e.jpeg)

1. Go to the `CI/CD` settings

 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/4c6362cea2432ad48a127e57998c7ffe1399468a.jpeg)

1. Expand the `General Pipeline` settings

 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/5d7b03822909d6038bf7377e4a8514170df2f831.jpeg)

1. Update the build time limit and save settings

 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/ba6a58aa38c464676925bf38a9be7d9405d29b28.jpeg)

Let us know if that fails to fix the problem or you have difficult carrying out these steps.

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [24 October 2022 12:00 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/3 "2022-10-24T12:00:23Z")

</div>

Thank you very much @cramakri, should have thought of that myself as well! But your instructions we’re very easy to follow and I changed the timeout now, the build is running again, so let’s see how it turns out!

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [25 October 2022 06:01 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/4 "2022-10-25T06:01:09Z")

</div>

Hello @cramakri, in my private fork you can see that the build only take this long when the Renku upgrade code is run:

> **[Pipelines · Pascal Baumann / HSLU Statistical Data Analysis I](https://renkulab.io/gitlab/pascal.baumann/hslu-statistical-data-analysis-i/-/pipelines)**
>
> GitLab Community Edition

Is this code snippet old and should be updated? Because leaving it commented out is obviously not a solution.

---

<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:** [25 October 2022 07:08 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/5 "2022-10-25T07:08:41Z")

</div>

Looking at the commit history of this project, I see that you recently updated from renku version 0.10 to 0.13

```auto
- ARG RENKU_BASE_IMAGE=renku/renkulab-py:3.9-0.10.1
+ ARG RENKU_BASE_IMAGE=renku/renkulab-py:python-3.9.12-0.13.0

```

After a change like that, it is necessary to upgrade renku in your image, since otherwise the version will be out of date.

I looked at the run log of the job, and see that pip has difficulty updating the `ruamel.yaml` package to `ruamel.yaml-0.15.11.tar.gz`. The log is essentially full of failed attempts to install the new version. Not sure why this is, but I will bring in one of our python devs into this conversation. They should be able to provide some insight.

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [25 October 2022 07:28 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/6 "2022-10-25T07:28:47Z")

</div>

I updated to the newer base image because the repo of my advisor where I forked it from to troubleshoot had the same problem on the lower version:

> **[image\_build (#486320) · Jobs · Mirko Birbaumer / HSLU Statistical Data...](https://renkulab.io/gitlab/mirko.birbaumer/hslu-statistical-data-analysis-i/-/jobs/486320)**
>
> GitLab Community Edition

I thought that maybe an update might mitigate the errors while installing (and 0.10.1 was a really old version).  
Thank you for your efforts by the way =)

---

<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:** [26 October 2022 11:17 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/7 "2022-10-26T11:17:43Z")

</div>

Just a quick update here – one of our python devs is looking into this. He has identified the cause of the problem: some dependencies are not pinned. He is trying to come up with a solution and will answer when he has something.

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [26 October 2022 11:18 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/8 "2022-10-26T11:18:08Z")

</div>

Thank you for the update, that sounds perfect!

Feel free to ping me if you need a guinea pig/repo 😃

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [26 October 2022 12:01 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/9 "2022-10-26T12:01:04Z")

</div>

@cramakri An update from my side: I managed to successfully build the image by updating the base image and the Renku version that gets installed:

```nohighlight
# https://github.com/SwissDataScienceCenter/renkulab-docker
+ ARG RENKU_BASE_IMAGE=renku/renkulab-py:python-3.9.12-0.13.0
...
+ ARG RENKU_VERSION=1.8.0
########################################################

```

> **[image\_build (#488891) · Jobs · Pascal Baumann / HSLU Statistical Data Analysis I](https://renkulab.io/gitlab/pascal.baumann/hslu-statistical-data-analysis-i/-/jobs/488891)**
>
> GitLab Community Edition

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [26 October 2022 12:21 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/10 "2022-10-26T12:21:04Z")

</div>

So Session start was successful as well:  
 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/edad54ee8a1420249ad9843e789433c907d35494.png)  
So the problem was in trying to update from 1.6.0 via the upgrade script

---

<div class="post-metadata">

**Author:** ![mohammad-sdsc](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/mohammad-sdsc/32/79_2.png) [@mohammad-sdsc](https://renku.discourse.group/u/mohammad-sdsc)\
**Post date:** [26 October 2022 12:33 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/11 "2022-10-26T12:33:21Z")

</div>

Hello,

Upgrading to the latest renku version is the best solution if it’s an option for you. There are many improvements and new features that come with newer versions of Renku.

Please note that you also need to migrate your project to make it work with this new Renku version. Normally, it should be possible to migrate your project in the renkulab UI but currently there is an issue that prevents it from working (we are making a fix).

Meanwhile, to migrate your project manually, start a session and open a terminal window inside the session. Run `renku migrate` to migrate the project to the latest Renku version (1.8.0 in this case). Then push the project: `git push`.

Please let me know if it doesn’t work.

Kind regards,  
Mohammad

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [26 October 2022 12:40 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/12 "2022-10-26T12:40:42Z")

</div>

Hi @mohammad-sdsc  
I don’t see why that would not be an option as the Python version stays the same and the new Renku functions are nice. I did as you are told and it worked perfectly

 ![image](https://global.discourse-cdn.com/free1/uploads/renku/original/1X/37f6dc1b13776b7f592ff25ee57790bd8e9ce4c7.png)  
Tell me if you still need me to test your script for the old configuration, otherwise I would mark this issue as solved =)

---

<div class="post-metadata">

**Author:** ![mohammad-sdsc](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/mohammad-sdsc/32/79_2.png) [@mohammad-sdsc](https://renku.discourse.group/u/mohammad-sdsc)\
**Post date:** [26 October 2022 12:52 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/13 "2022-10-26T12:52:37Z")

</div>

It’s solely a user requirement; some users prefer to stick with the same Renku version and don’t upgrade their env/project.

It’s fine on our side. I was trying to find what is the dependency issue with Renku `v0.16.1` to make it installable. I’ll stop now since the new version is working for you.

Just FYI, Renku releases for versions \> `1.0.0` include an additional `renku-lock` PyPI package which has all the dependencies pinned to avoid a similar problem that you’ve experienced. But again, upgrading is the best approach.

---

<div class="post-metadata">

**Author:** ![pascal.baumann](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/pascal.baumann/32/532_2.png) [@pascal.baumann](https://renku.discourse.group/u/pascal.baumann)\
**Post date:** [26 October 2022 13:10 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/14 "2022-10-26T13:10:28Z")

</div>

I will mark that as the preferred solution then if anyone else runs into the same problem, but they will also have the whole thread to debug their project anyway.  
Thank you very much for your help @cramakri and @mohammad-sdsc!

---

<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:** [27 October 2022 07:48 UTC](https://renku.discourse.group/t/build-time-exceeds-1h/698/15 "2022-10-27T07:48:29Z")

</div>

Glad we were able to get that resolved!
