HTTP 500 Error After Container Restart – Missing isVisible Column in assets Table
Hello, I'm encountering a critical issue after restarting my Immich deployment in a Kubernetes cluster. Here's a detailed description of the problem:
Environment: Immich deployed on Kubernetes, split by immich-server, immich-database, immich-ml and immich-redis pods.
Version of Immich (after problem occurred)
Problem: After restarting the Immich container, the web interface loads but many operations fail with HTTP 500 errors.
Logs: The server logs repeatedly show the following error:
Investigation
Is there a known migration path that should add this column?
Is there a recommended way to restore the database schema when deploying on Kubernetes?
Could this be related to a missing or failed migration step after an upgrade?
Any guidance would be greatly appreciated. Thank you!
Environment: Immich deployed on Kubernetes, split by immich-server, immich-database, immich-ml and immich-redis pods.
Version of Immich (after problem occurred)
Problem: After restarting the Immich container, the web interface loads but many operations fail with HTTP 500 errors.
Logs: The server logs repeatedly show the following error:
Investigation
- I connected to the associated PostgreSQL container.
- Checked the assets table and confirmed that the isVisible column does not exist.
- I have a backup of the database (a file) taken when Immich was functioning correctly.
- The SQL file contains the isVisible column in the assets table definition.
- I executed the SQL file to restore the database, but it seems the schema was not correctly updated—the isVisible column is still missing after the restoration.
Is there a known migration path that should add this column?
Is there a recommended way to restore the database schema when deploying on Kubernetes?
Could this be related to a missing or failed migration step after an upgrade?
Any guidance would be greatly appreciated. Thank you!