index "pg_operator_oprname_l_r_n_index" contains unexpected zero #7942

Closed
opened 2026-02-05 13:25:42 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @aamaanaa on GitHub (Nov 27, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

I repulled the docker to update imich, and now the server will not start.

The OS that Immich Server is running on

Raspian OS (Debian)

Version of Immich Server

v2.3.1

Version of Immich Mobile App

v2.3.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Google Pixel 8

Your docker-compose.yml content

mame: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - stack.env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      DB_STORAGE_TYPE: 'HDD'
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always

volumes:
  model-cache:

Your .env content

UPLOAD_LOCATION=/mnt/hdd1tb/immich/uploads
DB_DATA_LOCATION=/mnt/hdd1tb/immich/pg_data
IMMICH_VERSION=v2
DB_PASSWORD=REDACTED
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
TZ=REDACTED

Reproduction steps

  1. Stop docker containers
  2. Pull in new ones
  3. Web server will not start

Relevant log output

Node.js v22.18.0

Initializing Immich v2.3.1

Detected CPU Cores: 4

Missing history for endpoint: Retrieve auth status

(node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time

(Use `node --trace-warnings ...` to show where the warning was created)

node:internal/process/promises:394

    triggerUncaughtException(err, true /* fromPromise */);

    ^

PostgresError: index "pg_operator_oprname_l_r_n_index" contains unexpected zero page at block 6

    at ErrorResponse (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:794:26)

    at handle (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:480:6)

    at Socket.data (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:315:9)

    at Socket.emit (node:events:518:28)

    at addChunk (node:internal/streams/readable:561:12)

    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)

    at Readable.push (node:internal/streams/readable:392:5)

    at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {

  severity_local: 'ERROR',

  severity: 'ERROR',

  code: 'XX002',

  hint: 'Please REINDEX it.',

  file: 'nbtpage.c',

  line: '805',

  routine: '_bt_checkpage'

}

Node.js v22.18.0

Initializing Immich v2.3.1

Detected CPU Cores: 4

Additional information

No response

Originally created by @aamaanaa on GitHub (Nov 27, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug I repulled the docker to update imich, and now the server will not start. ### The OS that Immich Server is running on Raspian OS (Debian) ### Version of Immich Server v2.3.1 ### Version of Immich Mobile App v2.3.1 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model Google Pixel 8 ### Your docker-compose.yml content ```YAML mame: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro env_file: - stack.env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - stack.env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' DB_STORAGE_TYPE: 'HDD' volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb restart: always volumes: model-cache: ``` ### Your .env content ```Shell UPLOAD_LOCATION=/mnt/hdd1tb/immich/uploads DB_DATA_LOCATION=/mnt/hdd1tb/immich/pg_data IMMICH_VERSION=v2 DB_PASSWORD=REDACTED DB_USERNAME=postgres DB_DATABASE_NAME=immich TZ=REDACTED ``` ### Reproduction steps 1. Stop docker containers 2. Pull in new ones 3. Web server will not start ### Relevant log output ```shell Node.js v22.18.0 Initializing Immich v2.3.1 Detected CPU Cores: 4 Missing history for endpoint: Retrieve auth status (node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time (Use `node --trace-warnings ...` to show where the warning was created) node:internal/process/promises:394 triggerUncaughtException(err, true /* fromPromise */); ^ PostgresError: index "pg_operator_oprname_l_r_n_index" contains unexpected zero page at block 6 at ErrorResponse (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:794:26) at handle (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:480:6) at Socket.data (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:315:9) at Socket.emit (node:events:518:28) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Readable.push (node:internal/streams/readable:392:5) at TCP.onStreamRead (node:internal/stream_base_commons:189:23) { severity_local: 'ERROR', severity: 'ERROR', code: 'XX002', hint: 'Please REINDEX it.', file: 'nbtpage.c', line: '805', routine: '_bt_checkpage' } Node.js v22.18.0 Initializing Immich v2.3.1 Detected CPU Cores: 4 ``` ### Additional information _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Nov 27, 2025):

This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.

@github-actions[bot] commented on GitHub (Nov 27, 2025): This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.
Author
Owner

@aamaanaa commented on GitHub (Nov 27, 2025):

I can not find any issues about this. can u point me where it is? i do not think this is a duplicate

it would be nice to know what is the duplicate?

@aamaanaa commented on GitHub (Nov 27, 2025): I can not find any issues about this. can u point me where it is? i do not think this is a duplicate it would be nice to know what is the duplicate?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7942