bconsole Director authorization problem.

Wysłane przez masterrtronic 
bconsole Director authorization problem. 21 wrz 2017 - 14:24:25

Send PM

Witam,
mam problem z bconsole - brak dostępu , nie potrafię samodzielnie przeskoczyć tego tematu . Może robię głupi błąd którego nie widzę ....pomimo że kilkukrotnie sprawdzałem ustawienia .
Zatem trochę danych :
Ubuntu serwer 17.04
Łączę się do konsoli , mam komunikat jak poniżej
Connecting to Director 10.0.0.8:9101
Director authorization problem.


Weryfikuje zatem bacula-dir.conf:

Director { # define myself
Name = cam-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
Maximum Concurrent Jobs = 20
Password = "test" # Console password
Messages = Daemon
DirAddress = 10.0.0.8
}


i porównuje w tym co mam w bconsole.conf

Director {
Name = cam-dir
DIRport = 9101
address = 10.0.0.8
Password = "test"
}


Identycznie , sprawdzam zatem czy usługi działają :
netstat -tlnp | grep bacula
tcp 0 0 10.0.0.8:9101 0.0.0.0:* LISTEN 1218/bacula-dir
tcp 0 0 10.0.0.8:9102 0.0.0.0:* LISTEN 1200/bacula-fd
tcp 0 0 10.0.0.8:9103 0.0.0.0:* LISTEN 1190/bacula-sd


No są ...co jest zatem nie tak sad smiley ...walczę nad tym już masę czasu a nawet nie zbliżam się do rozwiązania
Re: bconsole Director authorization problem. 01 pa 2017 - 22:29:43

Send PM

Uruchom directora z opcją debug na stdout:
bacula-dir -f -d500 -u bacula -g bacula

a następnie podłącz się za pomocą bconsole także z opcją debug na stdout:
bconsole -d 500

zobacz co mu nie pasuje, np. nazwa directora, nazwa konsoli czy stare hasło, itp.

--
Profesjonalne usługi Bacula: [www.bacula.com.pl]
Re: bconsole Director authorization problem. 02 pa 2017 - 12:42:13

Send PM

Dziękuję za zainteresowanie wyniki komend poniżej :

bacula-dir -f -d500 -u bacula -g bacula
bacula-dir: dird.c:208-0 Debug level = 500
bacula-dir: lex.c:233-0 Open config file: /etc/bacula/bacula-dir.conf
bacula-dir: address_conf.c:274-0 Initaddr 0.0.0.0:9101
bacula-dir: lex.c:233-0 Open config file: /etc/bacula/bacula-dir.conf
bacula-dir: runscript.c:41-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:187-0 runscript: setting command = /etc/bacula/scripts/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:204-0 runscript: setting target =
bacula-dir: runscript.c:287-0 runscript: debug
bacula-dir: runscript.c:288-0  --> RunScript
bacula-dir: runscript.c:289-0   --> Command=/etc/bacula/scripts/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:290-0   --> Target=
bacula-dir: runscript.c:291-0   --> RunOnSuccess=1
bacula-dir: runscript.c:292-0   --> RunOnFailure=0
bacula-dir: runscript.c:293-0   --> FailJobOnError=1
bacula-dir: runscript.c:294-0   --> RunWhen=2
bacula-dir: runscript.c:41-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:187-0 runscript: setting command = /etc/bacula/scripts/delete_catalog_backup
bacula-dir: runscript.c:204-0 runscript: setting target =
bacula-dir: runscript.c:287-0 runscript: debug
bacula-dir: runscript.c:288-0  --> RunScript
bacula-dir: runscript.c:289-0   --> Command=/etc/bacula/scripts/delete_catalog_backup
bacula-dir: runscript.c:290-0   --> Target=
bacula-dir: runscript.c:291-0   --> RunOnSuccess=1
bacula-dir: runscript.c:292-0   --> RunOnFailure=0
bacula-dir: runscript.c:293-0   --> FailJobOnError=1
bacula-dir: runscript.c:294-0   --> RunWhen=1
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Type": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Type" def_ivalue=66 item 2 offset=100
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Level": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Level" def_ivalue=73 item 3 offset=104
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Messages": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Messages" item 4 offset=288
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Storage": getting default.
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Pool": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Pool" item 6 offset=308
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Client": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Client" item 11 offset=296
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Fileset": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Fileset" item 12 offset=300
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Schedule": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Schedule" item 13 offset=292
bacula-dir: dird.c:732-0 Job "BackupClient1", field "WriteBootstrap": getting default.
bacula-dir: dird.c:741-0 Job "BackupClient1", field "WriteBootstrap" def_svalue=/var/lib/bacula/%c.bsr item 24 offset=156
bacula-dir: dird.c:732-0 Job "BackupClient1", field "SpoolAttributes": getting default.
bacula-dir: dird.c:805-0 Job "BackupClient1", field "SpoolAttributes" def_bvalue=1 item 47 offset=359
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Priority": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Priority" def_ivalue=10 item 66 offset=120
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Type": getting default.
bacula-dir: dird.c:782-0 Job "BackupCatalog", field "Type" def_ivalue=66 item 2 offset=100
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Messages": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Messages" item 4 offset=288
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Storage": getting default.
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Pool": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Pool" item 6 offset=308
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Client": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Client" item 11 offset=296
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "SpoolAttributes": getting default.
bacula-dir: dird.c:805-0 Job "BackupCatalog", field "SpoolAttributes" def_bvalue=1 item 47 offset=359
bacula-dir: message.c:402-0 Copy message resource 9296d70 to 92a4470
bacula-dir: ERROR TERMINATION at bsys.c:662
bacula-dir is already running. pid=2283
Check file /run/bacula/bacula-dir.9101.pid
02-Oct 12:27 bacula-dir: ERROR TERMINATION at bsys.c:662
bacula-dir is already running. pid=2283
Check file /run/bacula/bacula-dir.9101.pid


------------------------------------------------------------------
root@cam:/etc/bacula# bconsole -d 500
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
Connecting to Director 10.0.0.8:9101
bconsole: bsock.c:203-0 Current 10.0.0.8:9101 All 10.0.0.8:9101
bconsole: bsock.c:132-0 who=Director daemon host=10.0.0.8 port=9101
bconsole: bsock.c:305-0 OK connected to server  Director daemon 10.0.0.8:9101.
Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation error during the TLS handshake.
For help, please see [www.bacula.org]
Re: bconsole Director authorization problem. 02 pa 2017 - 12:46:51

Send PM

Dobra, trochę nie wyszło: bacula-dir is already running. pid=2283
Zatrzymaj najpierw poprzednio uruchomionego Directora, bo testowanie dwóch działających na raz to nie najlepszy pomysł. smiling smiley

--
Profesjonalne usługi Bacula: [www.bacula.com.pl]
Re: bconsole Director authorization problem. 02 pa 2017 - 13:28:57

Send PM

bacula-dir -f -d500 -u bacula -g bacula

bacula-dir: dird.c:208-0 Debug level = 500
bacula-dir: lex.c:233-0 Open config file: /etc/bacula/bacula-dir.conf
bacula-dir: address_conf.c:274-0 Initaddr 0.0.0.0:9101
bacula-dir: lex.c:233-0 Open config file: /etc/bacula/bacula-dir.conf
bacula-dir: runscript.c:41-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:187-0 runscript: setting command = /etc/bacula/scripts/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:204-0 runscript: setting target =
bacula-dir: runscript.c:287-0 runscript: debug
bacula-dir: runscript.c:288-0  --> RunScript
bacula-dir: runscript.c:289-0   --> Command=/etc/bacula/scripts/make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:290-0   --> Target=
bacula-dir: runscript.c:291-0   --> RunOnSuccess=1
bacula-dir: runscript.c:292-0   --> RunOnFailure=0
bacula-dir: runscript.c:293-0   --> FailJobOnError=1
bacula-dir: runscript.c:294-0   --> RunWhen=2
bacula-dir: runscript.c:41-0 runscript: creating new RUNSCRIPT object
bacula-dir: runscript.c:187-0 runscript: setting command = /etc/bacula/scripts/delete_catalog_backup
bacula-dir: runscript.c:204-0 runscript: setting target =
bacula-dir: runscript.c:287-0 runscript: debug
bacula-dir: runscript.c:288-0  --> RunScript
bacula-dir: runscript.c:289-0   --> Command=/etc/bacula/scripts/delete_catalog_backup
bacula-dir: runscript.c:290-0   --> Target=
bacula-dir: runscript.c:291-0   --> RunOnSuccess=1
bacula-dir: runscript.c:292-0   --> RunOnFailure=0
bacula-dir: runscript.c:293-0   --> FailJobOnError=1
bacula-dir: runscript.c:294-0   --> RunWhen=1
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Type": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Type" def_ivalue=66 item 2 offset=100
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Level": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Level" def_ivalue=73 item 3 offset=104
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Messages": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Messages" item 4 offset=288
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Storage": getting default.
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Pool": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Pool" item 6 offset=308
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Client": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Client" item 11 offset=296
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Fileset": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Fileset" item 12 offset=300
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Schedule": getting default.
bacula-dir: dird.c:754-0 Job "BackupClient1", field "Schedule" item 13 offset=292
bacula-dir: dird.c:732-0 Job "BackupClient1", field "WriteBootstrap": getting default.
bacula-dir: dird.c:741-0 Job "BackupClient1", field "WriteBootstrap" def_svalue=/var/lib/bacula/%c.bsr item 24 offset=156
bacula-dir: dird.c:732-0 Job "BackupClient1", field "SpoolAttributes": getting default.
bacula-dir: dird.c:805-0 Job "BackupClient1", field "SpoolAttributes" def_bvalue=1 item 47 offset=359
bacula-dir: dird.c:732-0 Job "BackupClient1", field "Priority": getting default.
bacula-dir: dird.c:782-0 Job "BackupClient1", field "Priority" def_ivalue=10 item 66 offset=120
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Type": getting default.
bacula-dir: dird.c:782-0 Job "BackupCatalog", field "Type" def_ivalue=66 item 2 offset=100
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Messages": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Messages" item 4 offset=288
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Storage": getting default.
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Pool": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Pool" item 6 offset=308
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "Client": getting default.
bacula-dir: dird.c:754-0 Job "BackupCatalog", field "Client" item 11 offset=296
bacula-dir: dird.c:732-0 Job "BackupCatalog", field "SpoolAttributes": getting default.
bacula-dir: dird.c:805-0 Job "BackupCatalog", field "SpoolAttributes" def_bvalue=1 item 47 offset=359
bacula-dir: message.c:402-0 Copy message resource 8e58d18 to 8e66418
bacula-dir: jcr.c:131-0 read_last_jobs seek to 188
bacula-dir: jcr.c:138-0 Read num_items=0
bacula-dir: dir_plugins.c:151-0 Load Director plugins
bacula-dir: dir_plugins.c:153-0 No Director plugin directory!
bacula-dir: mysql.c:119-0 db_init_database first time
bacula-dir: mysql.c:218-0 mysql_init done
bacula-dir: mysql.c:257-0 mysql_real_connect done
bacula-dir: mysql.c:259-0 db_user=bacula db_name=bacula db_password=bacula
bacula-dir: mysql.c:473-0 db_sql_query starts with SELECT VersionId FROM Version
bacula-dir: mysql.c:484-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:508-0 db_sql_query finished
bacula-dir: mysql.c:295-0 opendb ref=1 connected=1 db=8e68328
bacula-dir: mysql.c:522-0 sql_query starts with 'SET wait_timeout=691200'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 0 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SET interactive_timeout=691200'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 0 rows
bacula-dir: mysql.c:473-0 db_sql_query starts with SHOW VARIABLES LIKE 'max_connections'
bacula-dir: mysql.c:484-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:508-0 db_sql_query finished
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge FROM Pool WHERE Pool.Name='Default''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 20 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT count(*) from Media WHERE PoolId=1'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 1 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: sql_update.c:266-0 NumVols=0
bacula-dir: mysql.c:522-0 sql_query starts with 'UPDATE Pool SET NumVols=0,MaxVols=100,UseOnce=0,UseCatalog=0,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=53687091200,Recycle=1,AutoPrune=1,LabelType=0,LabelFormat='*',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0 WHERE PoolId=1'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge FROM Pool WHERE Pool.Name='File''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 20 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT count(*) from Media WHERE PoolId=2'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 1 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: sql_update.c:266-0 NumVols=0
bacula-dir: mysql.c:522-0 sql_query starts with 'UPDATE Pool SET NumVols=0,MaxVols=100,UseOnce=0,UseCatalog=0,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=53687091200,Recycle=1,AutoPrune=1,LabelType=0,LabelFormat='Vol-',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0 WHERE PoolId=2'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId,ScratchPoolId,ActionOnPurge FROM Pool WHERE Pool.Name='Scratch''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 20 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT count(*) from Media WHERE PoolId=3'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 1 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: sql_update.c:266-0 NumVols=0
bacula-dir: mysql.c:522-0 sql_query starts with 'UPDATE Pool SET NumVols=0,MaxVols=0,UseOnce=0,UseCatalog=0,AcceptAnyVolume=0,VolRetention='0',VolUseDuration='0',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=0,Recycle=0,AutoPrune=0,LabelType=0,LabelFormat='*',RecyclePoolId=0,ScratchPoolId=0,ActionOnPurge=0 WHERE PoolId=3'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 1 rows
bacula-dir: dird.c:1029-0 create cat=MyCatalog for client=cam-fd
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT ClientId,Uname FROM Client WHERE Name='cam-fd''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 2 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: sql_create.c:325-0 In create mediatype
bacula-dir: sql_create.c:329-0 selectmediatype: SELECT MediaTypeId,MediaType FROM MediaType WHERE MediaType='File1'
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT MediaTypeId,MediaType FROM MediaType WHERE MediaType='File1''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 2 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT StorageId,AutoChanger FROM Storage WHERE Name='File1''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 2 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'UPDATE Storage SET AutoChanger=0 WHERE StorageId=1'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 1 rows
bacula-dir: sql_create.c:325-0 In create mediatype
bacula-dir: sql_create.c:329-0 selectmediatype: SELECT MediaTypeId,MediaType FROM MediaType WHERE MediaType='File2'
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT MediaTypeId,MediaType FROM MediaType WHERE MediaType='File2''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 2 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'SELECT StorageId,AutoChanger FROM Storage WHERE Name='File2''
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:542-0 we have 2 fields
bacula-dir: mysql.c:544-0 we have 1 rows
bacula-dir: mysql.c:522-0 sql_query starts with 'UPDATE Storage SET AutoChanger=0 WHERE StorageId=2'
bacula-dir: mysql.c:537-0 we have a result
bacula-dir: mysql.c:553-0 we have 1 rows
bacula-dir: mysql.c:473-0 db_sql_query starts with UPDATE Job SET JobStatus='f', StartTime=SchedTime, EndTime=SchedTime WHERE JobStatus = 'C'
bacula-dir: mysql.c:484-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:508-0 db_sql_query finished
bacula-dir: mysql.c:473-0 db_sql_query starts with UPDATE Job SET JobStatus='f', EndTime=StartTime WHERE JobStatus = 'R'
bacula-dir: mysql.c:484-0 db_sql_query succeeded. checking handler
bacula-dir: mysql.c:508-0 db_sql_query finished
bacula-dir: mysql.c:319-0 closedb ref=0 connected=1 db=8e68328
bacula-dir: mysql.c:326-0 close db=8e68328
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.139289696.mail
cam-dir: dird.c:1196-0 Skipped: bacula-fd.9102.state
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.153764976.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.136836192.mail
cam-dir: dird.c:1196-0 Skipped: .
cam-dir: dird.c:1196-0 Skipped: bacula-dir.9101.state
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.152028264.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.151293976.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.163308640.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.139284576.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.144195608.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.167801880.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.143016032.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.155821152.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.161195032.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.165265496.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.146134112.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.149734432.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.150258800.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.163746848.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.145535072.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.157754040.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.153482264.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.138041488.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.149426248.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.166241392.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.165519472.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.155160696.mail
cam-dir: dird.c:1196-0 Skipped: ..
cam-dir: dird.c:1196-0 Skipped: bacula-sd.9103.state
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.141251696.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.144842848.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.139604072.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.159346776.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.144072792.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.161842272.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.136765536.mail
cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.143148144.mail
cam-dir: dird.c:345-0 Start UA server
cam-dir: bnet_server.c:86-0 Addresses 10.0.0.8:9101
cam-dir: job.c:1714-0 wstorage=File1
cam-dir: job.c:1723-0 wstore=File1 where=Job resource
cam-dir: job.c:1389-0 JobId=0 created Job=*JobMonitor*.2017-10-02_13.12.01_01
cam-dir: dird.c:359-0 wait for next job
cam-dir: bnet.c:566-0 who=client host=10.0.0.8 port=9101
Re: bconsole Director authorization problem. 02 pa 2017 - 15:09:55

