Bacula - 致命错误:授权密钥被存储守护程序拒绝

Bacula - 致命错误:授权密钥被存储守护程序拒绝

操作系统:Debian 9、bacula dir、fd、sd:所有相同版本 7.4.4+dfsg-6 尝试执行某些文件的恢复(未完整设置),FD 上出现错误:

4-Nov 12:20 host-dir JobId 273: Start Restore Job RestoreFiles.2017-11-24_12.20.32_48 24-Nov 12:20 host-dir JobId 273: Using Device "FileChgr1-Dev1" to read. 24-Nov 12:20 host-remote-fd JobId 273: Fatal error: Authorization key rejected by Storage daemon. For help, please see http://www.bacula.org/rel-manual/en/problems/Bacula_Frequently_Asked_Que.html 24-Nov 12:20 host-dir JobId 273: Fatal error: Bad response to Storage command: wanted 2000 OK storage , got 2902 Bad storage

导演错误:

24-Nov 12:20 host-dir JobId 273: Error: Bacula host-dir 7.4.4 (202Sep16): Build OS: x86_64-pc-linux-gnu debian 9.0 JobId: 273 Job: RestoreFiles.2017-11-24_12.20.32_48 Restore Client: host-remote-fd Start time: 24-Nov-2017 12:20:34 End time: 24-Nov-2017 12:20:46 Files Expected: 3 Files Restored: 0 Bytes Restored: 0 Rate: 0.0 KB/s FD Errors: 2 FD termination status:
SD termination status: Waiting on FD Termination: *** Restore Error ***

SD 上的错误: host-remote-sd: bnet.c:566-0 who=client host=127.0.0.1 port=9103 host-remote-sd: hello.c:134-0 Conn: Hello Bacula SD: Start Job RestoreFiles.2017-11-24_12.20.32_48 213 host-remote-sd: hello.c:147-0 Client connect failed: Job name not found: RestoreFiles.2017-11-24_12.20.32_48 host-remote-sd: hello.c:148-0 **** Job "RestoreFiles.2017-11-24_12.20.32_48" not found.

答案1

问题解决了。解决办法很简单。在director中定义了2个SD,本地为localhost(Director主机上的127.0.0.1),远程为IP。当我尝试从本地存储恢复到远程 FD 时,远程 FD 尝试连接 localhost,并且密钥错误。控制器使用配置的 SD IP 将任务发送到 FD。使用公共 IP 而不是本地主机更改本地 SD 配置(与 Director 位于同一主机上),允许远程 FD 连接到正确的主机以获取要恢复的文件。

相关内容