PostgreSQL: How to Upgrade temBoard from Version 10.0.0 to Version 10.1.0

Dalibo released on the First of December temBoard version 10.1.0. This new release is mainly a bug fixing release.

The top changes are

Breaking changes

  • Remove bullseye support.

Other changes

  • ui: New external_url config option. Default value is set from fqdn.
    It needs to be correct for reset password to work properly.
  • Restore duration and size formatting in the statements plugin.
  • Fix sort criteria in the maintenance plugin.
  • Avoid auto-scrolling to the top of the page in the maintenance plugin.
  • Fix psycopg2 error on renaming user.
  • In the instance-has-DBA query, replace SELECT COUNT(1) with SELECT 1.
    COUNT() returns a row even if the user does not have DBA privileges.
  • Queries in the maintenance plugin have been modified to avoid SQL injection possibly
    leading to remote code execution.
  • Restrict POST request on /json/instances to admin users.
  • Use parameterized queries instead of string formatting in pgconf plugin.
  • Avoid XSS through code execution via instance name or error message.
  • Forbid invalid hostname in instance creation.
  • Prevent XSS via application_name from pg_stat_activity.
  • Extend active plugin check to /proxy routes.
  • Add login throttle mechanism to UI.
  • Catch more exceptions when reading reset password token.
  • Ensure the cookie secret has been changed in configuration.
  • agent: Don’t trust Host header.
  • agent: New external_url config option, when running behind a proxy.
  • Onetime reset password link.
  • Use server side session to invalidate cookie after logout, preventing reuse of stolen cookie.
  • temboard stores session in a memory bucket; restarting temboard drops all active sessions.
  • Restrict cookie to temBoard host.
  • Isolate cookie from javascript.
  • Hash passwords using argon2.
  • Fix preun scriptlet for bash 4.4 on RHEL8.
  • Alert the user if the agent version is outdated on the Instances Settings and Instances About pages.

For more information take a look at the following link

https://temboard.readthedocs.io/en/latest/changelog/

You can compare changes between release 10.0.0 and 10.1.0 and see how many changes went into this release

https://github.com/dalibo/temboard/compare/v10.0.0…v10.1.0

However, in this blog post I would like to concentrate on the upgrade procedure to the version 10.1.0.

Before you start, read the upgrade docs carefully. You can find them here.

https://temboard.readthedocs.io/en/latest/server_upgrade/

From a high level view, the most important steps are:

  • Download the rpm files for your Linux release (RHEL 9.x in may case)
    https://github.com/dalibo/temboard
  • Backup your repository database
  • Backup temboard.conf, temboard-agent.conf and other temboard related files
  • Upgrade first the agents to at least 10.0.0 if not already done
  • Upgrade temboard to 10.1.0
  • Upgrade temboard agents to 10.1.0

In this blog post, I will jump right into the temboard upgrade process.

Check the installed version.

$ rpm -qa | grep temboard
temboard-10.0.0-1.el9.x86_64
temboard-agent-10.0.0-1.el9.noarch

Stop the temBoard server and agent and start with a clean log file.

$ sudo systemctl stop temboard-agent@PGMP01A.service
$ sudo systemctl stop temboard.service
$ sudo systemctl reset-failed
$ sudo systemctl is-system-running
running
$ cd /var/log/temboard/
$ sudo mv temboard.log temboard.log.before_upgrade_to_10.1.0
$ cd /etc/temboard/; cp -p temboard.conf temboard.conf.20261201a

Upgrade the temBoard server.

$ sudo dnf localupdate temboard-10.1.0-1.el9.x86_64.rpm

...

Updating Subscription Management repositories.

This system has release set to 9 and it receives updates only for this release.

Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)                                                                                                                         83 kB/s | 2.3 kB     00:00
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)                                                                                                                    81 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                    44 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                       53 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - Supplementary (RPMs)                                                                                                                72 kB/s | 2.0 kB     00:00
Dependencies resolved.
===========================================================================================================================================================================================================
 Package                                        Architecture                                 Version                                              Repository                                          Size
===========================================================================================================================================================================================================
Upgrading:
 temboard                                       x86_64                                       10.1.0-1.el9                                         @commandline                                       5.7 M

