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:
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 -b24-Nov 17:03 dbcheck JobId 0: Fatal error: Version error for database "bareos". Wanted 2230, got 221024-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_tablesCOMMIT SET ANALYZEcould not change directory to "/etc/bareos/bareos-dir.d/catalog": Keine Berechtigung could not change directory to "/etc/bareos/bareos-dir.d/catalog": Keine BerechtigungInfo: Finished upgrading database to version 2230It'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?
-- Andreas Rogge andreas.ro...@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 -- 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 bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/7371c153-5a36-a405-5344-1ede9bb67590%40bareos.com.
OpenPGP_0x00314758866BD59E.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature