0

やあ!

私はUbuntu 16.04.1 LTS
と私のバキュラサービスを持っています:

$ service --status-all | grep bacula
[ + ]  bacula-director
[ + ]  bacula-fd
[ + ]  bacula-sd

Bacula リリース 5.2.6 (2012 年 2 月 21 日) -- ubuntu 14.04
Bacula ディレクター cofig:

Director {                            # define myself
  Name = ubuntu-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 10
  Password = "password-bacula-dir"         # Console password
  Messages = Daemon
  DirAddress = localhost
# DirAddresses = {
#   ip = { addr = 127.0.0.1; port = 9101; }
#   ip = { addr = 10.0.5.71; port = 9101; }
# }
}

bconsole 構成:

Director {
  Name = ubuntu-dir
  DIRport = 9101
  address = localhost
  Password = "password-bacula-dir"
}

$ netstat -anp | grep リッスン | grep バキュラ

tcp        0      0 127.0.0.1:9101          0.0.0.0:*               LISTEN      5532/bacula-dir 
tcp        0      0 127.0.0.1:9102          0.0.0.0:*               LISTEN      1091/bacula-fd  
tcp        0      0 127.0.0.1:9103          0.0.0.0:*               LISTEN      1072/bacula-sd  

だから、私が使用するとき

$ bconsole

エラーを取得:

Connecting to Director localhost: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.
Please see http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000 for help.

エラーはどこにありますか?

PS ufw が無効になっています

4

3 に答える 3

-1

私が見つけた解決策は、bacula-dir.conf構成のパスワードから引用符を削除することでした。

Director {
  Name = ubuntu-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 10
  Password = password-bacula-dir
  Messages = Daemon
  DirAddress = localhost
}

次に、bacula の bconsole.conf で、パスワードを引用符で囲みます。

Director {
  Name = ubuntu-dir
  DIRport = 9101
  address = localhost
  Password = "password-bacula-dir"
}

最後に、すべての bacula サービスを再起動します。

sudo systemctl restart bacula-dir
sudo systemctl restart bacula-sd
sudo systemctl restart bacula-fd

再起動後、次を使用して bconsole に接続できるはずです。

sudo bconsole

これは私にとってはうまくいきました(Ubuntu 16.04)

于 2016-11-09T14:27:30.367 に答える