0

你好!

我有 Ubuntu 16.04.1 LTS
和我的 bacula 服务:

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

Bacula 5.2.6 版(2012 年 2 月 21 日)——ubuntu 14.04
Bacula 导演配置:

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 bacula

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

我的命令与 RHEL\CentOS 和 Bacula 5.2.13(2013 年 2 月 19 日)相关,我现在没有 Ubuntu 实例

首先尝试检查您的配置:

bacula-dir -tc path-to-bacula-dir.config
bconsole -tc path-to-bacula-console.config

然后重启 bacula director 服务:

systemctl restart bacula-dir

bconsole再次检查

我想你的 bacula 导演实例有过时的配置(不是来自文件的当前配置)

于 2016-11-09T13:09:31.520 回答
0

我有类似的问题,原因是 bconsole.conf 和 bacula-dir.conf 的 director 部分的密码不一样。编辑密码,然后重新启动服务。现在应该可以了

于 2020-05-03T11:49:46.873 回答
-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 回答