Re: SD won't start after upgrade

Bill Arlofski via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
On 11/20/24 9:59 AM, D. wrote:
> I upgraded from 13.0.4 to 15.0.2 on two Oracle Linux 8.10 servers.  In
> both cases, the bacula-sd.service daemon won't start after the upgrade.
> The DIR and FD daemons start just fine.  The DIR seems to interact with
> the upgraded database just fine.
> 
> The lack of logging has me stumped as to how I should further
> troubleshoot this problem.
> 
> Any thoughts?
> 
> I thought about compiling it myself and seeing if my compiled SD starts,
> but I don't have the knowledge to compile myself.  Hmph...

Hello,

You can star the SD in foreground mode with debug enabled. The reason for the failure to start will usually be pretty clear - 
usually a permissions issue cause by the service being started manually as the root user at some point.

# sudo -u bacula /opt/bacula/bin/bacula-sd -f -d100

Make sure to start the SD using sudo like this - and not starting as root user using -u and -g command line options - so that 
there is no chan
ce of the daemon starting as root, being able to read files that the bacula user may not have access to, and 
then dropping privileges to become the bacula user. Basic permission issues can be missed this way. :)

Typically, the *.pid file might be owned `root:root` which will prevent systemd, or the sudo command above from allowing the 
SD to start - and systemd does not tell you why it didn't start, but the above command will reveal the issue.


Hope this helps,
Bill

-- 
Bill Arlofski
[email protected]

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc (application/pgp-signature, 509 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAnBQJnPjWZCRBIDTDab9XDQBYhBMuLnlBaSQiuSUbb6UgNMNpv
1cNAAABTAwf+Mdixik1EatL8iFRGqAra9GiwM/UB4R7u2durxvURoI0FRG/X
imQuxxgqQZBcpuTasV1ugmdGtfLW/De1aOi9f13EhEDzTAySUDsi7k/7OXEM
KQZ2SJzAMBtl7o0vG5IcBIucBPTP5JClVgxbFrFfasuaHNcxBSGIiS9q/T/r
mjUP57yQqPLHOdyZqiERfaN2g8KP2AyZ0W0A0ZEooXkGAHItdPYTySguCuyf
xOhPnOlD+vqoktkIiVkTMb+9wl7QRm7PY+/VFS44bmlJ1GIR8x0Gvls+NpAX
lkc54qqhC4O6RMuYlW24ov6fEsiVWI6bq00R/7/1rkt8y5yxspN/Sw==
=Ayez
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.