LoginSignup
2
4

More than 5 years have passed since last update.

raspberry piにRedmineをインストールしてみた

Posted at

Raspberry piにRedmineをインストールしてみた

自宅で運用しているRaspberry Pi2にRedmineを入れた際の作業メモです。

インストール作業

こちらの記事を参考に作業を進めました。

記事に書いてる下記のコマンドに失敗する場合は
apt-get -y install mysql-server libmysqlclient-dev
こちらのコマンドで回避することができました。
apt-get -y install mysql-server default-libmysqlclient-dev

ビルド作業はかなり時間がかかりますのでご飯でも食べながらゆっくり待ちます。

もしもredmineを起動した際にエラーになる場合はmysqlとの接続ができてない可能性があります。

sudo mysql -u root -p -> mysqlにログイン
use redmine -> redmineのデータベースを選択
show tables; -> データベースに登録しているテーブルの一覧

以下のようなテーブルが作成されていればOKです。

+-------------------------------------+
| Tables_in_redmine                   |
+-------------------------------------+
| attachments                         |
| auth_sources                        |
| boards                              |
| changes                             |
| changeset_parents                   |
| changesets                          |
| changesets_issues                   |
| comments                            |
| custom_field_enumerations           |
| custom_fields                       |
| custom_fields_projects              |
| custom_fields_roles                 |
| custom_fields_trackers              |
| custom_values                       |
| documents                           |
| email_addresses                     |
| enabled_modules                     |
| enumerations                        |
| groups_users                        |
| import_items                        |
| imports                             |
| issue_categories                    |
| issue_relations                     |
| issue_statuses                      |
| issues                              |
| journal_details                     |
| journals                            |
| member_roles                        |
| members                             |
| messages                            |
| news                                |
| open_id_authentication_associations |
| open_id_authentication_nonces       |
| projects                            |
| projects_trackers                   |
| queries                             |
| queries_roles                       |
| repositories                        |
| roles                               |
| roles_managed_roles                 |
| schema_migrations                   |
| settings                            |
| time_entries                        |
| tokens                              |
| trackers                            |
| user_preferences                    |
| users                               |
| versions                            |
| watchers                            |
| wiki_content_versions               |
| wiki_contents                       |
| wiki_pages                          |
| wiki_redirects                      |
| wikis                               |
| workflows                           |
+-------------------------------------+

もしもテーブルが無かった場合はDBの設定が間違っているので下記のファイルを見直して、再度下記のコマンドを実行してみてください。

cd /var/www/redmine
sudo -u www-data bundle install --without development test --path vendor/bundle
sudo -u www-data bundle exec rake generate_secret_token
sudo -u www-data RAILS_ENV=production bundle exec rake db:migrate
sudo -u www-data RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data
sudo reboot

それでもエラー画面が出る場合は下記のログに何か出ているかもしれませんので、そこから調べていくのが良さそうです。
cat /var/www/redmine/log/production.log

以上です。

2
4
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
2
4