Error message before a backup job starts "No associated thread state found"

36 views
Skip to first unread message

Stefan Harbich

unread,
Dec 19, 2025, 2:25:55 AM12/19/25
to bareos-users
Hello, after updating to version 25.0.2, I receive the following email message before every job:
...
19-Dez 07:02 bareos-dir JobId 365: Fatal error: python3-dir: No associated thread state found
...
Where does this message come from?

Regards, Stefan Harbich

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 22, 2025, 3:53:38 AM12/22/25
to bareos-users
Could you tell us a bit more abour the job, like what kind of plugin is in use ...

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 22, 2025, 4:58:28 AM12/22/25
to bareos-users
Hi Stefan to complete my previous request:

This shouldn't happen, because we normally would have catch it during CI/CD stages.
So we are really interested by your setup, what plugin is activated and in use in your dir ...

Regards

Stefan Harbich

unread,
Dec 22, 2025, 9:07:51 AM12/22/25
to bareos-users
Hello,
i' m attaching the log file from the backups on December 22, 2025.
An error message is generated before every backup (regardless of which one).
Why?

2025_12_22_bareos dir.txt

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 22, 2025, 9:36:41 AM12/22/25
to bareos-users
Hi, the joblog is one thing, what we need to understand is why you got a message from bareos-dir about python3

Do you have in place some bareos dir python3 plugins ? 
How look the configuration of your bareos director ?

For the message it comes from the fixed code published in commit

Which fixes error popping out with python 3.12+ and fixed all know python in used in supported platforms.
As we have systemtest covering the python3 plugin in director (located here)
and no commit is merged before all tests are green, we really wonder what is the status of your installation,
any details you can share with us, might allow us to reproduce the problem.

Stefan Harbich

unread,
Dec 22, 2025, 7:41:30 PM12/22/25
to bareos-users
Hello, the following Bareos packages are installed.
My Python version is 3.13.5.
What directory configuration is required (job, job definition, etc.)?
...
root@bareos:~# dpkg -l bareos-* | grep ii
ii  bareos-bconsole                             25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - text console
ii  bareos-client                               25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - client metapackage
ii  bareos-common                               25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - common files
ii  bareos-contrib-director-python-plugins      25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - contributed Director plugins
ii  bareos-contrib-filedaemon-python-plugins    25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - contributed File Daemon plugins
ii  bareos-contrib-tools                        25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - contributed tools
ii  bareos-database-common                      25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - common catalog files
ii  bareos-database-postgresql                  25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - PostgreSQL backend
ii  bareos-database-tools                       25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - database tools
ii  bareos-dbg                                  25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - debugging symbols
ii  bareos-director                             25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - director daemon
ii  bareos-director-python-plugins-common       25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - director Python plugin common files
ii  bareos-director-python3-plugin              25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - director Python plugin
ii  bareos-filedaemon                           25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon
ii  bareos-filedaemon-ldap-python-plugin        25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon LDAP plugin
ii  bareos-filedaemon-mariabackup-python-plugin 25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon Mariabackup plugin
ii  bareos-filedaemon-postgresql-python-plugin  25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon PostgreSQL plugin
ii  bareos-filedaemon-python-plugins-common     25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon Python plugin common files
ii  bareos-filedaemon-python3-plugin            25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - file daemon Python plugin
ii  bareos-storage                              25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - storage daemon
ii  bareos-storage-python-plugins-common        25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - storage daemon Python plugin common files
ii  bareos-storage-python3-plugin               25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - storage daemon Python plugin
ii  bareos-tools                                25.0.2~pre13.add249aa9-15 amd64        Backup Archiving Recovery Open Sourced - common tools
ii  bareos-webui                                25.0.2~pre13.add249aa9-15 all          Backup Archiving Recovery Open Sourced - webui
root@bareos:~# python3 -V
Python 3.13.5
...

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 23, 2025, 7:07:25 AM12/23/25
to bareos-users
Hi Stefan,

Thanks for the list of packages. With all of them installed + having the plugin activated on the director I was able to reproduce the case.

We aren't sure if you really use a director plugin which is not a python3 plugin ? 
If not then you can setup your dir like this

cat /etc/bareos/bareos-dir.d/director/bareos-dir.conf
Director {                            # define myself
  Name = bareos-dir
  QueryFile = "/usr/lib/bareos/scripts/query.sql"
  Maximum Concurrent Jobs = 10
  Password = "secret"         # Console password
  Messages = Daemon
  Auditing = yes

  # Set to the number of purchased subscription units
  #
  Subscriptions = 100


  # Enable the Heartbeat if you experience connection losses
  # (eg. because of your router or firewall configuration).
  # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd.
  #
  # Heartbeat Interval = 1 min

  # remove comment from "Plugin Directory" to load plugins from specified directory.
  # if "Plugin Names" is defined, only the specified plugins will be loaded,
  # otherwise all director plugins (*-dir.so) from the "Plugin Directory".
  #
  Plugin Directory = "/usr/lib/bareos/plugins"
  Plugin Names = "Python3"

}

if you don't use plugin at all on tje director you can just comment the both line

This will remove the error line.

I will open a proper issue tomorrow on github.

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 24, 2025, 5:58:27 AM12/24/25
to bareos-users

Stefan Harbich

unread,
Dec 27, 2025, 5:09:15 AM12/27/25
to bareos-users
Hi Bruno, 
fter disabling the two Python lines in the Bareos directory configuration, the error message no longer appears.
Thanks for your help.

Reply all
Reply to author
Forward
0 new messages