Transaction Summary
===========================================================================================================================================================================================================
Upgrade  1 Package

Total size: 5.7 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                   1/1
  Upgrading        : temboard-10.1.0-1.el9.x86_64                                                                                                                                                      1/2
  Running scriptlet: temboard-10.1.0-1.el9.x86_64                                                                                                                                                      1/2
  Running scriptlet: temboard-10.0.0-1.el9.x86_64                                                                                                                                                      2/2
  Cleanup          : temboard-10.0.0-1.el9.x86_64                                                                                                                                                      2/2
  Running scriptlet: temboard-10.0.0-1.el9.x86_64                                                                                                                                                      2/2
  Verifying        : temboard-10.1.0-1.el9.x86_64                                                                                                                                                      1/2
  Verifying        : temboard-10.0.0-1.el9.x86_64                                                                                                                                                      2/2
Installed products updated.

Upgraded:
  temboard-10.1.0-1.el9.x86_64

Complete!


...

Upgrade the temBoard agent.


$ sudo dnf localupdate temboard-agent-10.1.0-1.el9.noarch.rpm


...

Updating Subscription Management repositories.

This system has release set to 9 and it receives updates only for this release.

Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)                                                                                                                         92 kB/s | 2.3 kB     00:00
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)                                                                                                                    84 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                    44 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                       62 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - Supplementary (RPMs)                                                                                                                72 kB/s | 2.0 kB     00:00
Dependencies resolved.
===========================================================================================================================================================================================================
 Package                                             Architecture                                Version                                           Repository                                         Size
===========================================================================================================================================================================================================
Upgrading:
 temboard-agent                                      noarch                                      10.1.0-1.el9                                      @commandline                                      308 k

Transaction Summary
===========================================================================================================================================================================================================
Upgrade  1 Package

Total size: 308 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                   1/1
  Upgrading        : temboard-agent-10.1.0-1.el9.noarch                                                                                                                                                1/2
  Running scriptlet: temboard-agent-10.1.0-1.el9.noarch                                                                                                                                                1/2
  Running scriptlet: temboard-agent-10.0.0-1.el9.noarch                                                                                                                                                2/2
  Cleanup          : temboard-agent-10.0.0-1.el9.noarch                                                                                                                                                2/2
  Running scriptlet: temboard-agent-10.0.0-1.el9.noarch                                                                                                                                                2/2
  Verifying        : temboard-agent-10.1.0-1.el9.noarch                                                                                                                                                1/2
  Verifying        : temboard-agent-10.0.0-1.el9.noarch                                                                                                                                                2/2
Installed products updated.

Upgraded:
  temboard-agent-10.1.0-1.el9.noarch

Complete!


...

Run the temBoard server migratedb command as the temboard OS user.

$ su - temboard
Password:
Last login: Tue Dec  1 07:57:02 CET 2026 from 10.86.48.20 on pts/2
temboard@host01:/var/lib/temboard
$

You might want to check the syntax first.

$ /usr/bin/temboard --help
INFO:  app: Starting temboard. version=10.1.0
usage: temboard [-h] [-c CONFIGFILE] [--verbose] [-V] COMMAND ...

temBoard UI 10.1.0.

COMMAND is optional. Default command is `serve`, the combined
service. See available commands below.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIGFILE, --config CONFIGFILE
                        Configuration file
  --verbose, --debug    Enable verbose messages for temBoard.
  -V, --version         show version and exit

Available commands:
  COMMAND               Name of one sub-command described bellow.
    apikey              Manage API keys.
    generate-key        Generate signing key.
    migratedb           Manage temBoard own database.
    query-agent         Query a temBoard agent
    register-instance   Out-of-bound registration of a PostgreSQL instance.
    routes              List HTTP routes map.
    serve               Combined web server and background workers.
    tasks               Manage background tasks.
    web                 Standalone web server.

$ temboard migratedb upgrade
INFO:  app: Starting temboard. version=10.1.0
INFO:  app: Using config file /etc/temboard/temboard.conf.

… from the postgresql log file

...

