cloudron-support: box check
This commit is contained in:
@@ -76,6 +76,23 @@ function check_host_mysql() {
|
||||
success "MySQL is running"
|
||||
}
|
||||
|
||||
function check_box() {
|
||||
if ! systemctl is-active -q box; then
|
||||
info "box is down. re-running migration script and restarting it ..."
|
||||
|
||||
/home/yellowtent/box/setup/start.sh
|
||||
systemctl stop box # a restart sometimes doesn't restart, no idea
|
||||
systemctl start box
|
||||
|
||||
if ! systemctl is-active -q box; then
|
||||
fail "box is still down, please investigate the error by inspecting /home/yellowtent/platformdata/logs/box.log"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
success "box is running"
|
||||
}
|
||||
|
||||
function owner_login() {
|
||||
check_host_mysql
|
||||
|
||||
@@ -268,6 +285,7 @@ function troubleshoot() {
|
||||
check_nginx
|
||||
check_docker
|
||||
check_host_mysql
|
||||
check_box
|
||||
check_unbound
|
||||
check_hairpin_nat # requires mysql to be checked
|
||||
check_expired_domain
|
||||
|
||||
Reference in New Issue
Block a user