Send PM

I jak - poradziłeś sobie z problemem?

Ja zawsze przed uruchomieniem konsoli po dokonaniu zmian w konfiguracji sprawdzam poprawność zależności poprzez komendy:

/usr/sbin/bacula-sd -t -c /etc/bacula/bacula-sd.conf
/usr/sbin/bacula-fd -t -c /etc/bacula/bacula-fd.conf
/usr/sbin/bacula-dir -t -c /etc/bacula/bacula-dir.conf

Jak nie zwraca błędu to znaczy że tu jest poprawnie.

Moja konfiguracja wygląda podobnie, poza ścieżką PidDirectory
u mnie
PidDirectory = "/var/run"
i poza długością/złożonością hasła

Może problem jest z samym hasłem?? (za krótkie, bez znaków specjalnych? - nie wiem może bacula to analizuje w tym miejscu )

Możesz też spróbować usunąć znaczniki tekstu (cudzysłów) dla Directora i komentarz za hasłem.
Ja mam w znacznikach , ale tutaj komuś to pomogło
link_do_forum
Re: bconsole Director authorization problem. 02 pa 2017 - 16:39:42

Send PM

@masterrtronic:
To jak już masz poprawnie uruchomiony Director z debugingiem, to powinieneś wykonać także bconsole z debugingiem jak poprzednio prosiłem, to zobaczymy co z czym się nie dogaduje.

--
Profesjonalne usługi Bacula: [www.bacula.com.pl]
Re: bconsole Director authorization problem. 02 pa 2017 - 16:45:08

Send PM

@TomB:
> Może problem jest z samym hasłem?? (za krótkie, bez znaków specjalnych? - nie wiem może bacula to analizuje w tym miejscu )

W sensie że hasło musi być jakoś specjalnie przygotowane (złożoność czy długość), to nie, nie ma takiego wymagania w Bacula (chociaż w wersji 9.x nie sprawdzałem tego ale nie wierzę że coś się zmieniło). Problem może być co najwyżej z tym, że użyto nieodpowiednich znaków, ale to miałem tylko w przypadku komunikacji DIR->FD(Windows), chociaż to samo hasło z FD(Linux/Unix) działało poprawnie. smiling smiley

A, że problem z hasłem, to tak może być. Może się okazać, że tak samo wyglądający napis ma całkowicie odmienne literki w UTF-8, ale to zazwyczaj nie dzieje się przez pomyłkę, tylko występuje podczas ataków phishingowych. smiling smiley

--
Profesjonalne usługi Bacula: [www.bacula.com.pl]
Re: bconsole Director authorization problem. 03 pa 2017 - 08:26:10

Send PM

bconsole -d500
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
Connecting to Director 10.0.0.8:9101
bconsole: bsock.c:203-0 Current 10.0.0.8:9101 All 10.0.0.8:9101
bconsole: bsock.c:132-0 who=Director daemon host=10.0.0.8 port=9101
bconsole: bsock.c:305-0 OK connected to server  Director daemon 10.0.0.8:9101.
Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation error during the TLS handshake.
For help, please see [www.bacula.org]

