{"id":2510,"date":"2021-08-16T18:38:08","date_gmt":"2021-08-16T09:38:08","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=2510"},"modified":"2024-06-11T17:01:03","modified_gmt":"2024-06-11T08:01:03","slug":"bacula%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e3%83%81%e3%82%a7%e3%83%83%e3%82%af","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=2510","title":{"rendered":"14\uff1aBacula\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af"},"content":{"rendered":"<p><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">bconsole<\/span><br \/>\n<span style=\"color: #000000;\">\u3068\u3084\u308b\u3068\u30a8\u30e9\u30fc\u3060\u30fc<\/span><br \/>\nConnecting to Director localhost:9101<\/span><br \/>\n<span style=\"color: #ff6600;\">bconsole: message.c:1833-0 bsockcore.c:265 Unable to connect to Director daemon on localhost:9101. ERR=\u63a5\u7d9a\u3092\u62d2\u5426\u3055\u308c\u307e\u3057\u305f<br \/>\n<\/span>\u306a\u306e\u3067\u3001bacula\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u3044\u306e\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u304c\u306a\u3044\u304b\u3068\u63a2\u3057\u305f\u3089<a href=\"https:\/\/qiita.com\/ksawada1979\/items\/bfa6b77e848d144527db\" target=\"_blank\" rel=\"noopener\">https:\/\/qiita.com\/ksawada1979\/items\/bfa6b77e848d144527db \u306b\u3042\u3063\u305f<\/a><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"with-code\"><code><span class=\"gp\">#<\/span><span class=\"w\"> <\/span>bacula-dir <span class=\"nt\">-t<\/span> <span class=\"nt\">-c<\/span> \/etc\/bacula\/bacula-dir.conf\r\n<span class=\"gp\">#<\/span><span class=\"w\"> <\/span>bacula-fd <span class=\"nt\">-t<\/span> <span class=\"nt\">-c<\/span> \/etc\/bacula\/bacula-fd.conf\r\n<span class=\"gp\">#<\/span><span class=\"w\"> <\/span>bacula-sd <span class=\"nt\">-t<\/span> <span class=\"nt\">-c<\/span> \/etc\/bacula\/bacula-sd.conf\r\n<span class=\"gp\">#<\/span><span class=\"w\"> <\/span>bconsole <span class=\"nt\">-t<\/span> <span class=\"nt\">-c<\/span> \/etc\/bacula\/bconsole.conf<\/code><code><\/code><\/pre>\n<\/div>\n<p>\u306a\u306e\u3067\u3001<code>bacula-dir.conf\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068<\/code><br \/>\n<span style=\"color: #ff6600;\">bacula-dir: dird.c:1015-0 Could not open Catalog &#8220;MyCatalog&#8221;, database &#8220;bacula&#8221;.<\/span><br \/>\n<span style=\"color: #ff6600;\">bacula-dir: dird.c:1020-0 <strong><span style=\"color: #ff0000;\">postgresql.c<\/span>:<\/strong>248 Unable to connect to PostgreSQL server. Database=bacula User=bacula<\/span><br \/>\n<span style=\"color: #ff6600;\">Possible causes: SQL server not running; password incorrect; max_connections exceeded.<\/span><br \/>\n<span style=\"color: #ff6600;\">15- 8\u6708 16:02 bacula-dir ERROR TERMINATION<\/span><br \/>\n<span style=\"color: #ff6600;\">Please correct configuration file: \/etc\/bacula\/bacula-dir.conf<\/span><br \/>\n\u3068\u8868\u793a\u3055\u308c\u305f\u3002\u3042\u308c\uff01mariadb\u3092\u4f7f\u3063\u3066\u3044\u308b\u7b48\u306a\u306e\u306bpostgresql.c\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\n\u3069\u3046\u3057\u3066\u3053\u3046\u306a\u3063\u305f\u304b\u539f\u56e0\u306f\u4e0d\u660e\u3060\u304c\u3001<br \/>\n<span style=\"color: #008000;\"><span style=\"color: #ff6600;\">#<\/span> alternatives &#8211;set libbaccats.so \/usr\/lib64\/libbaccats-mysql.so<br \/>\n<\/span>\u3068\u5165\u529b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u7121\u304f\u306a\u3063\u305f\u3002<span style=\"color: #ff00ff;\">(\u6c17\u3092\u4ed8\u3051\u3066\uff01&#8211;set \u306e &#8211; \u306f\u4e8c\u3064\uff09<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p># bconsole \u3068\u3084\u308b\u3068\u30a8\u30e9\u30fc\u3060\u30fc Connecting to Director localhost:9101 bconsole: message.c:1833-0 bsockcore.c:265 Unable t &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=2510\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-2510","post","type-post","status-publish","format-standard","hentry","category-bacula"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2510"}],"version-history":[{"count":8,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2510\/revisions"}],"predecessor-version":[{"id":3964,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2510\/revisions\/3964"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}