#31862·immich

Restore process breaks if username contains a dash

Author: justin8Created Sep 28, 2026Updated Sep 28, 2026

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

  • Yes

The bug

When using the restore feature on the getting started page, everything seemed to be going well up until choosing the latest backup and pressing restore, where it gave this error:

Image

I believe it's the dash in the username due to the lack of quotes around it.

The OS that Immich Server is running on

Talos Linux v1.14.1

Version of Immich Server

v3.1.0

Version of Immich Mobile App

v3.1.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

yaml
it's kubernetes

Your .env content

bash
N/A

Reproduction steps

  1. Create a new env with a blank database
  2. Follow the restore prompts
  3. Error. See screenshot above ...

Relevant log output

bash
Error: /usr/lib/postgresql/17/bin/psql non-zero exit code (3)
and 1 other object (see server log for list)
ERROR:  syntax error at or near "-"
LINE 1: ALTER SCHEMA vectors OWNER TO immich-database_user;

Additional information

No response