NIestety problem nadal występuje. Mam pecha smiling smiley .
Od wczoraj spróbowałem :
1. Pozmieniać hasła - nic
2. Pozmieniać adresy z localhost na docelowe 10.0.x.x -nic
3. Dodać bacula do hosts.allow -nic
4. Instalowałem baculę z Mysql\Postgree efekt zawsze ten sam
5. Na serwerze działa SAMBA
Re: bconsole Director authorization problem. 03 pa 2017 - 09:25:58

Send PM

Tylko, widzisz. Jak robisz debuging directora i bconsole to musisz to zrobić jednocześnie, bo te komponenty wchodzą ze sobą w interakcję i trzeba zobaczyć z czym jest problem. Pokazanie sesji debugingowej samego directora bez łączenia się bconsole nic nie daje tak samo pokazanie samej sesji bconsole. Musisz to zrobić jednocześnie. Poniższy rysunek pokazuje które elementy muszą się ze sobą zgadzać w plikach konfiguracyjnych aby to działało.

Zakładając, że nie korzystasz z TLS to konfiguracja jest prosta jak budowa cepa i jeśli nie dokonałeś pomyłki to musi działać.

--
Profesjonalne usługi Bacula: [www.bacula.com.pl]
Re: bconsole Director authorization problem. 03 pa 2017 - 11:53:24

