Hi Jim,
you need to run the schema-upgrade-scripts on your database.
See
https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html#updating-the-database-scheme
I don't know if Barcus' Director-Image has a switch to do that
automatically...
Best Regards,
Andreas
Am 20.02.22 um 21:57 schrieb Jim Oltman:
I'm running Barcus Bareos DIR/FD/WebUI docker containers. It took me a
bit, but I think I was able to migrate to PostgreSQL from my MariaDB.
I'm currently running the 20-ubuntu tag from Barcus, which appears to be
PostgreSQL only. When I move to the "latest" tag (Bareos 21 with
Ubuntu) the director container never starts up and is constantly
restarting (I have restart set to always in the docker-compose file).
These are the errors I see in the docker log for the Director container:
Waiting for postgresql...
bareos-db:5432 - accepting connections
...postgresql is alive
bareos-dir: dird/check_catalog.cc:64-0 Could not open Catalog
"MyCatalog", database "bareos".
bareos-dir: dird/check_catalog.cc:71-0 Version error for database
"bareos". Wanted 2210, got 2192
bareos-dir ERROR TERMINATION
Please correct the configuration in /etc/bareos/bareos-dir.d/*/*.conf
For reference, bareos-db is another docker container running postgres
9.3 from their official docker hub. The old MariaDB container was named
"mariadb". In the docker-compose file, I have the DB_UDPATE=TRUE. I'm
not seeing anything in the 21 release notes mentioning a DB schema update.
This is the MyCatalog.conf file:
Catalog {
Name = MyCatalog
#dbdriver = "sqlite3"
DB Name = bareos
DB Address = "bareos-db"
DB Port = "5432"
DB User = postgres
DB Password = "PASSWORD"
}
Here is the bareos-dir.conf:
Director { # define myself
Name = bareos-dir
QueryFile = "/usr/lib/bareos/scripts/query.sql"
Maximum Concurrent Jobs = 10
Password = "PASSWORD" # Console password
Messages = Daemon
Auditing = yes
}
Any assistance would be appreciated. Thanks.
Jim
--
You received this message because you are subscribed to the Google
Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/d16c2315-9c65-4533-abc8-0787468cda90n%40googlegroups.com
<https://groups.google.com/d/msgid/bareos-users/d16c2315-9c65-4533-abc8-0787468cda90n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Andreas Rogge [email protected]
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: S. Dühr, M. Außendorf, J. Steffens, Philipp Storz
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/4bc04af5-d715-26e0-1292-3191b6fe83bc%40bareos.com.