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:
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
it's kubernetesYour .env content
N/AReproduction steps
- Create a new env with a blank database
- Follow the restore prompts
- Error. See screenshot above ...
Relevant log output
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
Source: immich-app/immich