Re: [bareos-users] Director service fails to start

255 views
Skip to first unread message

Philipp Storz

unread,
Feb 3, 2024, 3:48:42 AM2/3/24
to bareos...@googlegroups.com
Hello Mike,

return value 42 means BEXIT_CONFIG_ERROR
(see https://github.com/bareos/bareos/blob/master/core/src/include/exit_codes.h#L30)

So probably something is wrong with your configuration.

You also might want to check our youtube channel, as there we have a screencast showing how to
install Bareos on windows:

https://www.youtube.com/watch?v=f-2dlqfLFRc

If the proble only exists after the restart, and before it worked I could imagine that you database
server was not started after the reboot.

Best regards,

Philipp



Am 01.02.24 um 13:18 schrieb Mike Scholfield:
> I've been setting up BareOS, first time user, for a while, getting my head around it and I've hit a
> wall. I thought I was about ready to get going on my first test job and the director service fails
> to start. I get this when running "systemctl status bareos-dir":
> ● bareos-dir.service - Bareos Director Daemon service
>    Loaded: loaded (/usr/lib/systemd/system/bareos-dir.service; enabled; vendor preset: disabled)
>    Active: failed (Result: exit-code) since Thu 2024-02-01 12:11:07 GMT; 33s ago
>      Docs: man:bareos-dir(8)
>  Main PID: 7602 (code=exited, status=42)
>
> Feb 01 12:11:07 localhost.localdomain systemd[1]: Started Bareos Director Daemon service.
> Feb 01 12:11:07 localhost.localdomain systemd[1]: bareos-dir.service: main process exited,
> code=exited, status=42/n/a
> Feb 01 12:11:07 localhost.localdomain systemd[1]: Unit bareos-dir.service entered failed state.
> Feb 01 12:11:07 localhost.localdomain systemd[1]: bareos-dir.service failed.
> Feb 01 12:11:07 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/bareos-dir.service:16]
> Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
> Feb 01 12:11:09 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/bareos-dir.service:16]
> Unknown lvalue 'StartLimitIntervalSec' in section 'Unit'
> [root@localhost ~]# systemctl start bareos-dir
> [root@localhost ~]# systemctl status bareos-dir
> ● bareos-dir.service - Bareos Director Daemon service
>    Loaded: loaded (/usr/lib/systemd/system/bareos-dir.service; enabled; vendor preset: disabled)
>    Active: active (running) since Thu 2024-02-01 12:12:39 GMT; 1s ago
>      Docs: man:bareos-dir(8)
>  Main PID: 7755 (bareos-dir)
>     Tasks: 1
>    CGroup: /system.slice/bareos-dir.service
>            └─7755 /usr/sbin/bareos-dir -f
>
> This happened after a restart, can't for the life of me figure out what's causing it.
> Running CentOS 7
>
> Thanks
>
> --
> 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...@googlegroups.com <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/056504e5-d538-42f8-83b4-b3cde06b5207n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/056504e5-d538-42f8-83b4-b3cde06b5207n%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

Reply all
Reply to author
Forward
0 new messages