Fatal error: Version error for database "bareos". Wanted 2230, got 2210

82 views
Skip to first unread message

Alexander Frankenhauser

unread,
Dec 16, 2023, 9:29:24 PM12/16/23
to bareos-users
Hello,

FreeBSD 13.8

Upgrade bareos from 22.1.1 to 23.01.

/usr/local/etc/rc.d/bareos-dir restart

"Fatal error: Version error for database "bareos". Wanted 2230, got 2210"

script: /usr/local/lib/bareos/scripts/update_bareos_tables
retuns error: "Don't know how to upgrade from version 2210 to 2230"

any hints would be welcome


Andreas Rogge

unread,
Dec 18, 2023, 8:54:38 AM12/18/23
to bareos...@googlegroups.com
Hi,

that looks like lib/bareos/scripts/ddl/updates/postgresql.2210_2230.sql
is missing from packaging on FreeBSD.
We're going to look into that and fix it. However, in the meantime you
should be able to work around that by fetching the missing file here:
https://raw.githubusercontent.com/bareos/bareos/master/core/src/cats/ddl/updates/postgresql.2210_2230.sql

When put into place (i.e. /usr/local/lib/bareos/scripts/ddl/updates/)
running update_bareos_tables should succeed.

Hope that helps!

Best Regards,
Andreas

--
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.asc

Alexander Frankenhauser

unread,
Dec 18, 2023, 7:59:28 PM12/18/23
to bareos-users
Thank you,
I will give that a try.
Reply all
Reply to author
Forward
0 new messages