# Error upgrading to 3.3.0-beta6 because of yarn timeout

**URL:** https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526
**Category:** Self-hosting
**Created:** [August 7, 2024, 11:36am UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526 "2024-08-07T11:36:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [August 7, 2024, 11:36am UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/1 "2024-08-07T11:36:48Z")

</div>

I get this error:

```plaintext
I, [2024-08-07T11:22:31.056567 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
error Error: https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz: ESOCKETTIMEDOUT

```

~~When I follow the link I see this. No idea if that is relevant..~~

 

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/9/3/3938c76fc20abd939b203694611e7d1bb43028f7.png)  
 

Final error message:

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' failed with return #<Process::Status: pid 345 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"yarn", "cmd"=>["if [\"$version\" != \"tests-passed\"]; then\n rm -rf app/assets/javascripts/node_modules\nfi", "su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'"]}
bootstrap failed with exit code 1

```

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 7, 2024, 11:46am UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/2 "2024-08-07T11:46:51Z")

</div>

> [@manuel](#):
>
> `https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz`

that’s working for me:

`wget https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz`

 ![The image shows a computer screen with a terminal displaying a script or text output. The screen appears to be running a Linux-based operating system, as indicated by the syntax and file paths shown in the text. The output includes URLs, file paths, and what appears to be a SQL statement, suggesting that the user may be working with web services or databases. The terminal seems to be running in a command-line interface, which is often used in Unix-like systems for networking and system administration tasks. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/1/a/51aabaf24bcc53f65c3bb13862a16c9815dd9d41.png)

btw, do you mean `3.4.0`?

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [August 7, 2024, 11:58am UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/3 "2024-08-07T11:58:32Z")

</div>

> [@merefield](#):
>
> that’s working for me:

had a colon at the end 🙄

> [@merefield](#):
>
> btw, do you mean `3.4.0`?

dashboard tells me 3.3.0-beta6 is latest..

Just found this topic, will try that:

> [@Error during the update ESOCKETTIMEDOUT registry.yarnpkg.com](https://meta.discourse.org/t/error-during-the-update-esockettimedout-registry-yarnpkg-com/268613):
>
> Trying to update Discourse via the manual procedure git pull ./launcher rebuild app ... ./discourse-doctor shows an error I, [2023-06-16T11:39:43.530890 #1] INFO -- : \> cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' error An unexpected error occurred: "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz: ESOCKETTIMEDOUT". FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfi…

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 7, 2024, 11:59am UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/4 "2024-08-07T11:59:40Z")

</div>

> [@manuel](#):
>
> dashboard tells me 3.3.0-beta6 is latest…

That’s odd in itself, should look more like:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/4/3/d436f10335dfcdc22d79a648bb31d8b62eadc790.png)

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [August 7, 2024, 12:01pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/5 "2024-08-07T12:01:03Z")

</div>

I see that on another instance as well:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/1/0/a107657816ad2609369b2e5c93ba752bd61e9e7b.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 7, 2024, 12:04pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/6 "2024-08-07T12:04:12Z")

</div>

> [@Celebrating Discourse release 3.3](https://meta.discourse.org/t/celebrating-discourse-release-3-3/319189/6):
>
> This was bumped/tagged by mistake. We can’t easily remove the commit, but the tag has now been removed. v3.3.0.beta5 was the final beta version of 3.3, and is identical to 3.3.0 stable.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 7, 2024, 12:12pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/7 "2024-08-07T12:12:05Z")

</div>

aah, thanks, missed that.

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [August 7, 2024, 12:28pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/8 "2024-08-07T12:28:10Z")

</div>

Ok, fixed as per [Stuck on yarn install, Time out](https://meta.discourse.org/t/stuck-on-yarn-install-time-out/227738).

For reference, in `/var/discourse/templates/web.template.yml` I added this block:

```plaintext
  - exec:
      cd: $home
      cmd:
       - su discourse -c 'yarn config set network-timeout 600000 -g'

```

before this one is called:

```plaintext
  - exec:
      cd: $home
      hook: yarn
      cmd:
        - |-
          if ["$version" != "tests-passed"]; then
            rm -rf app/assets/javascripts/node_modules
          fi
        - su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'

```

But why does it time-out? The solution on the linked topic states that it’s because of the small server specs (Google e2.micro instance, 2 cores, 1 GB RAM). But this is a 4 cores, 6GB VPS.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 7, 2024, 12:52pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/9 "2024-08-07T12:52:37Z")

</div>

Thanks for sharing the solution @nolo. This isn’t the first time people have hit this problem, so let’s improve things in the default template:

[https://github.com/discourse/discourse\_docker/pull/820](https://github.com/discourse/discourse_docker/pull/820)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 6, 2024, 12:53pm UTC](https://meta.discourse.org/t/error-upgrading-to-3-3-0-beta6-because-of-yarn-timeout/320526/10 "2024-09-06T12:53:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
