release: sync public installer asset remount-fuse.sh
This commit is contained in:
+13
-1
@@ -193,7 +193,7 @@ PY
|
|||||||
then
|
then
|
||||||
fail_restore 'failed to update environment or config'
|
fail_restore 'failed to update environment or config'
|
||||||
fi
|
fi
|
||||||
startup_since=$(date '+%Y-%m-%dT%H:%M:%S%z')
|
startup_since=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
|
||||||
if [ "$enabled" = true ]; then
|
if [ "$enabled" = true ]; then
|
||||||
if ! compose -f "$install_dir/compose.fuse.yaml" up -d app >/dev/null; then
|
if ! compose -f "$install_dir/compose.fuse.yaml" up -d app >/dev/null; then
|
||||||
fail_restore 'failed to start app: docker compose up failed'
|
fail_restore 'failed to start app: docker compose up failed'
|
||||||
@@ -244,6 +244,18 @@ print_timeout_diagnostics() {
|
|||||||
fi
|
fi
|
||||||
printf ' recent xymedia-app logs (bounded):\n' >&2
|
printf ' recent xymedia-app logs (bounded):\n' >&2
|
||||||
docker logs --tail 80 xymedia-app 2>&1 | while IFS= read -r line; do printf ' %s\n' "$line"; done >&2 || true
|
docker logs --tail 80 xymedia-app 2>&1 | while IFS= read -r line; do printf ' %s\n' "$line"; done >&2 || true
|
||||||
|
printf ' application mount config:\n' >&2
|
||||||
|
if mount_config=$(curl -fsS --max-time 5 "http://127.0.0.1:${XYMEDIA_API_PORT:-18080}/api/mount/config" 2>&1); then
|
||||||
|
printf '%s\n' "$mount_config" | while IFS= read -r line; do printf ' %s\n' "$line"; done >&2
|
||||||
|
else
|
||||||
|
printf ' unavailable\n' >&2
|
||||||
|
fi
|
||||||
|
printf ' application mount status:\n' >&2
|
||||||
|
if mount_status=$(curl -fsS --max-time 5 "http://127.0.0.1:${XYMEDIA_API_PORT:-18080}/api/mount/status" 2>&1); then
|
||||||
|
printf '%s\n' "$mount_status" | while IFS= read -r line; do printf ' %s\n' "$line"; done >&2
|
||||||
|
else
|
||||||
|
printf ' unavailable\n' >&2
|
||||||
|
fi
|
||||||
printf ' container diagnostics (status and device mapping only):\n' >&2
|
printf ' container diagnostics (status and device mapping only):\n' >&2
|
||||||
docker inspect --format '{{.State.Status}} health={{if .State.Health}}{{.State.Health.Status}}{{else}}none{{end}} devices={{range .HostConfig.Devices}}{{.PathOnHost}}:{{.PathInContainer}} {{end}}' xymedia-app 2>&1 >&2 || true
|
docker inspect --format '{{.State.Status}} health={{if .State.Health}}{{.State.Health.Status}}{{else}}none{{end}} devices={{range .HostConfig.Devices}}{{.PathOnHost}}:{{.PathInContainer}} {{end}}' xymedia-app 2>&1 >&2 || true
|
||||||
printf ' compose configuration validation: ' >&2
|
printf ' compose configuration validation: ' >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user