LoginSignup
1
1

More than 5 years have passed since last update.

Atlassian Stash 2.7.XX -> 3.8.0のアップデートメモ(AmazonLinuxの場合)

Last updated at Posted at 2016-01-12

まずは、現状の確認

//インストール先がここの模様。Stashの画面にて確認。
$ cd /opt/atlassian-stash-2.7.XX/

//tomcatが動作してるか確認。動作してるはず。
$ ps aux | grep tomcat

//JAVAのバージョンを確認
$ java -version

//Perlのバージョンを確認
$ perl --version

//Gitのバージョンを確認
$ git --version

//historyを見ると、「stash」ユーザで起動してたようなので、同じものでSTOPを実行
$ sudo su stash ./bin/stop-stash.sh 

//PIDファイルが消えたかどうか確認。
$ ls work/catalina.pid

インストール前に必要な対応

Supported platforms - Stash latest (3.8) - Atlassian Documentation https://confluence.atlassian.com/display/STASH/Supported+platforms
Stash upgrade guide - Stash latest (3.8) - Atlassian Documentation https://confluence.atlassian.com/display/STASH/Stash+upgrade+guide#Stashupgradeguide-installer

//インストールのためには、アップデートが必要な模様のためアップデート
$ sudo yum update git 

//インストール後、アップデートされてるか確認。
$ perl --version
$ git --version

//次にJAVAのインストール
$ sudo yum search java
$ sudo yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

//JAVAがインストールされたか確認
$ java -version

//インストーラをダウンロード
$ wget https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-3.8.0-x64.bin

// 実行権限を与える
$ chmod +x atlassian-stash-3.8.0-x64.bin

インストールする

//インストーラ実行
$ sudo ./atlassian-stash-3.8.0-x64.bin 
Starting Installer ...

This will install Stash 3.8.0 on your computer.
OK [o, Enter], Cancel [c]
o
Please choose one of the following:
Install a new Stash instance [1, Enter], Upgrade an existing Stash instance [2]
2
Where should Stash be installed?

[/opt/atlassian/stash/3.8.0]
/opt/atlassian-stash-3.8.0   ←新しいフォルダとして作成される         
Default location for Stash home directory

The location for Stash data.
Please provide the location of your existing Stash home directory, where
your repositories, plugins, and other data are stored.

Be sure to STOP your current Stash instance and create a backup before
proceeding.
[/var/atlassian/application-data/stash]
/opt/stash-home  ←Stash上のシステム情報から探す。Stash Home
Configure which ports Stash will use.


Stash requires two TCP ports that are not being used by any other
applications.

The HTTP port is where users will access Stash through their browsers. The
control port is used to start and stop Stash.
HTTP Port Number
[7990] ←デフォルト

Control Port Number
[8006] ←デフォルト

Please review your Stash installation settings


Installation Directory: /opt/atlassian-stash-3.8.0 
Home Directory: /opt/stash-home 
HTTP Port: 7990 
Control Port: 8006 

Install [i, Enter], Exit [e]
i

Extracting files ...

Installation of Stash is complete
Would you like to launch Stash?
Yes [y, Enter], No [n]
y

Please wait a few moments while Stash starts up.
Launching Stash ...
Installation of Stash 3.8.0 is complete
Your installation of Stash 3.8.0 is now ready and can be accessed via your
browser.
Stash 3.8.0 can be accessed at http://localhost:7990
Launch Stash 3.8.0 in browser?
Yes [y, Enter], No [n]
y

ホスト名がsshログインしてるホストと同じか確認

$ vim /etc/hosts
$ sudo vim /etc/hosts

mysqlが起動してない場合は起動する

$ sudo service mysqld status
$ sudo service mysqld start

インストールしたフォルダのオーナーを確認し、必要であれば、chownで変更

$ sudo chown -R stash. /opt/atlassian-stash-3.8.0
$ sudo chown -R stash. /opt/stash-home

順番をミスったりした場合は、一旦STOPして、起動すればDBも再接続してインストールをしてくる模様。

$ sudo su stash ./stop-stash.sh
$ sudo su stash ./start-stash.sh
おしまい
1
1
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
1
1