Stuart Longland (VK4MSL)
vk4msl.aus.social.ap.brid.gy
Stuart Longland (VK4MSL)
@vk4msl.aus.social.ap.brid.gy
Back-up account for @stuartl in case my server goes down. If I follow you here, I will probably follow you on my home server as well.

Posts made here expire after 2 […]

[bridged from https://aus.social/@vk4msl on the fediverse by https://fed.brid.gy/ ]
Starting up…
November 7, 2025 at 12:06 AM
Failed a second time, apparently it now works _without_ that option set.

It used to be it'd fail to build unless I did set the "max old space size". This is a VM with 8GB of RAM… it did get an upgrade when the Atom C2000 issue was resolved on a couple of old boards meant I gained some extra […]
Original post on aus.social
aus.social
November 7, 2025 at 12:04 AM
Trying again with `--max-old-space-size=512`.
November 6, 2025 at 11:33 PM
```

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0xe38a0e node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/bin/node]
2: 0x120a5a0 v8::Utils::ReportOOMFailure(v8::internal::Isolate* […]
Original post on aus.social
aus.social
November 6, 2025 at 11:33 PM
```
root@mastodon:~# nodejs --version
v22.21.0
```

…let's try that assets compile step again!
November 6, 2025 at 11:28 PM
So the issue was `liburing1` not being available on Debian 12… and also `/etc/apt/sources.list.d/postgresql.list` still referencing Debian 11 repositories.

Not so much I'm "holding" broken packages, just the distribution has moved on. Now PostgreSQL v18 is installed and it'll attempt an update […]
Original post on aus.social
aus.social
November 6, 2025 at 11:28 PM
```
root@mastodon:~# apt-get install -y postgresql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution […]
Original post on aus.social
aus.social
November 6, 2025 at 11:27 PM
In the midst of picking apart NodeSource's `setup_22.x` script so I can manually apply the changes without running a script as `root`… I see this:

```
The following packages have been kept back:
postgresql
```

I hate it when Debian does things without explaining what's going on.
November 6, 2025 at 11:17 PM
```
Building with Vite ⚡
You are using Node.js 20.5.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
failed to load config from /home/mastodon/live/vite.config.mts
error during build:
TypeError: crypto.hash is not a function
at file […]
Original post on aus.social
aus.social
November 6, 2025 at 11:10 PM
`NODE_OPTIONS="--max-old-space-size=768" RAILS_ENV=production bundle exec rails assets:precompile`

The `--max-old-space-size=768` is needed here because `nodejs`' heap management sucks, it just `malloc`s until it hits `ENOMEM` then dies.
November 6, 2025 at 11:09 PM
Oookay… onto the next step. `bundle install && yarn install --immutable`
November 6, 2025 at 10:52 PM
To be fair, I saw the `rbenv install` and missed the other bit, due to the way the text wrapped.
November 6, 2025 at 10:23 PM
Crap, forgot `RUBY_CONFIGURE_OPTS=--with-jemalloc`…
November 6, 2025 at 10:21 PM
```
mastodon@mastodon:~/live$ rbenv install
==> Downloading ruby-3.4.7.tar.gz...
-> curl -q -fL -o ruby-3.4.7.tar.gz https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.7.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.1M 100 22.1M […]
Original post on aus.social
aus.social
November 6, 2025 at 10:19 PM
There are times I wonder why I run Debian for a Mastodon host… I compile that much of it from source I might as well be running Gentoo.
November 6, 2025 at 9:53 PM
Ahh, `rbenv` my nemesis, we meet again… time to pull v3.4.7 (from v3.2.3).
November 6, 2025 at 9:52 PM
Migrations done… let's see if she'll start up.
July 9, 2025 at 3:46 AM
```
==> Installed ruby-3.4.4 to /home/mastodon/.rbenv/versions/3.4.4

```

First hurdle cleared. Now for the next steps…

```
env NODE_OPTIONS="--max-old-space-size=768" RAILS_ENV=production sh -c 'bundle install && yarn install --immutable && bundle exec rails assets:precompile' && […]
Original post on aus.social
aus.social
July 9, 2025 at 2:36 AM