Skip to content

Update 2.8.0 can't start and fails at db update with Postgres #896

@Billos

Description

@Billos

Can the issue be reproduced with the latest available release? (y/n)
Yes

Which one is the environment gotify server is running in?

  • Docker
  • Linux machine
  • Windows machine
Docker startup command or config file here (please mask sensitive information)
services:
  gotify:
    image: gotify/server:2.8.0
    env_file:
      - stack.env
    environment:
      - TZ=Europe/Paris
    volumes:
      - type: volume
        source: crucible
        target: /app/data
        volume:
          subpath: gotify

Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)

  • None
  • Nginx
  • Apache
  • Caddy
Reverse proxy configuration (please mask sensitive information)
proxy_read_timeout 1800;
proxy_send_timeout 1800;

On which client do you experience problems? (Select as many as you can see)

  • WebUI
  • gotify-cli
  • Android Client
  • Server

What did you do?
Updated from 2.7.2 to 2.8.0

What did you expect to see?

What did you see instead? (Include screenshots, android logcat/request dumps if possible)

Starting Gotify version 2.8.0@2026-01-02-12:02:25

2026/01/02 20:08:46  ERROR: constraint "uni_users_name" of relation "users" does not exist (SQLSTATE 42704)

[0.517ms] [rows:0] ALTER TABLE "users" DROP CONSTRAINT "uni_users_name"

panic: ERROR: constraint "uni_users_name" of relation "users" does not exist (SQLSTATE 42704)

goroutine 1 [running]:

main.main()

	/src/gotify/app.go:44 +0x33f

I tried manually creating the constraint, it is correctly removed by Gotify, but then nothing starts and it keeps trying to remove the constraint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions