Failed to add ssh key into repo #1353

Closed
opened 2025-11-02 03:57:35 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @CircleCurve on GitHub (Dec 13, 2017).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • 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:

Description

I have created a git repo and try to adopt ssh key for authentication. After added ssh key into Deploy keys, it redirect to the error page that only contain

template: repo/settings/deploy_keys:34:65: executing "repo/settings/deploy_keys" at <.CreatedUnix.FormatS...>: can't evaluate field FormatShort in type int64

This issue appear both my local docker environment (latest) and https://try.gitea.io
...

Screenshots

screen shot 2017-12-13 at 4 56 05 pm

screen shot 2017-12-13 at 4 56 52 pm

screen shot 2017-12-13 at 4 57 07 pm

Originally created by @CircleCurve on GitHub (Dec 13, 2017). <!-- 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): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description I have created a git repo and try to adopt ssh key for authentication. After added ssh key into Deploy keys, it redirect to the error page that only contain template: repo/settings/deploy_keys:34:65: executing "repo/settings/deploy_keys" at <.CreatedUnix.FormatS...>: can't evaluate field FormatShort in type int64 This issue appear both my local docker environment (latest) and https://try.gitea.io ... ## Screenshots ![screen shot 2017-12-13 at 4 56 05 pm](https://user-images.githubusercontent.com/8490834/33930108-cf389482-e026-11e7-9760-0968934b751e.png) ![screen shot 2017-12-13 at 4 56 52 pm](https://user-images.githubusercontent.com/8490834/33930156-ec37fd20-e026-11e7-9d5b-4dca3b46bfe9.png) ![screen shot 2017-12-13 at 4 57 07 pm](https://user-images.githubusercontent.com/8490834/33930164-f2d4cffa-e026-11e7-85b8-5a9d55194b18.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 03:57:35 -06:00
Author
Owner

@lafriks commented on GitHub (Dec 13, 2017):

What version are you using?

@lafriks commented on GitHub (Dec 13, 2017): What version are you using?
Author
Owner

@lafriks commented on GitHub (Dec 13, 2017):

seems to be also related to #3142

@lafriks commented on GitHub (Dec 13, 2017): seems to be also related to #3142
Author
Owner

@lunny commented on GitHub (Dec 13, 2017):

should be fixed by #3146.

@lunny commented on GitHub (Dec 13, 2017): should be fixed by #3146.
Author
Owner

@CircleCurve commented on GitHub (Dec 13, 2017):

I'm using the most latest version of gitea in docker
default

@CircleCurve commented on GitHub (Dec 13, 2017): I'm using the most latest version of gitea in docker ![default](https://user-images.githubusercontent.com/8490834/33931779-08bf9b6a-e02c-11e7-9c0d-eacfc38d3230.png)
Author
Owner

@lunny commented on GitHub (Dec 13, 2017):

@CircleCurve #3146 has not been reviewed and merged.

@lunny commented on GitHub (Dec 13, 2017): @CircleCurve #3146 has not been reviewed and merged.
Author
Owner

@CircleCurve commented on GitHub (Dec 13, 2017):

@lunny Ok. Thanks you to solve my problem. I will go to use http instead of ssh at this time for development.

@CircleCurve commented on GitHub (Dec 13, 2017): @lunny Ok. Thanks you to solve my problem. I will go to use http instead of ssh at this time for development.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1353