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 連線到正確的主機以取得要復原的檔案。

相關內容