running debian os, on sparkbox update 1.6.327 Immich was stuck in a crash loop so I removed it and tried to reinstall it. here is the log I get when installing: Apps install failed (exit code 1) Asking server to apply: enable=[immich] disable=[(none)]... sparkbox up [0;36m / | | | | ) \ \| ' \ / | '| |/ / \ / \ \/ / ) | |) | (| | | | <| |) | () < |/| ./ \,|| ||\\/ \//\\ || [0m [1mSparkBox[0m v1.6.327 - Self-Hosted Privacy Stack Created by Tom Spark | youtube.com/@TomSparkReviews Network profile: private [0;34m[INFO][0m Starting SparkBox... [1;33m[WARN][0m Immich's photo library at /opt/sparkbox/data/photos is missing/empty but the pre-migration copy [1;33m[WARN][0m exists at /app/modules/immich/config/upload.migrated — restoring from it. [0;34m[INFO][0m Moving Immich's photo library to your storage pool (/opt/sparkbox/data/photos)... [0;34m[INFO][0m One-time fix: Immich was storing your whole photo library on the [0;34m[INFO][0m small system disk instead of your storage pool. (Only the photo [0;34m[INFO][0m library moves — the small Immich database stays put.) [0;34m[INFO][0m This can take a few minutes if your library is large — please wait. mkdir: cannot create directory ‘/opt/sparkbox’: Permission denied [0;31m[ERROR][0m Cannot create /opt/sparkbox/data/photos. Your Immich photos are safe at /app/modules/immich/config/upload.migrated. Aborting. [SparkBox] Install exited with code 1. Your pending changes are preserved — review the log above, then Apply again (or untoggle the broken module from the apply bar at the bottom). I checked and /opt/sparkbox/data/photos is there, but my library is now empty. The upload folder has a bunch of photos in several folders. Is there suddenly some permission issue? Immich was working perfectly for about a week before randomly getting stuck in a crashloop
5 replies
tomspark wrote:
Your photos are safe — the log confirms they're still at the migrated folder and nothing's been lost. The permission error means the reinstall helper can't write to /opt/sparkbox on your Debian system. Open a terminal on your server and run: sudo sparkbox up Running it with sudo gives it the permission it needs to move the photos across and get Immich back up. Let me know what the output looks like!
Ihavenoidea wrote:
here is the output from sudo sparkbox up / | | | | ) \ \| ' \ / | '| |/ / \ / \ \/ / ) | |) | (| | | | <| |) | () < |/| ./ \,|| ||\\/ \//\\ || SparkBox v1.6.327 - Self-Hosted Privacy Stack Created by Tom Spark | youtube.com/@TomSparkReviews Network profile: private [INFO] Starting SparkBox... [INFO] Active modules: core dashboard mealie media navidrome [INFO] Prepared 3 module config dir(s) for PUID=1000 PGID=1000 [+] up 3/3 ✔ Container sb-portainer Started 5.0s ✔ Container sb-npm Started 4.9s ✔ Container sb-homepage Started 4.9s [+] up 1/1 ✔ Container sb-mealie Started 4.3s [+] up 11/11 ✔ Container sb-seerr Started 8.1s ✔ Container sb-jellyfin-media Started 8.1s ✔ Container sb-gluetun Healthy 13.6s ✔ Container sb-bazarr Started 8.2s ✔ Container sb-deunhealth Started 7.7s ✔ Container sb-radarr Started 11.6s ✔ Container sb-sonarr Started 11.7s ✔ Container sb-qbittorrent Started 11.7s ✔ Container sb-prowlarr Started 11.6s ✔ Container sb-sabnzbd Started 11.7s ✔ Container sb-flaresolverr Started 11.6s [+] up 1/1 ✔ Container sb-navidrome Started 2.6s [OK] SparkBox is running! Service URLs: Core Infrastructure: Nginx Proxy Manager: http://10.0.0.206:81 Portainer: http://10.0.0.206:9000 Homepage: http://10.0.0.206:3000 TomSparkBox Dashboard: TomSparkBox Dashboard: http://10.0.0.206:8443 Mealie: Mealie: http://10.0.0.206:9925 Media Center: qBittorrent: http://10.0.0.206:8089 Prowlarr: http://10.0.0.206:8181 Sonarr: http://10.0.0.206:8989 Radarr: http://10.0.0.206:7878 Bazarr: http://10.0.0.206:6767 Jellyfin (media bundle): http://10.0.0.206:8096 Seerr: http://10.0.0.206:5055 Lidarr: http://10.0.0.206:8686 SABnzbd (Usenet): http://10.0.0.206:8186 FlareSolverr: http://10.0.0.206:8191 Byparr: http://10.0.0.206:8191 Notifiarr: http://10.0.0.206:5454 Navidrome: Navidrome: http://10.0.0.206:4533
tomspark wrote:
"Active modules: core dashboard mealie media navidrome" — SparkBox is running but Immich isn't in that list, which means the install didn't get to add it back. Rather than going back through the Dashboard, try this in your terminal with sudo so permissions aren't an issue: sudo sparkbox enable immich && sudo sparkbox up The first part adds Immich back to your config, and the second starts it up — with sudo it can move your photos across from that migrated folder. You should see Immich in the active modules list once it finishes!
Ihavenoidea wrote:
that seemed to work perfectly! Weird that installing from the dashboard wouldn't work. Thanks 😀
tomspark wrote:
Glad it's all back! And you're right to call that out — installing from the dashboard should have just worked. It's a bug on our side: the dashboard doesn't run installs with the same permissions the terminal does, so that photo-moving step failed. It's already logged and being worked on, so future installs from the dashboard should behave. Enjoy Immich!