LoginSignup
8
7

More than 5 years have passed since last update.

RaspberrypiにGitbucketをインストールした

Last updated at Posted at 2015-09-27

普通にgitbucket.warを/var/lib/tomcat7/webappsに配置したら以下のようなパーミッションのエラーが出てGitBucketが起動できなかったのでメモ。

Raspberry PI にGitbucket
OSはRaspbian
bash: Bash
sudo apt-get install tomcat7

bash: Bash
sudo cat /var/lib/tomcat7/logs/catalina.out

text:catalina.out
org.h2.jdbc.JdbcSQLException: Error while creating file "/usr/share/tomcat7/.gitbucket" [90062-180]

それで以下のようにディレクトリを作ってパーミッションを与えたら動いた
bash:Bash
sudo mkdir /usr/share/tomcat7/.gitbucket
sudo chown tomcat7:tomcat7 /usr/share/tomcat7/.gitbucket

/var/lib/tomcat7/webapps にgitbucket.warを配置

Bash
 sudo cp /path/to/gitbucket.war /var/lib/tomcat7/webapps

しばらく待つ

http://xxx.xxx.xxx.xxx/gitbucket
にアクセスする

以上

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