hmm, CentOS 6 has sysV init. (CentOS 7 has SystemD) and no,/etc/init.d/bareos-dir does not have a dependency, or what did you mean exactly? What personal copy do you mean? The copy of /etc/init.d/bareos-dir?
Greetings Am Freitag, 12. Juni 2015 08:59:51 UTC+2 schrieb Bruno Friedmann: > On Thursday 11 June 2015 09.20:21 cocolocko wrote: > > hi @ all, > > > > i am running CentOS v6.6 with Bareos 13.2.2. > > I have the problem that "bareos-dir" does not come up at system start. ( > > only bareos-fd and bareos-sd processes are running!) > > But if i start it manually, it works! I can also connect to "bconsole" and > > run jobs. /var/log/bareos/bareos.log gave me this error: > > > > 11-Jun 15:23 bareos-dir JobId 0: Fatal error: Could not open Catalog > > "MyCatalog", database "bareos". > > 11-Jun 15:23 bareos-dir JobId 0: Fatal error: postgresql.c:238 Unable to > > connect to PostgreSQL server. Database=bareos User=bareos > > Possible causes: SQL server not running; password incorrect; > > max_connections exceeded. > > 11-Jun 15:23 bareos-dir ERROR TERMINATION > > Please correct configuration file: /etc/bareos/bareos-dir.conf > > > > But i am wondering, i can manually connect to that database with "psql" and > > also list tables. > > Some hints for me? > > Thanks a lot! > > > > Greetings > > > > > > > Have a check first of /usr/systemd/system/bareos-dir.service > It ask systemd to start after postgresql service > After=nss-lookup.target network.target remote-fs.target time-sync.target > postgresql.service mysql.service > > Now as you perhaps still have the old sysV init you will have to check if the > /etc/init.d/bareos-dir > has a dependency on after postgresql so it let a chance to the dir to find > postgresql up and ready > during boot sequence. > > I'm surprise if the init script doesn't already contain it. Did you have a > personal copy or something like that ? > > -- > > Bruno Friedmann > Ioda-Net Sàrl www.ioda-net.ch > > openSUSE Member & Board, fsfe fellowship > GPG KEY : D5C9B751C4653227 > irc: tigerfoot -- 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
