LoginSignup
0
2

More than 5 years have passed since last update.

re:dash公式AMI(ami-b30ec9d2)のデータソース接続で発生したSSLエラー解消手順

Posted at

状況

re:dash公式サイトにあるAMI(ap-northeast-1: ami-b30ec9d2)を利用してAWS上にEC2インスタンスを起動しました。

構成

EC2インスタンス起動直後の構成は、以下のような感じでした。

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

$ python -V
Python 2.7.6

$ psql --version
psql (PostgreSQL) 9.3.16

$ redis-server --version
Redis server v=2.8.17 sha=00000000:0 malloc=jemalloc-3.6.0 bits=6
4 build=ff7acbb5c7d22150

$ readlink -f /opt/redash/current
/opt/redash/redash.0.11.1.b2095

エラー内容

そんで、試しにre:dashの設定機能を色々触っていたところ、データソース追加画面のTypeで ElasticSearch や JIRA(JQL), Url を選択して、httpsなURLを入力して「Test Connection」をクリックすると以下のエラーが発生しました。

[Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

解消した手順

エラーメッセージを頼りに色々ググっていて見つかったページを参考にしました。
http://stackoverflow.com/questions/7340784/easy-install-pyopenssl-error

必要そうなパッケージをインストール

$ sudo apt-get dist-upgrade
$ sudo apt-get update
$ sudo apt-get install python-dev libffi-dev libssl-dev

$ sudo pip install pyopenssl

re:dashの各プロセスを再起動する

$ sudo supervisorctl restart redash_celery_scheduled
$ sudo supervisorctl restart redash_celery
$ sudo supervisorctl restart redash_server

ここで再度、データソース画面にて「Test Connection」をクリックすると接続成功のメッセージが表示されました。

(ついでに)re:dashもアップグレード

参考

$ cd /tmp
$ wget https://raw.githubusercontent.com/getredash/redash/master/bin/upgrade
$ chmod +x upgrade
$ sudo ./upgrade

# redashバージョン確認
$ readlink -f /opt/redash/current
/opt/redash/redash.0.12.0.b2449
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2