Bareos install

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
kharkov_max
капитан
Сообщения: 1766
Зарегистрирован: 2008-10-03 14:56:40

Bareos install

Непрочитанное сообщение kharkov_max » 2017-01-11 11:24:55

Добрый день.

Плавно у себя развернул сервер бекапов на базе Bacula.
Вроде все работает и всем доволен, но !!!

Обратил внимание на Bareos, это ответвление Bacula.
Пишут не плохие отзывы, хотя они очень похожи.

Решил развернуть для сравнения Bareos, благо есть в портах и вроде свежая версия.
Собственно установка труда не составила, разворачивал в jail, БД лежит на основном к jail ПК.
БД создал и залил руками (посмотрел что запускают скрипты и просадил в БД).

Теперь вопрос с запуском.
Включил debug режим, при старте выдает следующее.

Код: Выделить всё

 /usr/local/etc/rc.d/bareos-dir onestart
Performing sanity check on bareos-dir configuration:
bareos-dir (10): dird.c:243-0 Debug level = 500
bareos-dir (100): parse_conf.c:151-0 config file = /usr/local/etc/bareos/bareos-dir.d/*/*.conf
bareos-dir (100): lex.c:356-0 glob /usr/local/etc/bareos/bareos-dir.d/*/*.conf: 22 files
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/catalog/Catalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/client/bareos-fd.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/console/bareos-mon.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/director/bareos-dir.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/Catalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/SelfTest.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/WindowsAllDrives.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/BackupCatalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/RestoreFiles.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/messages/Daemon.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/messages/Standard.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Differential.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Full.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Incremental.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Scratch.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/profile/operator.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/storage/File.conf
bareos-dir (9): inc_conf.c:380-0 set wildfile 803ccc628 size=1 [A-Z]:/pagefile.sys
bareos-dir (9): inc_conf.c:380-0 set wilddir 803ccc628 size=1 [A-Z]:/RECYCLER
bareos-dir (9): inc_conf.c:380-0 set wilddir 803ccc628 size=2 [A-Z]:/$RECYCLE.BIN
bareos-dir (9): inc_conf.c:380-0 set wilddir 803ccc628 size=3 [A-Z]:/System Volume Information
bareos-dir (100): lex.c:356-0 glob /usr/local/etc/bareos/bareos-dir.d/*/*.conf: 22 files
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/catalog/Catalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/client/bareos-fd.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/console/bareos-mon.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/director/bareos-dir.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/Catalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/SelfTest.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/fileset/WindowsAllDrives.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/BackupCatalog.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/RestoreFiles.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/messages/Daemon.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/messages/Standard.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Differential.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Full.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Incremental.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/pool/Scratch.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/profile/operator.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf
bareos-dir (100): lex.c:250-0 open config file: /usr/local/etc/bareos/bareos-dir.d/storage/File.conf
bareos-dir (500): runscript.c:41-0 runscript: creating new RUNSCRIPT object
bareos-dir (500): runscript.c:232-0 runscript: setting command = /usr/local/lib/bareos/scripts/make_catalog_backup.pl MyCatalog
bareos-dir (500): runscript.c:249-0 runscript: setting target =
bareos-dir (200): runscript.c:334-0 runscript: debug
bareos-dir (200): runscript.c:335-0  --> RunScript
bareos-dir (200): runscript.c:336-0   --> Command=/usr/local/lib/bareos/scripts/make_catalog_backup.pl MyCatalog
bareos-dir (200): runscript.c:337-0   --> Target=
bareos-dir (200): runscript.c:338-0   --> RunOnSuccess=1
bareos-dir (200): runscript.c:339-0   --> RunOnFailure=0
bareos-dir (200): runscript.c:340-0   --> FailJobOnError=1
bareos-dir (200): runscript.c:341-0   --> RunWhen=2
bareos-dir (500): runscript.c:41-0 runscript: creating new RUNSCRIPT object
bareos-dir (500): runscript.c:232-0 runscript: setting command = /usr/local/lib/bareos/scripts/delete_catalog_backup
bareos-dir (500): runscript.c:249-0 runscript: setting target =
bareos-dir (200): runscript.c:334-0 runscript: debug
bareos-dir (200): runscript.c:335-0  --> RunScript
bareos-dir (200): runscript.c:336-0   --> Command=/usr/local/lib/bareos/scripts/delete_catalog_backup
bareos-dir (200): runscript.c:337-0   --> Target=
bareos-dir (200): runscript.c:338-0   --> RunOnSuccess=1
bareos-dir (200): runscript.c:339-0   --> RunOnFailure=0
bareos-dir (200): runscript.c:340-0   --> FailJobOnError=0
bareos-dir (200): runscript.c:341-0   --> RunWhen=1
bareos-dir (250): message.c:349-0 Copy message resource 803c84668 to 803c606a8
bareos-dir (150): dir_plugins.c:297-0 Load dir plugins
bareos-dir (150): dir_plugins.c:299-0 No dir plugin dir!
bareos-dir (100): postgresql.c:1229-0 db_init_database first time
bareos-dir (50): postgresql.c:239-0 pg_real_connect done
bareos-dir (50): postgresql.c:241-0 db_user=bareos db_name=bareos db_password=password
bareos-dir (500): postgresql.c:579-0 db_sql_query starts with 'SELECT VersionId FROM Version'
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SELECT VersionId FROM Version'
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 1 fields
bareos-dir (500): postgresql.c:658-0 we have 1 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:589-0 db_sql_query succeeded. checking handler
bareos-dir (500): postgresql.c:592-0 db_sql_query invoking handler
bareos-dir (500): postgresql.c:746-0 sql_fetch_row start
bareos-dir (500): postgresql.c:758-0 we need space for 8 bytes
bareos-dir (500): postgresql.c:772-0 sql_fetch_row row number '0' is acceptable (0..1)
bareos-dir (500): postgresql.c:778-0 sql_fetch_row field '0' has value '2004'
bareos-dir (500): postgresql.c:789-0 sql_fetch_row finishes returning 803c628a8
bareos-dir (500): postgresql.c:594-0 db_sql_query sql_fetch_row worked
bareos-dir (500): postgresql.c:746-0 sql_fetch_row start
bareos-dir (500): postgresql.c:786-0 sql_fetch_row row number '1' is NOT acceptable (0..1)
bareos-dir (500): postgresql.c:789-0 sql_fetch_row finishes returning 0
bareos-dir (500): postgresql.c:601-0 db_sql_query finished
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SET datestyle TO 'ISO, YMD''
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 0 fields
bareos-dir (500): postgresql.c:658-0 we have 0 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SET cursor_tuple_fraction=1'
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 0 fields
bareos-dir (500): postgresql.c:658-0 we have 0 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SET standard_conforming_strings=on'
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 0 fields
bareos-dir (500): postgresql.c:658-0 we have 0 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SELECT getdatabaseencoding()'
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 1 fields
bareos-dir (500): postgresql.c:658-0 we have 1 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:746-0 sql_fetch_row start
bareos-dir (500): postgresql.c:758-0 we need space for 8 bytes
bareos-dir (500): postgresql.c:772-0 sql_fetch_row row number '0' is acceptable (0..1)
bareos-dir (500): postgresql.c:778-0 sql_fetch_row field '0' has value 'SQL_ASCII'
bareos-dir (500): postgresql.c:789-0 sql_fetch_row finishes returning 803c628a8
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SET client_encoding TO 'SQL_ASCII''
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 0 fields
bareos-dir (500): postgresql.c:658-0 we have 0 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:579-0 db_sql_query starts with 'SHOW max_connections'
bareos-dir (500): postgresql.c:622-0 sql_query starts with 'SHOW max_connections'
bareos-dir (500): postgresql.c:649-0 we have a result
bareos-dir (500): postgresql.c:655-0 we have 1 fields
bareos-dir (500): postgresql.c:658-0 we have 1 rows
bareos-dir (500): postgresql.c:709-0 sql_query finishing
bareos-dir (500): postgresql.c:589-0 db_sql_query succeeded. checking handler
bareos-dir (500): postgresql.c:592-0 db_sql_query invoking handler
bareos-dir (500): postgresql.c:746-0 sql_fetch_row start
bareos-dir (500): postgresql.c:772-0 sql_fetch_row row number '0' is acceptable (0..1)
bareos-dir (500): postgresql.c:778-0 sql_fetch_row field '0' has value '150'
bareos-dir (500): postgresql.c:789-0 sql_fetch_row finishes returning 803c628a8
bareos-dir (500): postgresql.c:594-0 db_sql_query sql_fetch_row worked
bareos-dir (500): postgresql.c:746-0 sql_fetch_row start
bareos-dir (500): postgresql.c:786-0 sql_fetch_row row number '1' is NOT acceptable (0..1)
bareos-dir (500): postgresql.c:789-0 sql_fetch_row finishes returning 0
bareos-dir (500): postgresql.c:601-0 db_sql_query finished


И тишина...
В логах пусто ...
Похоже что dir даже обращается в БД, но почему дальше не запускается не пойму...
Под пользователем БД я подключаюсь к БД из jail и могу делаеть update и select в БД.
Пробовал запускать от root:wheel та же беда..

Собственно, если у кого есть интерес или кто то под freebsd использует Bareos прошу помощи т.к. впал в ступор ...

Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1280
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

Bareos install

Непрочитанное сообщение dekloper » 2017-01-13 7:14:25

kharkov_max писал(а):Источник цитаты БД лежит на основном к jail ПК

я думаю, проблема в этом
были похожие слабопредсказуемые баги..
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!


Вернуться в «Софт»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 15 гостей