-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Immich upgrade always fails with "timed out waiting for the condition" #1687
Comments
Hello, it looks like the pre-upgrade job is failing, (its the job that takes a database backup before upgrade). Reason that I can think of that this could fail is:
But you mention that the db dump was created which makes me super curious. Once the job is started it runs these: charts/library/common/templates/app_functions/_postgres.tpl Lines 120 to 123 in 5896795
Next time you get the error can you please check the logs of that job? If you create a You can create the Debug artifact from System Settings -> Advanced -> Save Debug button on the top right corner. |
Thanks for the response, I'll do it for the 1.83.1 once that is released. Could cou clarify when and where exactly I should run those four commands? In the TrueNAS shell? Within the pgBackup pod? Or somewhere else entirely? 🤔 |
Oh, sorry you don't have to run those! I just referencing what the pre-upgrade job is running. |
Right, I mistook "it runs these" for "run these". My bad. I'll get back to you after the update! Just FYI, my Immich library has about 8k photos, 300 videos and 41 GB, and the uncompressed SQL dump is ~90 MB. It took only a few seconds to create when I did it manually before this update |
Yea, the size and duration you mention is in the ballpark I would expect |
Just updated to v1.84 and this time there was no error, naturally 😅 |
Ah, I see, if you trigger the update while the app is stopped, the backup job cannot complete, because the database is stopped. |
There isn't a clean way to do that. Case 1: Case 2: Case 3: Next SCALE release will include some extra metadata available to the Chart so it should handle upgrade from stopped state better along with this. But this also means that there wont a backup during the upgrade from stopped state, as the job will never fire or will fire but never complete (Need to check this!). But we can probably detect that with the extra metadata and provide a more useful error message, but TL;DR is that its better to upgrade from a running state, so the flow completes as it should.
Well, Apps are just a GUI for generating manifests using Helm, that then get sent to Kubernetes. Regarding the save debug process not completing, I'd suggest opening a ticket in https://jira.ixsystems.com in order to be checked. |
Alright, I was hoping the new SCALE release would also bring some improvements for apps under the hood and not just a UI overhaul, good to hear! |
Sweet, thanks for that! I take it this behavior will be available after refreshing the chart for the next Immich upgrade? If so, I'd go ahead and try it out asap! 😁 |
Not yet, the "code" will be on the app on the next immich App release, but the actual metadata will only exist on the next Cobia release. |
Got it. If I don't forget about it, I'll check back once I upgraded to Cobia! |
I've been running Immich on my Truenas SCALE machine for a few weeks now and in that time updated about 5 times.
Every time, I got the following error:
Full error log:
It seems like the upgrade itself is usually working though, and the version is up to date after refreshing the apps list.
For the upgrade from v1.81.1 to v1.82.1, my installation got corrupted and didn't come back up anymore. Luckily the
pgBackup
pod did create a DB dump, and I was able to re-install and import the old database.I'm running TrueNAS-SCALE-22.12.4.2, and the issue also happend with an older version of Bluefin. The error also happens with two separate fresh installs, so that doesn't seem to be an issue either.
If someone could look into this, I would really appreciate it. Recovering my database wasn't easy because it involved messing around with
kubectl
, so I would be relieved if I didn't have to worry anymore when upgrading to a new version of Immich :)If any additional info is needed, please let me know!
The text was updated successfully, but these errors were encountered: