Director will not start after upgrade to 24

100 views
Skip to first unread message

Seth Galitzer

unread,
Dec 13, 2024, 11:46:30 AM12/13/24
to bareos-users
My assistant upgraded today before I could tell them to wait. I've corrected new configs and updated the database schema, and the dir refuses to start.

Most recent output from /etc/bareos/bareos.log:
13-Dec 10:30 bareos-dir ERROR TERMINATION
Please correct the configuration in /etc/bareos/bareos-dir.d/*/*.conf

Output from /var/log/syslog:
2024-12-13T10:40:12.713443-06:00 imperial systemd[1]: bareos-director.service: Start request repeated too quickly.
2024-12-13T10:40:12.713873-06:00 imperial systemd[1]: bareos-director.service: Failed with result 'exit-code'.
2024-12-13T10:40:12.714046-06:00 imperial systemd[1]: Failed to start bareos-director.service - Bareos Director Daemon service.

Output from journalctl -xe:
Dec 13 10:40:12 imperial systemd[1]: bareos-director.service: Start request repeated too quickly.
Dec 13 10:40:12 imperial systemd[1]: bareos-director.service: Failed with result 'exit-code'.
 Subject: Unit failed
 Defined-By: systemd
 Support: https://www.debian.org/support
 
 The unit bareos-director.service has entered the 'failed' state with result 'exit-code'.
Dec 13 10:40:12 imperial systemd[1]: Failed to start bareos-director.service - Bareos Director Daemon service.
 Subject: A start job for unit bareos-director.service has failed
 Defined-By: systemd
 Support: https://www.debian.org/support
 
 A start job for unit bareos-director.service has finished with a failure.
 
 The job identifier is 1408 and the job result is failed.

Basically, nothing useful is being logged. No pointers to actual problems in any existing conf files. Any way to turn up logging verbosity to maybe help identify the problem?

This is running on debian 12. Problem persists after full reboot. SD and FD are starting fine on this host. It's only the dir that fails. I'd really like to get this fixed before nightly jobs start tonight.

Any advice is appreciated.

Thanks.
Seth

Philipp Storz

unread,
Dec 13, 2024, 11:55:59 AM12/13/24
to bareos...@googlegroups.com
Hello Seth,

probably you need to upgrade the database scheme.

see:
https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html#updating-the-database-scheme

This is usually done by the following commands run as root:

su postgres -c /usr/lib/bareos/scripts/update_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges

best regards,

Philipp

Am 13.12.24 um 17:46 schrieb Seth Galitzer:
> --
> 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+un...@googlegroups.com <mailto:bareos-users...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/bareos-users/
> d528edd0-59eb-419c-8005-1214e2f19a18n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-
> users/d528edd0-59eb-419c-8005-1214e2f19a18n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz

Die "dass IT GmbH" wurde mit der "Bareos GmbH & Co. KG" verschmolzen,
siehe https://www.bareos.com/de/dassit-verschmelzung/

Philipp Storz

unread,
Dec 13, 2024, 2:07:39 PM12/13/24
to bareos...@googlegroups.com
Just a quick update:

PR 2065 fixes the problem with dbconfig-common, so that after it is merged updates will work out of
the box.

Regards,

Philipp
Am 13.12.24 um 17:55 schrieb Philipp Storz:

Seth Galitzer

unread,
Dec 17, 2024, 1:52:27 AM12/17/24
to bareos...@googlegroups.com

Thanks for the suggestion. I did run the first script after upgrading, but not the second one. Even after running that, I get the same results. Same errors in journalctl and syslog, same lack of messages in bareos.log.

Seth


To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/caaf21cb-a7dc-463d-8107-3739317f058e%40bareos.com.


--
The beatings will continue until morale has improved.

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 17, 2024, 4:11:02 AM12/17/24
to bareos-users
Maybe as the documentation indicate you should run 

bareos-dir -d200 --dt -t -u bareos -g bareos 

It should tell what's going wrong, at least reporting the message here we will be able to help further ..

Ireneusz Piasecki

unread,
Dec 20, 2024, 2:29:50 AM12/20/24
to bareos...@googlegroups.com
I was hit by this issue to. 

It seems that running bareos-dir from comand line as bareos user fixed this. Then Bareos-dir started from systemd as always. Some files permissions?

Reply all
Reply to author
Forward
0 new messages