2026-12-01 14:06:47.465 CET [1267444] 10.86.70.20 temboard temboard temboard LOG:  statement: ------------------------------------------------
        --     Fix role_name update propagation       --
        ------------------------------------------------

        ALTER TABLE application.memberships
        DROP CONSTRAINT memberships_role_name_fkey;

        ALTER TABLE application.memberships
        ADD CONSTRAINT memberships_role_name_fkey
        FOREIGN KEY (role_name)
        REFERENCES application.roles (role_name)
        ON UPDATE CASCADE
        ON DELETE CASCADE;

2026-12-01 14:06:47.587 CET [1267444] 10.86.70.20 temboard temboard temboard LOG:  statement: CREATE TYPE application.login_failure_kind AS ENUM ('account', 'ip');


        CREATE TABLE
          application.login_failures (
            id SERIAL PRIMARY KEY,
            kind application.login_failure_kind NOT NULL,
            key TEXT NOT NULL, -- username or IP address
            count INTEGER NOT NULL DEFAULT 1,
            failed_at TIMESTAMPTZ NOT NULL DEFAULT now (),
            CONSTRAINT login_failures_kind_key_unique UNIQUE (kind, key)
          );


        CREATE INDEX login_failures_kind_keY_idx ON application.login_failures (kind, key);
...

Now adjust the systemd configuration file.

$ cd /etc/systemd/system/
$ sudo vi temboard.service
$ cat temboard.service
[Unit]
Description=temBoard Server
After=network.target

[Service]
Type=simple
User=temboard
Group=temboard
Environment="SYSTEMD=1"
Environment="LD_LIBRARY_PATH=/app/lib/postgres/pgproduct/pg-18.7/lib"
ExecStart=/usr/bin/temboard -c /etc/temboard/temboard.conf serve
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
$ cd /etc/systemd/system/multi-user.target.wants/ 
$ sudo vi temboard-agent@PGMP01A.service
[Unit]
Description=PostgreSQL Remote Control Agent %I
After=network.target postgresql@%i.service
AssertPathExists=/etc/temboard-agent/%I/temboard-agent.conf

[Service]
Type=simple
User=postgres
Group=postgres
Environment="SYSTEMD=1"
Environment="LD_LIBRARY_PATH=/app/lib/postgres/pgproduct/pg-18.7/lib"
ExecStart=/usr/bin/temboard-agent -c /etc/temboard-agent/%I/temboard-agent.conf serve
# Increase OOM Score to ensure agent is killed before Postgres.
OOMScoreAdjust=15

[Install]
WantedBy=multi-user.target

Remove the deprecated agent administration plugin, if it’s still configured

$ cd /etc/temboard-agent/PGMP01A/
$ cp -p temboard-agent.conf temboard-agent.conf.20261201a

Remove the following block.

[administration]
# Path to pg_ctl. %s is either start, restart or reload.
pg_ctl = /app/lib/postgres/pgproduct/pg-18.7/bin/pg_ctl %s -D /app/lib/postgres/pgdata/18/PGMP01A
$ sudo systemctl reset-failed
$ sudo systemctl daemon-reload
$ rpm -qa | grep temboard
temboard-10.1.0-1.el9.x86_64
temboard-agent-10.1.0-1.el9.noarch
$ sudo systemctl start temboard.service
$ sudo systemctl start temboard-agent@PGMP01A.service

Now check the status of the temBoard server

$ sudo systemctl status temboard.service

...

● temboard.service - temBoard Server
Loaded: loaded (/etc/systemd/system/temboard.service; disabled; preset: disabled)
Drop-In: /etc/systemd/system/temboard.service.d
└─override.conf
Active: active (running) since Tue 2026-12-01 14:10:56 CET; 34s ago
Main PID: 1269683 (temboard)
Tasks: 30 (limit: 306172)
Memory: 870.5M (peak: 1.1G)
CPU: 11.082s
CGroup: /system.slice/temboard.service
├─1269683 "temboard: web"
├─1269686 "temboard: scheduler"
├─1269687 "temboard: worker pool"
├─1269694 "temboard: task temboardui.plugins.monitoring.tasks.aggregate_data_worker"
├─1269695 "temboard: task temboardui.plugins.monitoring.tasks.history_tables_worker"
├─1269697 "temboard: task temboardui.plugins.monitoring.tasks.purge_data_worker"
├─1269701 "temboard: task temboardui.plugins.statements.pull_data_worker"
├─1269703 "temboard: task temboardui.plugins.statements.statements_purge_worker"
├─1269732 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269733 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269735 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269737 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269740 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269741 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269743 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269746 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269747 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269748 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269749 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269750 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269753 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269758 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269760 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269761 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269763 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269764 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
├─1269766 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"
└─1269767 "temboard: task temboardui.plugins.monitoring.tasks.collector_batch"

Dec 01 14:10:56 host01 systemd[1]: Started temBoard Server.
Dec 01 14:10:57 host01 temboard[1269683]: INFO: app: Starting temboard. version=10.1.0
Dec 01 14:10:57 host01 temboard[1269683]: INFO: app: Using config file /etc/temboard/temboard.conf.

...

Check the status of the temBoard agent

$ sudo systemctl status temboard-agent@PGMP01A.service

...

● temboard-agent@PGMP01A.service - PostgreSQL Remote Control Agent PGMP01A
Loaded: loaded (/usr/lib/systemd/system/temboard-agent@.service; enabled; preset: disabled)
Active: active (running) since Tue 2026-12-01 14:11:04 CET; 58s ago
Main PID: 1269927 (temboard-agent)
Tasks: 6 (limit: 306172)
Memory: 35.5M (peak: 41.4M)
CPU: 422ms
CGroup: /system.slice/system-temboard\x2dagent.slice/temboard-agent@PGMP01A.service
├─1269927 "temboard-agent: PGMP01A: web"
├─1269929 "temboard-agent: PGMP01A: scheduler"
├─1269930 "temboard-agent: PGMP01A: worker pool"
└─1269938 "temboard-agent: PGMP01A: task temboardagent.plugins.dashboard.dashboard_collector_batch_worker"

Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=template1
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=postgres heap_bloat_ratio=8.47107438016529
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=temboard heap_bloat_ratio=3.7813696203826304
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=template1 heap_bloat_ratio=10.570824524312897
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=postgres btree_bloat_ratio=6.043956043956044
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=temboard btree_bloat_ratio=2.834961134665859
Dec 01 14:11:05 host01 temboard-agent[1269939]: monitoring: up=1 dbname=template1 btree_bloat_ratio=5.8988764044943816
Dec 01 14:11:05 host01 temboard-agent[1269939]: taskmanager: Job done. task=temboardagent.plugins.monitoring.monitoring_collector_worker
Dec 01 14:11:35 host01 temboard-agent[1269938]: dashboard: Collecting metrics.
Dec 01 14:11:35 host01 temboard-agent[1269938]: dashboard: active_backends.nb=30 buffers.nb=59856235303 cpu.idle=42.3 cpu.iowait=30.8 cpu.steal=0.0 cpu.system=3.8 cpu.user=23.1 databases.databases=2

...

Check if the new temboard ui and temboard agent version is correct.

$ temboard --version
INFO:  app: Starting temboard. version=10.1.0
temBoard 10.1.0 (/usr/bin/temboard)
System Red Hat Enterprise Linux 9.9 (Plow)
Python 3.9.25 (/usr/bin/python3.9)
cryptography 36.0.1
Tornado 6.4.2
Flask 3.1.2
libpq 18.4
psycopg2 2.8.6 (dt dec pq3 ext lo64)
SQLAlchemy 1.4.54
$ temboard-agent --version
INFO:  app: Starting temboard-agent. version=10.1.0
temBoard agent 10.1.0 (/usr/bin/temboard-agent)
System Red Hat Enterprise Linux 9.9 (Plow)
Python 3.9.25 (/usr/bin/python3.9)
bottle 0.13.4
cryptography 36.0.1
libpq 18.4
psycopg2 2.8.6 (dt dec pq3 ext lo64)

Now, everything is fine and we are ready to go

Conclusion

That new release from Dalibo included mainly bug fixes. I will write a few blog posts about the cool features in temBoard version 10.1.0 very soon. Have fun with the new version.

Leave a Reply