On 30/03/07, Dan Langille <[EMAIL PROTECTED]> wrote: > On 30 Mar 2007 at 22:16, Kimi Ostro wrote: > > > On 30/03/07, Arno Lehmann <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > On 3/30/2007 10:38 PM, Jason King wrote: > > > > I ran into the same problem. You have to check the startup script and > > > > change the user that it starts as. It's wanting to start as a user other > > > > than root. Here is the line you are looking for in the rc.d script. The > > > > -u flag should be changed it root. > > > > > > Oh... I don't agree here. I mean, I'm running the DIR as root, but this > > > is on a machine dedicated to running Bacula, no user access, no access > > > from beyond my firewall, not even any user accounts that could log into > > > it. > > > > > > Generally, for security reasons, it's a good idea to run all services as > > > non-root user. > > > > > > In fact I do know for sure that Bacula can run as non-root user, both on > > > linux and on FreeBSD. > > > > > > You should make sure the acount the DIR tries to run as exists, and can > > > access all the vital locations the DIR needs to access. These include > > > the working directory and configuration files, and it is possible I > > > forgot others :-) > > > > > > > : ${bacula_dir_flags=" -u root -g wheel -v -c > > > > /usr/local/etc/bacula-dir.conf"} > > > > > > > > Kimi Ostro wrote: > > > >> Hi list, > > > >> > > > >> today I built bacula from FreeBSD ports. > > > >> > > > >> Now I can start both bacula-sd and bacula-fd on startup, yet I cant > > > >> start bacula-dir on startup. The error message I get in my log is: > > > >> Mar 30 21:13:16 freebsd /boot/generic/kernel: pid 42355 (bacula-dir), > > > >> uid 910: exited on signal 6 > > > >> > > > >> I don't know why bacula-dir exits with Abort? > > > >> > > > >> I can start bacula-dir from the command line if I type this: > > > >> # /usr/local/sbin/bacula-fd -vt -c /usr/local/etc/bacula-fd.conf > > > > > > The t options means a test of the configuration. It will not actually > > > run the DIR as a daemon. > > > > > > > sorry, was a typo error. > > still, typing: > > /usr/local/sbin/bacula-dir -fv -d99 -u bacula -g bacula -c > > /usr/local/etc/bacula-dir.conf > > > > works fine. yet > > > > /usr/local/etc/rc.d/bacula-dir start > > > > does not work and leave a message in /var/log/message about sig 6/abort. > > > > A buggy rc.d script. I am going to re-write it and see if that fixes > > the problem. > > I'll be happy to see any solutions you find.
some progress: executing: # /usr/local/sbin/bacula-dir -d99 -v -u root -g bacula -c /usr/local/etc/bacula-dir.conf results in: bacula-dir: dird.c:152 Debug level = 99 Fatal error 'mutex is on list' at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 3) # gdb /usr/local/sbin/bacula-dir /var/crash/bacula-dir:10541.core (gdb) where #0 0x28166537 in pthread_testcancel () from /lib/libpthread.so.2 #1 0x2815589a in sigaction () from /lib/libpthread.so.2 #2 0x2814f88d in pthread_kill () from /lib/libpthread.so.2 #3 0x2814f256 in raise () from /lib/libpthread.so.2 #4 0x28512e34 in abort () from /lib/libc.so.6 #5 0x28166c6f in pthread_testcancel () from /lib/libpthread.so.2 #6 0x2815b85f in _pthread_mutex_trylock () from /lib/libpthread.so.2 #7 0x2815c590 in _pthread_mutex_lock () from /lib/libpthread.so.2 #8 0x28152361 in _spinlock () from /lib/libpthread.so.2 #9 0x284b0afb in _UTF8_init () from /lib/libc.so.6 #10 0x2852d2e0 in _thread_autoinit_dummy_decl_stub () from /lib/libc.so.6 #11 0xbfbfea44 in ?? () #12 0x280cc599 in symlook_obj () from /libexec/ld-elf.so.1 #13 0x281573ff in pthread_attr_init () from /lib/libpthread.so.2 #14 0x281538fd in sigaction () from /lib/libpthread.so.2 #15 0x2815d915 in pthread_mutexattr_init () from /lib/libpthread.so.2 #16 0x28157116 in pthread_create () from /lib/libpthread.so.2 #17 0x08079c16 in start_UA_server () #18 0x0804e601 in main () beyond me :( > -- > Dan Langille : Software Developer looking for work > my resume: http://www.freebsddiary.org/dan_langille.php > PGCon - The PostgreSQL Conference - http://www.pgcon.org/ > -- Kimi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users