# E1 Q1 — the removed-app row on /backups/restore (R-487)
row present: True
csolat kikapcsolva — a központi monitoring nem aktív Rendszermonitor → Biztonsági mentés — Visszaállítás enkisfelhom.hu Visszaállítás Alkalmazás: — Válasszon — Docmost Nextcloud Paperless-ngx <option value="pr
snapshot_id in the row's form: []
12:46:25   [R] restoring nextcloud from snapshot 'helyi' (of 0 offered)
12:46:25   [R] POST /backup/restore -> HTTP/2 302 ['location: /backups/restore?flash=flash.restore.started']
12:46:25       +   0.0s restore (True, None, None)
12:48:02       +  97.2s restore (False, None, None)
12:48:02   [R] after restore: state=degraded hold=None phase=None
{'http': 'HTTP/2 302', 'location': ['location: /backups/restore?flash=flash.restore.started'], 'seconds': 97.2, 'state_after': 'degraded', 'hold_after': None}
12:58:16     app never answered on c-nc/status.php (last rc=0 code=404)
12:58:16     nextcloud: the app never served /status.php
12:58:16 E1-Q1-after-restore: read nextcloud=False
12:58:16 PROPFIND files of drilld112bd -> 404; before-backup.txt visible=False; listing=[]
12:58:16 PROPFIND files of drilld112bd -> 404; after-backup.txt visible=False; listing=[]
state degraded
Error response from daemon: container 96bf44773afc146b3fb41cf9f04b0faeb94a9b2a6fa02411af34a94da4ffa4f4 is not running
/var/lib/docker/volumes/nextcloud_nextcloud_html/_data->/var/www/html /appdata/nextcloud->/var/www/html/data 

## E1 Q1 evidence, 2026-09-25T10:58:39Z
### env KEYS in the restored app.yaml (values never printed)

### env KEYS in the unit's app.yaml
env     DB_PASSWORD     DOMAIN     HDD_PATH     MYSQL_ROOT_PASSWORD     NEXTCLOUD_ADMIN_USER     SUBDOMAIN 
### nextcloud container mounts
/var/lib/docker/volumes/nextcloud_nextcloud_html/_data -> /var/www/html
/appdata/nextcloud -> /var/www/html/data

total 12
drwxr-xr-x  3 root root 4096 Sep 15 09:17 .
drwxr-xr-x 20 root root 4096 Sep 24 20:52 ..
### nextcloud-db log tail
2026-09-25 12:56:23+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:12.3.3+maria~ubu2404 started.
2026-09-25 12:56:23+02:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
	You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD
2026-09-25 12:57:23+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:12.3.3+maria~ubu2404 started.
2026-09-25 12:57:24+02:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
2026-09-25 12:57:24+02:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2026-09-25 12:57:24+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:12.3.3+maria~ubu2404 started.
2026-09-25 12:57:24+02:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
	You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD
2026-09-25 12:58:24+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:12.3.3+maria~ubu2404 started.
2026-09-25 12:58:24+02:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
2026-09-25 12:58:24+02:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2026-09-25 12:58:24+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:12.3.3+maria~ubu2404 started.
2026-09-25 12:58:25+02:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
	You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD
### controller restore lines
2026/09/25 10:39:01 deploy.go:391: [INFO] [stacks] Deploying stack nextcloud with 7 env vars: [DOMAIN, SUBDOMAIN, DB_PASSWORD, MYSQL_ROOT_PASSWORD, NEXTCLOUD_ADMIN_USER, NEXTCLOUD_ADMIN_PASSWORD, HDD_PATH]
2026/09/25 10:40:28 recovery_unit.go:235: [INFO] [backup] Recovery unit captured for nextcloud → /mnt/felhom-drives/scratch_hdd/backups/primary/nextcloud (images=3, secrets-referenced=3, data_keys=0, portable-carried=2
2026/09/25 10:44:56 recovery_unit.go:235: [INFO] [backup] Recovery unit captured for docmost → /mnt/sys_drive/felhom-data/backups/primary/docmost (images=3, secrets-referenced=2, data_keys=0, portable-carried=2/2, with
2026/09/25 10:44:56 recovery_unit.go:235: [INFO] [backup] Recovery unit captured for nextcloud → /mnt/felhom-drives/scratch_hdd/backups/primary/nextcloud (images=3, secrets-referenced=3, data_keys=0, portable-carried=2
2026/09/25 10:46:25 handlers.go:1707: [WARN] [web] Restore requested (async): stack=nextcloud, snapshot=helyi from 172.18.0.6:39110
2026/09/25 10:46:25 restore_unit.go:306: [WARN] [backup] No readable recovery unit for nextcloud at /mnt/sys_drive/felhom-data/backups/primary/nextcloud — falling back to volume-only restore
2026/09/25 10:46:25 restore.go:49: [INFO] [backup] Starting app-data restore for nextcloud (drive=/mnt/sys_drive)
2026/09/25 10:46:27 manager.go:1488: [ERROR] [stacks] stderr: time="2026-09-25T10:46:25Z" level=warning msg="The \"HDD_PATH\" variable is not set. Defaulting to a blank string."
stderr: time="2026-09-25T10:46:25Z" level=warning msg="The \"HDD_PATH\" variable is not set. Defaulting to a blank string."
2026/09/25 10:46:27 restore.go:77: [WARN] RESTORE could not restart nextcloud after restore: starting stack nextcloud: exit code 1
stderr: time="2026-09-25T10:46:25Z" level=warning msg="The \"HDD_PATH\" variable is not set. Defaulting to a blank string."
2026/09/25 10:48:01 restore.go:91: [WARN] [backup] Restore completed but app health check failed: stack nextcloud did not reach running state within 1m30s after restore
2026/09/25 10:48:01 restore.go:97: [INFO] RESTORE completed: stack=nextcloud
2026/09/25 10:48:01 handlers.go:1719: [INFO] [web] Restore completed (async): stack=nextcloud in 1m35.743249387s (volumes 0/0, dbs 0/0)
