Bareos 23 has arrived! Major-release in the current repository

123 views
Skip to first unread message

Andreas Rogge

unread,
Nov 24, 2023, 10:23:54 AM11/24/23
to bareos-users
Dear fellow Bareos users,

as I already mentioned last week, the current repository now contains
Bareos 23.

If you're running off that repository, the next update will be a major
version upgrade also requiring an upgrade to the catalog database.
If you don't read anything else before applying the upgrade, please at
least look at the list of breaking changes in the ChangeLog[1].

I hope you all enjoy the new features. We're really looking forward
getting feedback from you!

Best Regards,
Andreas

[1] https://github.com/bareos/bareos/blob/bareos-23/CHANGELOG.md
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature

Silvio Schloeffel

unread,
Nov 24, 2023, 12:11:31 PM11/24/23
to bareos...@googlegroups.com
Hello Andreas,

nice to hear, we gave it a try and ....


Nov 24 16:59:50 storage-serv.xxx bareos-dir[244550]: bareos-dir:
dird/check_catalog.cc:68-0 Version error for database "bareos". Wanted
2230, got 2210
Nov 24 16:59:50 storage-serv.xxx bareos-dir[244550]: bareos-dir ERROR
TERMINATION


[bareos@storage-serv ~]$ bareos-dbcheck -b
24-Nov 17:03 dbcheck JobId 0: Fatal error: Version error for database
"bareos". Wanted 2230, got 2210
24-Nov 17:03 dbcheck: Fatal Error at dird/dbcheck.cc:932 because:
Version error for database "bareos". Wanted 2230, got 2210

Follow the db upgrade instructions:

[root@storage-serv catalog]# su postgres -c
/usr/lib/bareos/scripts/update_bareos_tables

COMMIT
SET
ANALYZE
could not change directory to "/etc/bareos/bareos-dir.d/catalog": Keine
Berechtigung
could not change directory to "/etc/bareos/bareos-dir.d/catalog": Keine
Berechtigung
Info: Finished upgrading database to version 2230

It's clear that the postgres user can not write in the configdir of
another process/user .

What will the upgrade do in the bareos dir?


Best

Silvio






Am 24.11.23 um 16:23 schrieb Andreas Rogge:
OpenPGP_signature.asc

Andreas Rogge

unread,
Nov 24, 2023, 12:18:23 PM11/24/23
to bareos...@googlegroups.com
Hi Silvio,

from the prompt you're showing you ran the database upgrade script when
you were in the catalog directory of the director configuration.

Apparently the script least tries to access the cwd which in your case
is not allowed. This shouldn't be an issue, but we can still look into
that because it is at least not nice.
To answer your question: the upgrade will do absolutely nothing in the
bareos dir, you just ran the script while you were in that directory.

Best Regards,
Andreas

Am 24.11.23 um 18:11 schrieb Silvio Schloeffel:
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages