Some Bits: Nelson's log

5 posts in November 2025

Upgrading Proxmox 8.4 to 9.1

I updated my main Proxmox server today from 8.4 to 9.1. The big change is an upgrade from Debian bookworm to trixie. And of course lots of Proxmox changes on top of that.

This server is the one doing important work. And to make things spicy, it’s a little customized: I have it running an NFS server on the PVE host itself, with a special loop subnet for communication between the Proxmox guest systems (including NFS). I also have Tailscale installed, Proxmox has no first class support for that.

The upgrade went fine. A little scary, as always, but no real problems. They have good docs on it and a nice pve8to9 tool for testing as you go. It’s a little bit of a manual process, I don’t love running sed commands via copy-and-paste and being told “just look at the config file changes and decide for yourself what to keep”. But at its core it’s basically just a regular Debian update and that process is well tested. I did make a rookie mistake of upgrading via ssh without a screen session but I got away with it. (The upgrade process is smart enough not to kill your active ssh session!)

Little hiccups I encountered:

  • I had to hand-edit one apt source to get tailscale on trixie instead of bookworm.
  • I got a very confusing message from the upgrade about /etc/initramfs/post-update.d/systemd-boot being changed and which version did I want to keep. This issue is not in the Wiki (it should be) but it is discussed here. I went with “N”, keeping the old Proxmox version which just got stubbed out with This hookfile has been disabled by proxmox-boot-tool. I’m guessing its contents don’t matter as Proxmox overrides Debian’s boot setup.
  • After the install pve8to9 told me I should remove the systemd-boot package to prevent future upgrade problems. This issue is well documented on the wiki and removing it was fine in my case.

The boot hiccups are scary. Booting in Linux is confusing, Proxmox is doing something even trickier with its own bootstrap and booting from ZFS. And if this screws up your whole system is broken in a hard-to-repair way. But I think the underlying tools are pretty robust. The pve8to9 script also seems to have enough checks and safeguards in place it works as a safety net. I think.

Easy Porkbun DDNS

I’m liking Porkbun as my registar. One nice thing: they have an API and formal DDNS support. And good docs. However their recommended DNS client is some absurd persistent process which runs a web server. Give me a break! I’m using mietzen’s porkbun-ddns instead. It’s a simple Python client that you can easily run from cron. Seems to work fine. The configuration is a bit of a PITA but once it’s set up it runs with no hassle.

Looking at Health Connect data for InBody, etc

Tinkering with Android’s Health Connect data, the hub for fitness data in the Android ecosystem. I don’t want to mess with their formal APIs so I’m looking to use the nightly full database backups I have it making to Google Drive. They seem to work and contain real data. (This may be a mistake: Health Connect has some semantics implicit in their API I’m having to rediscover by looking at the raw data.)

The result is a .zip file with a single .db file in it, a sqlite3 database. That database has some 73 tables in it but many are empty. So my sexual_activity_record_table shows 0 records, rude!

I’m mostly interested in data from my InBody scale. But I may also have data written from a Amazfit writsband, a WiThings scale, Cronometer diet tracker, maybe the phone itself. Don’t know! Here’s some tables that do have interesting data in them, data that was updated in the last day or two.

Tables seems to come in a couple of types. Some are very simple tables with no app or device identifier and no timezone info. Other tables have complex data with time zone offsets and app and device identifiers. These often are recording cumulative counts for the interval or the like. My theory is the simple data is for old Google Fit APIs and the more complex data is coming from apps using Health Connect APIs. It may be something else.

One thing I’ve learned doing this is Health Connect allows multiple devices and apps to record to the same record of, say, your weight. For my purposes I want to separate those out by ID so I can know whether a weight measure came from the WiThings scale or the InBody scale. Or whatever.

InBody Data

Bottom line: the only useful things this is writing are weight and body fat. I bought the fancy H30 scale that does more precise measures of skeletal muscle mass. They are not recording this data to Health Connect, disappointing. (I do wonder if they can: Health Connect seems to have fixed categories of data.) InBody doesn’t seem to have any other data export options, either. Ugh.

  • weight_record_table (WiThings also writing data)
  • body_fat_record_table (Inbody writes twice, WiThings also writing data)
  • basal_metabolic_rate_record_table (AmazFit also writing this)

Amazfit Data

Bottom line: this is recording a lot of stuff. Steps, Oxygen, Calroies burned, Heart rate, Sleep.

Data is often logged every 10 minutes, but not always. Its data seems to be coming from app ID 1 (Google Fit) and device .

Simple data recorded every N minutes

  • heart_rate_record_series_table
  • speed_record_table
  • activity_date_table
  • sleep_stages_table (contains an interval but is simple data)

Complex data recorded every N minutes

  • steps_record_table (both phone itself and Amazfit / Zepp)
  • distance_record_table
  • oxygen_saturation_record_table
  • total_calories_burned_record_table (Amazfit and Phone)
  • resting_heart_rate_record_table
  • sleep_session_record_table (naps vs. full sleep)

Tables with lots of rows but no actual measurements, just time intervals

  • heart_rate_record_table
  • SpeedRecordTable

Cronometer data

  • nutrition_record_table (many columns!)

Phone-originated data

  • height_record_table (written once a day)
  • activity_intensity_record_table (contains no data?)

Administrative tables and misc data

  • read_access_logs_table
  • change_log_request_table
  • sqlite_sequence
  • preference_table
  • health_data_category_priority_table
  • device_info_table
  • application_info_table
  • android_metadata

From this I learned some device and app IDs.

Devices

  • 1: ? (seems to be my AmazFit)
  • 2: Withings
  • 3: ? (also my AmazFit?)
  • 4: my Pixel 8 phone

Apps

  • 1: Google Fit (coming from other systems?)
  • 2: Withings
  • 3: Google Play services (???)
  • 4: Android Shell (???)
  • 5: Zepp, which is the Amazfit fitness band
  • 6: Cronometer
  • 7: InBody
  • 8: OMRON Connect, a blood pressure monitor
  • 9: Health Sync, an app I installed

Setting the stupid clock on my Viking VSOE530

I have a fancy oven with a stupid digital clock and twice a year I have to look up how to set the stupid time. The trick is which two magic buttons you have to hold down at once. Here’s the instructions

Setting the time-of-day:

  • Push and hold the “min/sec timer” and ‘bake time” buttons simultaneously.
  • Turn the “Set” knob until correct time is displayed on the digital clock.
  • Release hold from “min/sec timed’ and “bake time” buttons.
    The analog clock’s time will automatically set to match the digital clock.

There’s also elaborate instructions for synchronizing the analog clock hands to the digital clock. But usually they will sync themselves.

Daylight savings time is fucking stupid.

Getting the smaller, cheaper Google One plans

If you want to buy Google’s smallest Google One plans, you may have to go to the settings page, cancel Google One first and then buy again. In particular they don’t show you cheaper options unless you cancel first. Don’t worry: the cancellation isn’t immediate, it comes effective when your current month is up. You have time to re-enable a new smaller plan.

I use about 40GB on Google One and have paid $2/mo for years for the 100GB plan. I upgraded a few months ago to some AI Premium plan that came with 2TB for $20/mo. I hated the AI so I switched back to what was the smallest plan on offer, the 2TB no AI plan for $10/mo. They weren’t showing me the 100GB $2/mo plan. I found the workaround to cancel in a Reddit discussion.

Google dropped the “Don’t be Evil” ethos more than a decade ago. Stuff like hiding cheaper plans is clearly on the evil side. Dumb and sleazy.