botan-party / gretel

Minecraft Spigot サーバを運用するための実行環境
MIT License
0 stars 1 forks source link

AMI amazonlinux 2 Kernel 5.10 で /bin/bash が見つからない #20

Closed usagiga closed 2 years ago

usagiga commented 2 years ago

Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type (ami-03195e1b4a3b0b993) の aarch64 で作成した EC2 インスタンスで、/bin/bash が見つからずにサーバーが起動できないバグがありました。

以下にログを貼っておきます。

Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: Started Minecraft Spigot Server.
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[973]: Failed at step CHDIR spawning /bin/bash: No such file or directory
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: spigot.service: main process exited, code=exited, status=200/CHDIR
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: Unit spigot.service entered failed state.
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: spigot.service failed.
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: spigot.service holdoff time over, scheduling restart.
Dec 01 15:17:04 ip-10-0-0-41.ap-northeast-1.compute.internal systemd[1]: Stopped Minecraft Spigot Server.

この AMI で起動した EC2 で which bash すると、/usr/bin/bash と出力されることから、どうやら bash のデフォルトのインストール先が変わったようです。

usagiga commented 2 years ago

https://github.com/shokkunrf/gretel/pull/23

ここで依存する環境が amazonlinux2 ではなくなるので close します。