*status dir backup.canonigos.es-dir Version: 7.2.0 (14 August 2015) x86_64-unknown-linux-gnu debian 8.1 Daemon started 25-ago-15 12:34, conf reloaded 25-ago-2015 12:34:09 Jobs: run=0, running=0 mode=0 Heap: heap=270,336 smbytes=49,192 max_bytes=50,339 bufs=211 max_bufs=220
2015-08-25 12:36 GMT+02:00 Francisco Javier Funes Nieto <esen...@gmail.com>: > Ok, found the problem. > > Binaries down /usr/sbin/bacula-(sd/dir) where owned by root, not bacula. > They don't start because this. > > J. > > 2015-08-25 0:43 GMT+02:00 Francisco Javier Funes Nieto <esen...@gmail.com> > : > >> Hi again, >> >> I'm trying to start the Bacula SD/DIR daemon through the systemd scripts >> created under $SRC/plataforms/systemd after compiling Bacula 7.2 inside a >> Debian 8 VM. The bacula-fd starts properly. >> >> I've enabled them with >> >> systemctl enable bacula-sd.service >> systemctl enable bacula-dir.service >> >> Trying to start them I get this error: >> >> root@backup:/var# systemctl start bacula-sd >> Job for bacula-sd.service failed. See 'systemctl status >> bacula-sd.service' and 'journalctl -xn' for details. >> root@backup:/var# systemctl status bacula-sd.service >> ● bacula-sd.service - Bacula Storage Daemon service >> Loaded: loaded (/etc/systemd/system/bacula-sd.service; enabled) >> Active: failed (Result: exit-code) since lun 2015-08-24 20:29:45 CEST; >> 6s ago >> Process: 2396 ExecStart=/usr/sbin/bacula-sd -u bacula -g bacula -v -d >> 99 -c /etc/bacula/bacula-sd.conf (code=exited, status=203/EXEC) >> >> ago 24 20:29:45 backup.canonigos.es systemd[2396]: Failed at step EXEC >> spawning /usr/sbin/bacula-sd: Permission denied >> ago 24 20:29:45 backup.canonigos.es systemd[1]: bacula-sd.service: >> control process exited, code=exited status=203 >> ago 24 20:29:45 backup.canonigos.es systemd[1]: Failed to start Bacula >> Storage Daemon service. >> ago 24 20:29:45 backup.canonigos.es systemd[1]: Unit bacula-sd.service >> entered failed state. >> >> >> If I try to start the daemon from the shell it runs perfectly: >> >> root@backup:/var# /usr/sbin/bacula-sd -u bacula -g bacula -v -d 99 -c >> /etc/bacula/bacula-sd.conf >> root@backup:/var# bacula-sd: address_conf.c:275-0 Initaddr 0.0.0.0:9103 >> bacula-sd: stored_conf.c:699-0 Inserting Director res: >> backup.canonigos.es-mon >> bacula-sd: stored_conf.c:699-0 Inserting Device res: FileChgr1-Dev2 >> backup.canonigos.es-sd: stored.c:573-0 calling init_dev /backup >> backup.canonigos.es-sd: bnet_server.c:87-0 Addresses 0.0.0.0:9103 >> backup.canonigos.es-sd: stored.c:575-0 SD init done /backup >> backup.canonigos.es-sd: stored.c:573-0 calling init_dev /backup >> backup.canonigos.es-sd: stored.c:575-0 SD init done /backup >> >> root@backup:/var# ps axu|grep bacula >> bacula 2424 0.0 0.5 123792 5372 ? Ssl 20:30 0:00 >> /usr/sbin/bacula-sd -u bacula -g bacula -v -d 99 -c >> /etc/bacula/bacula-sd.conf >> root 2436 0.0 0.2 13960 2088 pts/0 S+ 20:32 0:00 grep >> bacula >> >> >> >> The journalctl -xn output: >> >> ago 25 00:31:45 backup.canonigos.es systemd[2764]: Failed at step EXEC >> spawning /usr/sbin/bacula-sd: Permission denied >> -- Subject: Process /usr/sbin/bacula-sd could not be executed >> -- Defined-By: systemd >> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> -- >> -- The process /usr/sbin/bacula-sd could not be executed and failed. >> -- >> -- The error number returned while executing this process is 13. >> ago 25 00:31:45 backup.canonigos.es systemd[1]: bacula-sd.service: >> control process exited, code=exited status=203 >> ago 25 00:31:45 backup.canonigos.es systemd[1]: Failed to start Bacula >> Storage Daemon service. >> -- Subject: Unit bacula-sd.service has failed >> -- Defined-By: systemd >> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel >> -- >> -- Unit bacula-sd.service has failed. >> -- >> -- The result is failed. >> ago 25 00:31:45 backup.canonigos.es systemd[1]: Unit bacula-sd.service >> entered failed state. >> >> >> How can I know where is the file/directory who gives me this permission >> denied ? >> >> The /var/lib/bacula is owned by root:bacula with 770. >> The /etc/bacula is bacula:bacula too... >> >> Maybe the /var/run ? (pid directory) >> >> Thanks for the help! >> >> Best Regards, >> J. >> >> >> >> -- >> _____________________________________________ >> >> Francisco Javier Funes Nieto [esen...@gmail.com] >> CANONIGOS >> Servicios Informáticos para PYMES. >> Cl. Cruz 2, 1º Oficina 7 >> Tlf: 958.536759 / 661134556 >> Fax: 958.521354 >> GRANADA - 18002 >> > > > > -- > _____________________________________________ > > Francisco Javier Funes Nieto [esen...@gmail.com] > CANONIGOS > Servicios Informáticos para PYMES. > Cl. Cruz 2, 1º Oficina 7 > Tlf: 958.536759 / 661134556 > Fax: 958.521354 > GRANADA - 18002 > -- _____________________________________________ Francisco Javier Funes Nieto [esen...@gmail.com] CANONIGOS Servicios Informáticos para PYMES. Cl. Cruz 2, 1º Oficina 7 Tlf: 958.536759 / 661134556 Fax: 958.521354 GRANADA - 18002
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users