When https://github.com/bareos/bareos/pull/1592 got merged, these bugs
should be gone.
Regards,
Jörg
On 05.11.23 at 18:39 wrote Joshua Myles:
There hasn't been any motion on the bug report, so I came up with a
workaround (this is definitely not a fix). The bug isn't hit if you have
the LC_MESSAGES environment variable set. This is maybe why it worked
for you with sudo but not launchctl, Brock. To do this with launchctl,
set the environment variable in
/Library/LaunchDaemons/com.bareos.bareos-fd.plist.
<key>EnvironmentVariables</key>
<dict>
<key>LC_MESSAGES</key>
<string>C</string>
</dict>
Full example file attached.
Then unload, reload, and start the service.
sudo launchctl unload -w /Library/LaunchDaemons/com.bareos.bareos-fd.plist
sudo launchctl load -w /Library/LaunchDaemons/com.bareos.bareos-fd.plist
sudo launchctl start com.bareos.bareos-fd
I also found that bareos-fd was looking for a wrong Working Directory
even though it is set correctly in the plist (I tested this to be sure).
This is what I got in /var/run/bareos-fd.log:
bareos-fd: ERROR TERMINATION at lib/util.cc:1072
Working Directory: "/usr/local/var/lib/bareos" not found. Cannot continue.
I'm not sure if this is another bug, but as a workaround I created that
directory. bareos-fd does want to use that directory, so it's best as a
symlink to the normal location.
% sudo mkdir -p /usr/local/var/lib
% sudo ln -s /usr/local/bareos/var/lib/bareos /usr/local/var/lib/bareos
Josh
On Tuesday, October 31, 2023 at 7:15:37 PM UTC-4 Joshua Myles wrote:
https://bugs.bareos.org/view.php?id=1565
<https://bugs.bareos.org/view.php?id=1565>
Josh
--
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
<mailto:bareos-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/fb4740ec-82e3-49fe-b5e0-52e0ae095436n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/fb4740ec-82e3-49fe-b5e0-52e0ae095436n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Jörg Steffens joerg.steff...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
https://www.bareos.com Fax: +49 221 630693-10
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/ukkv0a%24143g%242%40ciao.gmane.io.