# Build fails due to ruby version mismatch

**URL:** https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317
**Category:** Self-hosting
**Created:** [February 17, 2026, 5:35am UTC](https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317 "2026-02-17T05:35:23Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![philh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philh/32/532740_2.png) [@philh](https://meta.discourse.org/u/philh)
#### Post date: [February 17, 2026, 7:49pm UTC](https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317/8 "2026-02-17T19:49:00Z")

</div>

Thanks for jumping in @supermathie

2.0.20260209-1300 is used  
from fresh `./launcher rebuild web_only`

```plaintext
Status: Downloaded newer image for discourse/base:2.0.20260209-1300
docker.io/discourse/base:2.0.20260209-1300
Ensuring launcher is up to date
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 web_only
web_only
2.0.20260209-1300: Pulling from discourse/base
Digest: sha256:50d2dae489a9c9916c3d50d880f7f1282fcbe179339b60a8947ab135c1f1f9bf
Status: Image is up to date for discourse/base:2.0.20260209-1300
docker.io/discourse/base:2.0.20260209-1300

```

end of build

```plaintext
docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint web_only (9e391a36bdc1a80a6b993a466ffdba25337ce70f1fe74f2b5d8aaca75585322b): Bind for 0.0.0.0:80 failed: port is already allocated

```

[failed to set up container networking.txt](https://meta.discourse.org/uploads/short-url/jELfnHtzuGxVtx7HDzYJSEDGFix.txt) (74.3 KB)

**Edit**  
I am thinking the original sin started with the conversion to two containers.

> [@Move from standalone container to separate web and data containers](https://meta.discourse.org/t/move-from-standalone-container-to-separate-web-and-data-containers/29413/128):
>
> `./launcher bootstrap data && ./launcher destroy data && ./launcher start data`
> 
> fails with error unless first stopping the data container with `./launcher stop data`
> 
> This occurs on instances created fresh with `./discourse-setup --two-container` and converted using the longer method.

---

_[View the full topic](https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317)._
