Hi Ben,
I tried to understand the start script, and it produces this start-string:
daemon bacula-dir -c /etc/bacula/bacula-dir.conf
The daemon function is located in /etc/init.d/functions, but this is one level too hard for me.
The entry in the logfile:
03-Dec 18:18 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
03-Dec 18:18 bacula-dir JobId 0: Fatal error: postgresql.c:227 Unable to connect to PostgreSQL server. Database=bacula User=bacula
Possible causes: SQL server not running; password incorrect; max_connections exceeded.
03-Dec 18:18 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf
Best regards,
Von: Roberts, Ben [mailto:ben.roberts AT gsacapital DOT com]
Gesendet: Mittwoch, 3. Dezember 2014 12:34
An: Rainer Hackel; bacula-users AT lists.sourceforge DOT net
Betreff: RE: Problems with Quantum SuperLoader 3 LTO-6
Hi Rainer,
> First problem:
> Starting Bacula this way doesn't work anymore:
> cd /etc/init.d
> ./bacula-dir start
You're going to have to do some good old fashioned debug to work this out. Check the logs, try running the exact commands the init script executes (make sure to do it as the same user the director runs under to eliminate any permissions issue). You've proved
that the director can started, now you need to isolate how it's being started differently by the init script.
> All works fine, shows amount of slots and also the labels of stored tapes.
Mtx-changer parses this output using a regular _expression_. You may wish to make sure the data is being returned in the same format, and tweak the pattern match if it's different. Look for "VolumeTag" in the mtx-changer script.
Regards,
Ben Roberts
This email and any files transmitted with it contain confidential and proprietary information and is solely for the use of the intended
recipient. If you are not the intended recipient please return the email to the sender and delete it from your computer and you must not use, disclose, distribute, copy, print or rely on this email or its contents. This communication is for informational purposes
only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. Any comments or statements made herein do not necessarily reflect those of GSA Capital. GSA Capital
Partners LLP is authorised and regulated by the Financial Conduct Authority and is registered in England and Wales at Stratton House, 5 Stratton Street, London W1J 8LA, number OC309261. GSA Capital Services Limited is registered in England and Wales at the
same address, number 5320529.