Unknown col is_active seq 0, in index is_active of table user #5115

Closed
opened 2025-11-02 06:14:55 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @binfalse on GitHub (Mar 25, 2020).

Description

I have a dockerized gitea/gitea:latest with postgres:9.6 as database backend running for quite some time already. However, since the last update of gitea/gitea:latest the gitea service doesn't start properly anymore.

In the log file /data/gitea/log (the log is inside the container -> would be cool if the service would log to the docker daemon..) it looks like a DB upgrade is missing or failed...? It complains about

Error: sync database struct error: Unknown col is_active seq 0, in index is_active of table user, columns []

See gist: https://gist.github.com/binfalse/d83d5853c2a9dc2513e6140241bee524

"Downgrading" to gitea/gitea:1.11.3 solved it for the moment, but would be nice to get that fixed :)

Screenshots

Imagine an nginx 502 Bad Gateway error page :)

Originally created by @binfalse on GitHub (Mar 25, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): gitea/gitea:latest (https://hub.docker.com/r/gitea/gitea) - Git version: packaged in Docker image - Operating system: Debian - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/binfalse/d83d5853c2a9dc2513e6140241bee524 ## Description I have a dockerized `gitea/gitea:latest` with `postgres:9.6` as database backend running for quite some time already. However, since the last update of `gitea/gitea:latest` the gitea service doesn't start properly anymore. In the log file `/data/gitea/log` (the log is inside the container -> would be cool if the service would log to the docker daemon..) it looks like a DB upgrade is missing or failed...? It complains about Error: sync database struct error: Unknown col is_active seq 0, in index is_active of table user, columns [] See gist: https://gist.github.com/binfalse/d83d5853c2a9dc2513e6140241bee524 "Downgrading" to `gitea/gitea:1.11.3` solved it for the moment, but would be nice to get that fixed :) ## Screenshots Imagine an nginx `502 Bad Gateway` error page :)
GiteaMirror added the issue/duplicate label 2025-11-02 06:14:55 -06:00
Author
Owner

@techknowlogick commented on GitHub (Mar 25, 2020):

Closed with #10819

@techknowlogick commented on GitHub (Mar 25, 2020): Closed with #10819
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5115