你好!
我有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导演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 cofig:
Director {
Name = ubuntu-dir
DIRport = 9101
address = localhost
Password = "password-bacula-dir"
}
$ netstat -anp | grep LISTEN | 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.
错误可以在哪里?
P.S。 ufw被禁用
答案 0 :(得分:0)
我的命令与RHEL \ CentOS和Bacula 5.2.13(2013年2月19日)有关,我现在没有Ubuntu实例
首先尝试检查您的配置:
>>> left_strip(right_strip(lst))
['one', None, 'two']
然后重启bacula导演服务:
bacula-dir -tc path-to-bacula-dir.config
bconsole -tc path-to-bacula-console.config
再次检查systemctl restart bacula-dir
我认为你的bacula director实例有过时的配置(不是来自文件的最新版本)
答案 1 :(得分:0)
我有类似的问题,原因是bconsole.conf和bacula-dir.conf的Director部分中的密码不相同。 编辑密码,然后重新启动服务。现在应该可以了
答案 2 :(得分:-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)