Skip to content
Roberto Mladina
Local time in Ingolstadt:
DE – Deutsch EN – English

Logbook · Event 11 October 2026 · Lessons learned

Server upgrade on a Sunday: two traps and what stays

6 min read

  1. 01Hurdle

    After switching to a new Ubuntu version, my server no longer started, and programs could not find their packages.

  2. 02Cause

    I had put the bootloader in one part of the hard disk instead of the whole disk, and Python changed from 3.12 to 3.14.

  3. 03Solution

    I repaired the boot myself with a second Linux from a medium, and an agent rebuilt the Python environment and checked it with tests.

  4. 04Result

    By the afternoon the server ran without errors again, and on Monday all the morning programs ran.

Evidence

# Upgrade, Sunday 11 Oct 2026
10:55  state measured beforehand
13:24  start after repair
14:02  GRUB set up again
14:06  restart without errors
# Tests afterwards: 586 of 586

On Sunday, 11 October 2026, I moved my server’s operating system to a new version. The server is a computer of my own that runs around the clock. My AI agents work on it, that is, programs that use an AI to carry out tasks on their own. Today the programs that back up my websites and keep them updated run there too. This post tells of two traps I fell into during the switch.

Terms on this page
AI agent
A program that uses an AI to carry out tasks on its own.
Linux
A free operating system that exists in many variants. Ubuntu and Linux Mint are two of them.
Rollback
A change is undone, and the previous state applies again. With an update, the old version comes back.
Kernel
The innermost part of an operating system, which controls the hardware. It hands out memory and computing time to the programs.
Bootloader
A small program that loads the operating system when you switch on. On Ubuntu it is called GRUB.
Partition
A hard disk can be divided into areas. To the operating system, each of them looks like a drive of its own.
Live system
An operating system that starts directly from a medium such as a USB stick, without installation. It gives you access to the hard disk of a computer that no longer starts by itself.
Package
Ready-made code from others that a program uses as a building block. Every package has a version number.
Virtual environment
A folder with the packages for a single program in the Python programming language. It belongs to the Python version it was created with.
Test
A small program that checks whether the code does the right thing.

A plan against 19 risks

The operating system is called Ubuntu, a variant of Linux. The versions carry year and month in their name. I moved from 24.04, released in April 2024, to 26.04 from April 2026. Three days before, I asked the agents:

“Please start preparing for 26.04.”

The agents wrote a plan from that. It listed 19 things that could go wrong. For most of them it said how to recognise them and what helps. The same evening a second AI looked for gaps in the plan. It is a different AI from the agents’, so that no AI checks its own work. What it found went into the plan.

There was no way back at the push of a button (rollback). In the worst case I would have had to install everything again, which would take half a day to a whole one.

The work was split. Commands that change the operating system I typed myself. The agents checked before and after whether all services and programs were running. For emergencies there was a safety net. When switched on, the server now showed a selection menu for five seconds. In it I could, if needed, start the old kernel. That is the innermost part of the system, in its previous version.

Trap 1: The server no longer started

Around noon the upgrade ran, that is, the switch to the new version. After that, the server no longer started. The cause was GRUB. That is a small program that loads the operating system when you switch on (bootloader).

During the upgrade, a dialog asked where GRUB should be installed. I chose a partition there, that is, a separate area of the hard disk. The right choice would have been the whole hard disk. So the new version of GRUB ended up in the partition. At the start of the hard disk, where the computer looks when it boots, the old one was still there. At boot it loads further parts of GRUB, and those were now new. Old and new did not fit together, and the boot failed.

The safety net did not help here, because the selection menu also comes from GRUB. I repaired the server myself, with Linux Mint. That is a different Linux that can be started directly from a medium, without installation (live system). That gave me access to the server’s hard disk. At 13:24 it was running again. Afterwards I set up GRUB cleanly once more, this time only on the whole hard disk. A restart at 14:06 ran without errors.

Trap 2: Programs without their building blocks

Some of my programs are written in Python, a programming language. They need packages, that is, ready-made building blocks from others. These sit in an environment of their own for each program (virtual environment), a folder with the matching packages. The new Ubuntu comes with Python 3.14 instead of 3.12. But the packages in the environments had been set up for 3.12, and the new Python could not find them any more.

This trap was in the plan, and it was urgent. My Portfolio Manager was affected too, an older project that manages a securities account without real money. Its programs run by themselves every morning, the first one already on Monday. So an agent rebuilt its environment on Sunday. A list that is part of the project says which packages belong in it. Three surprises turned up.

  • The list was incomplete. The old environment held packages that were not on the list. One of them is needed by a program that runs in the morning. The agent installed them afterwards.
  • The inventory was empty. In the morning the agent had written down what was in the old environment. The tool for that was already broken before the upgrade, because the environment had once been moved. The command suppressed the error message, so only an empty listing came out. It then read from its files what had been in the old environment.
  • Only the names were the same. At first the agent wrote “63 packages as before”. In the afternoon the second AI checked. About 35 packages were now installed in a newer version. The project’s list only fixes the minimum version a package must have. Newer ones are allowed but can behave differently.

Whether the programs work correctly with the new versions is shown by tests. These are small checking programs that look at whether the code does what it should. Of 586 tests, 584 passed at first. The other two were not caused by the upgrade, they failed with the old Python too. They compared a fixed date with today’s date and failed once that date lay too far in the past. They were fixed the same day.

On Monday, 12 October, all the morning programs ran without errors.

What stays

The plan had a table with the questions the upgrade asks along the way, and the right answer to each. The question about where GRUB goes was missing from it. Today the answer is in the notes my agents read at every start: GRUB belongs on the whole hard disk.

For Python the rule since then has been: after such a switch, every environment is rebuilt. Whether the programs then work correctly is shown by the tests. Equal package names are not enough as proof.

What is still open

The server is not tidied up yet. It still holds programs I probably no longer need, and parts of the old system. The wrongly installed version of GRUB also still sits in the partition. It does no harm. Whether an agent removes it, I will decide when tidying up.

Only a fresh installation would make it completely clean, setting the system up from scratch. I have postponed that on purpose. It comes only after the move to a rented server. I will report on it here once it is time.