Issue with :latest docker image with MSSQL database. #5833

Closed
opened 2025-11-02 06:37:27 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @onemustpersist on GitHub (Aug 6, 2020).

Description

Fails to start after upgrade. There is a database roll out issue. Using specific 1.12.3 allows git to start, but UI fails due to incorrect SQL query:

2020/08/06 06:59:39 routers/user/home.go:60:getDashboardContextUser() [E] GetOrganizations: mssql: Column 'user.keep_activity_private' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

Screenshots

Not applicable

Originally created by @onemustpersist on GitHub (Aug 6, 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): - Git version: Docker Latest (d523f424804cf80b3be0c0244241da7cc5ac82023c5daa04bd46a0cb38718e12) - Operating system: Linux/Docker - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ X] 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/onemustpersist/6e8a0c5735c8c9386bd391c97b8968b9 ## Description Fails to start after upgrade. There is a database roll out issue. Using specific 1.12.3 allows git to start, but UI fails due to incorrect SQL query: > 2020/08/06 06:59:39 routers/user/home.go:60:getDashboardContextUser() [E] GetOrganizations: mssql: Column 'user.keep_activity_private' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. ## Screenshots Not applicable
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5833