#failed to upgrade to 1.136.0; Postgres error of missing constraint in table asset_exif

1 messages · Page 1 of 1 (latest)

uncut ridge
#

I upgraded to v1.137.0; the immich-server port 2283 is not open (connection refused)

Running on Linux on QNAP NAS Linux spinningrust 5.10.60-qnap #1 SMP Mon May 26 02:14:19 CST 2025 x86_64 GNU/Linux

Firewall and port forwarding for port 2283 is configured.

I think the version I was upgrading from was 1.136.0 (or some other very recent version), but I'm not sure.

The postgres error in the logs is PostgresError: right sibling's left-link doesn't match: block 5 links to 1 instead of expected 6 in index "asset_fileCreatedAt_idx".

Please help me get my server running again. Thanks.

bright bearBOT
#

:wave: Hey @uncut ridge,

Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich immich.

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :blue_square: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: uploaded the relevant information (see below).
  7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

uncut ridge
#

port 2283 is not open after upgrading to 1.137.0; Postgres error in asset_fileCreatedAt_idx

#

docker ps -a

$ docker ps -a
CONTAINER ID   IMAGE                                                COMMAND                  CREATED          STATUS                            PORTS                    NAMES
ccb9b60519c5   ghcr.io/immich-app/immich-server:release             "tini -- /bin/bash -…"   26 minutes ago   Up 6 seconds (health: starting)   0.0.0.0:2283->2283/tcp   immich_server
72bec1cdab44   ghcr.io/immich-app/immich-machine-learning:release   "tini -- python -m i…"   26 minutes ago   Up 26 minutes (healthy)                                    immich_machine_learning
a5aec165f101   redis:6.2-alpine                                     "docker-entrypoint.s…"   26 minutes ago   Up 26 minutes (healthy)           6379/tcp                 immich_redis
ab99bd8a1d52   tensorchord/pgvecto-rs:pg14-v0.2.0                   "docker-entrypoint.s…"   26 minutes ago   Up 26 minutes (healthy)           5432/tcp                 immich_postgres
dense kindle
#

Your postgres is corrupted, please share the full logs

devout forge
#

You'll probably need to restore a backup

uncut ridge
uncut ridge
#

I worked through Immich's automatic db backups, one per day from 2025-07-22 to 2025-08-04, involving versions v1.135.3, v1.136.0, v1.137.1, and v1.137.3. I tried several and finally got the latest v1.135.3 backup to work with immich server v1.135.3.

#

What's the proper way to get back up to the latest server release?

uncut ridge
bright bearBOT
uncut ridge
#

failed to upgrade to 1.136.0; Postgres error of missing constraint in table asset_exif

mighty coral
#

I think you can run those 4 statements on the SQL file and then try again.

dense kindle