Ubuntu 5.19.0-50-generic issue lost stack?
First post here...In full transparency, I'm a cook not a chef, when it comes to following code instructions. So been running PhotoPrism for ~1.5yrs, and spun up Immich in a Portainer stack. Was running great for the last two weeks and really loving Immich. Today I had some routine "security updates" in Ubuntu 22.04. Upon reboot a kernal panic came up and after much reading, determined that a grub problem ensued, and had to get to a recovery mode and run...
I say this as now the fun begins. Everything booted up fine, except now...my Immich Portainer stack is gone. Just gone! I'm looking for other files right now, but the container and stack are nowhere to be found. I am losing my mind here. It's not that I can't spin up another stack, it's that I can't trust it, if I can't figure out what happened. I'm perfectly content if I did something wrong in my setup, but I followed the https://immich.app/docs/install/portainer to the letter. Any ideas on where to start?
Portainer | Immich
Install Immich using Portainer's Stack feature.
10 Replies
Are you running any other stacks on portainer? Are they still there?
yes, about 9 other stacks, 12 containers. PhotoPrism, SeaDrive, TasmoBackup, pi-hole, etc...everything except Immich is still there
I'm reading now to learn how to determine if the stack is really still there, but Portainer doesn't recognize it. Some other mentions about using the docker API to find it. Still reading
Something about setting the status of the stack to 1, so it shows up in the GUI.
I'm truly lost, but trying to figure it out
Are the containers running still though? Or are the containers gone and there's no reference to it in portainer?
Did you have a mount of the portainer data? It should have a file for the stack configuration (compose file) in the volume mount.
All containers (except Immich) are running. I found a reference to recreate the stack in the GUI...
Unfortunately, the Immich container does not show up
Not sure I'm tracking on the "mount of the portainer data" reference?
As I look at volumes section, there is a volume referencing powerpanel. I think I had something spun up there as well, but don't remember what it was (maybe a battery ups tool perhaps).
There is no volume info for Immich
I'm in the process of reloading the stack now and will watch it.
Are you running portainer as a docker container? Did you create a volume mount for the portainer data directory?
Yes, I'm running portainer as a docker container. So I have been in "testing" mode on Immich, and didn't do much documentation. I remember creating a volume, so I could evaluate the file structure. I know because I was questioning the storing by date vs category, but realized it wasn't that critical. Loaded about 2,000 photos from my phone, and now I can't find them, though I don't remember exactly where I placed them. Luckily, they were duplicates during this testing phase.
I was just saying that portainer, when installed via docker, uses a volume itself, which includes the original compose files and stack.env.


You should have a compose folder for the immich stack and a stack.env, which should include the settings you were running immich with, including where the upload location is.
You're absolutely right, but I have spent hours looking for any Immich reference. to no avail. I accidentally deleted the logs off my iphone when I reloaded it. I uploaded over 2200 photos from my iPhone and they are simply...gone. The photos are on my iPhone. I re-spun up a new Immich instance last night and I specifically placed it in an obvious location within Pictures folder. I'll keep watch, but don't know what happened. The only explanation that seems plausible, is that when I reverted to an earlier instance of linux via recovery mode, that it somehow reverted to an older file structure. I know real experts will say I'm crazy, but I was uploading photos for weeks. Thanks for now, but I will watch it more intently to determine longevity.
OK sounds good. 👍