0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rundeck 備忘録

Last updated at Posted at 2022-02-07

Ubuntu20.04にRundeckをインストールして使用するための備忘録

【MySQL】##

ログイン

mysql -u root -p

DB作成

CREATE DATABASE rundeckdb;

ユーザー作成

CREATE USER 'rundeck_user'@'localhost' IDENTIFIED BY 'hogehugaPassword';
GRANT ALL PRIVILEGES ON *.* TO 'rundeck_user'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

【Rundeck】

ダウンロード

curl -L https://packages.rundeck.com/pagerduty/rundeck/gpgkey | sudo apt-key add -
sudo vim /etc/apt/sources.list.d/rundeck.list
項目 説明 備考
コマンドの有無を確認 入っていれば、ディレクトリが返ってくる 例:which curl
/usr/bin/curl
curl -L リダイレクト https://qiita.com/shtnkgm/items/45b4cd274fa813d29539
apt-key aptがパッケージを認証するのに使用するキーの一覧を管理するコマンド https://manpages.debian.org/unstable/apt/apt-key.8.ja.html

下記追加

deb https://packages.rundeck.com/pagerduty/rundeck/any/ any main
deb-src https://packages.rundeck.com/pagerduty/rundeck/any/ any main

インストール

sudo apt update
sudo apt install rundeck

rundeck-config.properties 設定

/etc/rundeck/rundeck-config.properties
grails.serverURL=http://xxx.xxx.xxx.xxx:4440
dataSource.driverClassName = org.mariadb.jdbc.Driver
dataSource.url = jdbc:mysql://localhost/rundeckdb?autoReconnect=true&useSSL=false
dataSource.username = rundeck_user
dataSource.password = hogehugaPasword

framework.properties 設定

/etc/rundeck/framework.properties

framework.server.name = xxx.xxx.xxx.xxx
framework.server.hostname = xxx.xxx.xxx.xxx
framework.server.port = 4440
framework.server.url = http://xxx.xxx.xxx.xxx:4440


アプリケーションの起動

sudo systemctl enable rundeckd.service 
sudo systemctl status rundeckd.service
sudo service rundeckd start

Apache

/etc/apache2/apache2.conf
ProxyPass xxx.xxx.xxx.xxx:4440/ http://xxx.xxx.xxx.xxx:4440
ProxyPassReverse xxx.xxx.xxx.xxx:4440/ http://xxx.xxx.xxx.xxx:4440

上手くいかない時

症状 原因 備考
xxx.xxx.xxx:4440に接続できない 原因不明
エラーログを確認する
/var/log/appache2
/var/log/rundeck
/var/log/appache2
access.logを確認したところ408エラーがでている
"-" 408 511 "-" "-" rundeckが応答しないのでタイムアウトしたと思われる
/var/log/rundeck
service.logを確認したところ
SQLTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)
ERROR pool.ConnectionPool - Unable to create initial connections of pool等のエラーが出ている
DBに接続できていないと思われるのでMySQLに設定したIDとパスでログインできるか確認する

詳細ファイル

/home/user 20220211_rundeckDL_インストール_設定時の備忘録.txt

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?