Armadilloフォーラム

awsに接続できない

sasa0107

2019年11月19日 11時09分

お世話になります。
awsに接続し、DeguのマックアドレスをAWSに送りモノにマックアドレスを登録しようとしていますが、上手く登録できません。
状況は、Deguゲートウェイのsyslogを確認してみますと、
armadillo degu-manager[697]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='iot.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: /thing-types/Degu (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
の表示があり、AWSとのコネクションエラーが発生しているようです。
原因が不明で困っています。
因みに、社内有線Lanのネットワークはproxy設定が必要となりますので、/etc/environmentに
http_proxy=http://xxxxxx
https_proxy=http://xxxxxx
ftp_proxy=http://xxxxxx
HTTP_PROXY=http://xxxxxx
HTTPS_PROXY=http://xxxxxx
FTP_PROXY=http://xxxxxx
のように、proxy設定をしています。またこの状態で、apt-get update が可能ですので、インターネットアクセスはしています。
DNSの設定は、下記の4つを試しました。
1回目 cat resolv.conf(以前からresolv.confに設定しておりました)
nameserver 172.20.10.1
2回目 cat resolv.conf
domain local-network
search local-network
nameserver 192.0.2.1
3回目 cat resolv.conf
domain local-network
search local-network
nameserver 172.20.10.1
4回目 cat resolv.conf(社内で使用しているDNSです)
domain local-network
search local-network
nameserver 218.224.234.74

しかし、syslogでは同様なメッセージがでており、aswに接続できていない模様です。
ちなみに、resize && systemctl status degu-manager で確認しますと
root@armadillo:~# resize && systemctl status degu-manager
COLUMNS=200;
LINES=24;
export COLUMNS LINES;
● degu-manager.service
Loaded: loaded (/lib/systemd/system/degu-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2016-11-04 02:19:08 JST; 50s ago
Process: 700 ExecStart=/usr/bin/degu-manager --register-gw (code=exited, status=1/FAILURE)
Process: 382 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
Main PID: 700 (code=exited, status=1/FAILURE)

Nov 04 02:19:07 armadillo degu-manager[700]: File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 204, in _get_response
Nov 04 02:19:07 armadillo degu-manager[700]: proxies=self.proxies, timeout=self.timeout)
Nov 04 02:19:07 armadillo degu-manager[700]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
Nov 04 02:19:07 armadillo degu-manager[700]: r = adapter.send(request, **kwargs)
Nov 04 02:19:07 armadillo degu-manager[700]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 487, in send
Nov 04 02:19:07 armadillo degu-manager[700]: raise ConnectionError(e, request=request)
Nov 04 02:19:07 armadillo degu-manager[700]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='iot.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: /thing-types/Degu (C
Nov 04 02:19:08 armadillo systemd[1]: degu-manager.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 02:19:08 armadillo systemd[1]: degu-manager.service: Unit entered failed state.
Nov 04 02:19:08 armadillo systemd[1]: degu-manager.service: Failed with result 'exit-code'.
lines 1-17/17 (END)
という状況です。
何か、ご指摘、ご教授頂けるよう、よろしくお願い致します。

コメント