![Spacewalk エラー: jabberd/c2s[4642]: 存在しないホストに対する SASL コールバック: abcd](https://rvso.com/image/718314/Spacewalk%20%E3%82%A8%E3%83%A9%E3%83%BC%3A%20jabberd%2Fc2s%5B4642%5D%3A%20%E5%AD%98%E5%9C%A8%E3%81%97%E3%81%AA%E3%81%84%E3%83%9B%E3%82%B9%E3%83%88%E3%81%AB%E5%AF%BE%E3%81%99%E3%82%8B%20SASL%20%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%3A%20abcd.png)
CentOS Linuxリリース7.4.1708(Core)でspacewalk 2.6を実行しています。
そして、spacewalk-service startで宇宙遊泳を開始すると
私は観察します:
jabberd.service - Jabber Server
Loaded: loaded (/usr/lib/systemd/system/jabberd.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2018-02-28 16:24:06 UTC; 7h ago
Process: 4644 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 4644 (code=exited, status=0/SUCCESS)
Memory: 0B
CGroup: /system.slice/jabberd.service
さらに調査し、グーグルで検索してみると
#journalctl -xe
Mar 01 00:21:58 gss-spacewalk-1-prod.aws.a.b.c jabberd/c2s[4642]: SASL callback for non-existing host: spacewalk.a.b.c
Mar 01 00:23:13 gss-spacewalk-1-prod.aws.a.b.c jabberd/c2s[4642]: [25] [::ffff:1x.1xx.1xx.82, port=46909] connect
Mar 01 00:23:13 gss-spacewalk-1-prod.aws.a.b.c. jabberd/c2s[4642]: [25] [::ffff:1x.1xx.1xx.82, port=46909] disconnect jid=unbound, pac
Mar 01 00:23:13 gss-spacewalk-1-prod.aws.a.b.c. jabberd/c2s[4642]: SASL callback for non-existing host: spacewalk.a.b.c.
現在、spacewalk.abc は AWS ロードバランサーのようです。
$nslookup spacewalk.a.b.c
Server: 1x.xx.xxx.80
Address: 1x.xx.1xx.80#53
spacewalk.a.b.c canonical name = internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com.
Name: internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com
Address: 1x.1xx.1xx.55
Name: internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com
Address: 1x.1xx.1xx.82
フォーラムやブログを検索しましたが、このjabberdが起動しない問題の解決策を見つけることができません
--------------- @tukan への回答 ------------------------------------
実際には、jabberd の起動時に実行されるプログラムは 6 つあります。それらの実行可能ファイルは、次の場所にあります。
1. /usr/bin/c2s
2. /usr/bin/jabberd
3. /usr/bin/resolver
4. /usr/bin/router
5. /usr/bin/s2s
6. /usr/bin/sm
jabberd configuration:
1. /usr/bin/c2s -c /etc/jabberd/c2s.xml https://pastebin.com/A1Qp44qp
2. /usr/bin/jabberd itself does not have a config ??
3. /usr/bin/sm -c /etc/jabberd/sm.xml https://pastebin.com/4gi4MR3g
4. /usr/bin/router -c /etc/jabberd/router.xml https://pastebin.com/cdRZqk5D
5. /usr/bin/s2s -c /etc/jabberd/s2s.xml https://pastebin.com/nPsMsde3
6. /usr/bin/sm -c /etc/jabberd/sm.xml https://pastebin.com/s7vQu3VE
c2s and sm are configured to encrypt information that passes through them. The cert and key used to do this are located in the /etc/jabberd/server.pem file.
ports:
[root@gss-spacewalk-1-prod jabberd]# nmap -sT -p 5200-5400 localhost
Starting Nmap 6.40 ( http://nmap.org ) at 2018-03-09 19:11 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00022s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 198 closed ports
PORT STATE SERVICE
5222/tcp open xmpp-client
5269/tcp open xmpp-server
5347/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds
[root@gss-spacewalk-1-prod jabberd]# netstat -nl | head
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:36536 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25151 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN
---------------------ファイアウォール設定 ---------------------------------------
# service iptables status
iptables: Firewall is not running.
# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
答え1
設定をありがとうございます。設定は問題ないようです。設定ファイルには小文字のみが含まれています。
まだ大文字のホスト名を入力している可能性があります:
internal-GSS-Spacewalk-123456789.us-east
nslookup
あなたの名前に大文字を与えるので
$nslookup spacewalk.abc サーバー: 1x.xx.xxx.80 アドレス:
1x.xx.1xx.80#53spacewalk.abc 正規名 = internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com。名前:
internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com アドレス: 1x.1xx.1xx.55 名前:
internal-GSS-Spacewalk-123456789.us-east-1.elb.amazonaws.com アドレス: 1x.1xx.1xx.82
FQDN をすべて小文字にして試すと、動作するはずです。現在、モバイルで書いていますが、後でノートブックで参照を入力します。
編集約束通り、情報源は次のとおりです。
ホスト名に大文字と小文字が含まれている場合、jabberdとosad/osa-dispatcher間の通信は失敗します。
引用:
「Satellite ホスト名には絶対に大文字を使用しないでください。正常に動作しません。」
CentOS7 に Spacewalk をインストールする際の問題 (新規インストール)
奇妙に聞こえるかもしれませんが、ホスト名には大文字を使用しないでください。