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.

「gitbucket」のアプリケーションが起動できない問題を解決!

Posted at

image.png

エラー↓

FAIL - コンテキストパス [/gitbucket] のアプリケーションが起動できません

logファイルから切り抜き↓

Caused by: java.io.IOException: Directory '/.gitbucket' could not be created

原因はgitbucketが利用するフォルダーを作成できなかったこと
本来はgitbucketを起動したユーザーのホームディレクトリに作成されるのだが、tomcatの場合ホームディレクトリが存在しない?のでフォルダーが作成できずエラーを出していたみたい。

1. tomcatを停止↓

コマンド
sudo systemctl stop tomcat9

2.tomcatのユーザーフォルダー作成↓

コマンド
sudo mkdir /home/tomcat9

3.rootからtomcatにフォルダー権限を移動↓

コマンド
sudo chown tomcat:tomcat /home/tomcat9

4.tomcatの「ホームディレクトリだよ」って事をOSに届け出↓

コマンド
sudo usermod -d /home/tomcat9 tomcat

5.tomcat様起動↓

コマンド
sudo systemctl start tomcat9

勝手に起動していれば成功↓
image.png

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?