UpdatePublicKey: Multiple Assignment to "update_unix" #1064

Closed
opened 2025-11-02 03:46:58 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @programmeroftheeve on GitHub (Sep 14, 2017).

Originally assigned to: @lunny on GitHub.

  • Gitea version (or commit ref): 005900b
  • Git version: builtin
  • Operating system: docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
bash % git push test master
Gitea: Internal error
UpdatePublicKey: Failed to update public key: pq: multiple assignments to same column "updated_unix"
error: failed to push some refs to 'ssh://git@localhost:2222/tbradt/buildbot_travis.git'

Description

Pushing with SSH with a postgres backend is causing an error. The code pushes just fine to the repo. I did a search to figure out which commit broke things, and it was 005900b.

Originally created by @programmeroftheeve on GitHub (Sep 14, 2017). Originally assigned to: @lunny on GitHub. <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) 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): 005900b - Git version: builtin - Operating system: docker - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ``` bash % git push test master Gitea: Internal error UpdatePublicKey: Failed to update public key: pq: multiple assignments to same column "updated_unix" error: failed to push some refs to 'ssh://git@localhost:2222/tbradt/buildbot_travis.git' ``` ## Description Pushing with SSH with a postgres backend is causing an error. The code pushes just fine to the repo. I did a search to figure out which commit broke things, and it was 005900b.
GiteaMirror added the type/bug label 2025-11-02 03:46:58 -06:00
Author
Owner

@lafriks commented on GitHub (Sep 14, 2017):

@lunny can you please look at this?

@lafriks commented on GitHub (Sep 14, 2017): @lunny can you please look at this?
Author
Owner

@lunny commented on GitHub (Sep 15, 2017):

@lafriks maybe we still need your help with the vendor/vendor.json

@lunny commented on GitHub (Sep 15, 2017): @lafriks maybe we still need your help with the `vendor/vendor.json`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1064