Send PM

Starałem się wykonać konfigurację właśnie wg dokumentacji Baculi - także ten obrazek znam ..i..nie wiem co odwalam .


Odnośnie trybu debugowania rozumiem że wykonuje operacje następująco :
1. Zatrzymuje service bacula-director ( bo inaczej pkt drugi krzyczy ze taki proces już działa )
2. Wywołuje bacula-dir -f -d500 -u bacula -g bacula
3. Uruchamiam service bacula-director ( bo pkt 4 twierdzi że bacula-director je4st nieosiągalny )
4. Wywołuje bconsole -d500

Jeśli tak to zrzuty które zamieściłem powyżej są jak najbardziej poprawne
Re: bconsole Director authorization problem. 03 pa 2017 - 12:34:09

Send PM

...a nie skłamałem co do trybu debugowania ....wygląda to następująco :

Końcówka w bacula-dir

cam-dir: dird.c:1196-0 Skipped: bacula-dir.bacula-dir.143148144.mail
cam-dir: dird.c:345-0 Start UA server
cam-dir: bnet_server.c:86-0 Addresses 10.0.0.8:9101
cam-dir: job.c:1714-0 wstorage=File1
cam-dir: job.c:1723-0 wstore=File1 where=Job resource
cam-dir: job.c:1389-0 JobId=0 created Job=*JobMonitor*.2017-10-03_12.31.46_01
cam-dir: dird.c:359-0 wait for next job
cam-dir: bnet.c:566-0 who=client host=10.0.0.8 port=9101

natomiast bconsole :
bconsole -d500
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
bconsole: lex.c:233-0 Open config file: /etc/bacula/bconsole.conf
Connecting to Director 10.0.0.8:9101
bconsole: bsock.c:203-0 Current 10.0.0.8:9101 All 10.0.0.8:9101
bconsole: bsock.c:132-0 who=Director daemon host=10.0.0.8 port=9101
bconsole: bsock.c:305-0 OK connected to server  Director daemon 10.0.0.8:9101.
Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation error during the TLS handshake.
For help, please see [www.bacula.org]
Re: bconsole Director authorization problem. 03 pa 2017 - 12:50:52

Send PM

Problem rozwiązany bardzo dziękuje za zainteresowanie - u mnie zabrakło opcji "MaximumConsoleConnections = .." . teraz to wygląda następująco i działa grinning smiley


Director { # define myself
Name = cam-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/run/bacula"
Maximum Concurrent Jobs = 20
Password = "test" # Console password
Messages = Daemon
DirAddress = 10.0.0.8
MaximumConsoleConnections = 5
}
Przykro nam, ale tylko zarejestrowane osoby mogą pisać na tym forum.

Kliknij żeby zalogować