git clone over ssh, gitea log says user does not exist. #7368

Closed
opened 2025-11-02 07:24:09 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @gabevenberg on GitHub (May 21, 2021).

  • 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
  • Log gist:

on server side (journalctl /usr/bin/local/gitea)

May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 Started GET /api/internal/serv/command/1/git:gabe/resume?mode=1&verb=git-upload-pack for [::1]:47464
May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 ...ters/private/serv.go:108:ServCommand() [E] Unable to get repository owner: git:gabe/resume Error: user does not exist [uid: 0, name
May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 Completed GET /api/internal/serv/command/1/git:gabe/resume?mode=1&verb=git-upload-pack 500 Internal Server Error in 1.815752ms

client side (git clone ssh://git@venberg.xyz/git:Gabe/lidarutils.git)

Cloning into 'lidarutils'...
Gitea: Internal Server Error
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Description

...

Screenshots

Originally created by @gabevenberg on GitHub (May 21, 2021). <!-- 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. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. 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: <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> on server side (journalctl /usr/bin/local/gitea) ``` May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 Started GET /api/internal/serv/command/1/git:gabe/resume?mode=1&verb=git-upload-pack for [::1]:47464 May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 ...ters/private/serv.go:108:ServCommand() [E] Unable to get repository owner: git:gabe/resume Error: user does not exist [uid: 0, name May 21 19:53:00 gittea gitea[6005]: 2021/05/21 19:53:00 Completed GET /api/internal/serv/command/1/git:gabe/resume?mode=1&verb=git-upload-pack 500 Internal Server Error in 1.815752ms ``` client side (git clone ssh://git@venberg.xyz/git:Gabe/lidarutils.git) ``` Cloning into 'lidarutils'... Gitea: Internal Server Error fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/needs-feedback label 2025-11-02 07:24:09 -06:00
Author
Owner

@lunny commented on GitHub (May 24, 2021):

Your git clone format is wrong. it should be ssh://git@venberg.xyz/Gabe/lidarutils.git or git@venberg.xyz:Gabe/lidarutils.git

@lunny commented on GitHub (May 24, 2021): Your git clone format is wrong. it should be `ssh://git@venberg.xyz/Gabe/lidarutils.git` or `git@venberg.xyz:Gabe/lidarutils.git`
Author
Owner

@gabevenberg commented on GitHub (May 24, 2021):

Ahh, I see it. just a PEBKAC issue. (Problem Exists Between Keyboard And Chair). I thought that since my http adress was under a sublocation behind a reverse proxy, the /git was needed for ssh as well.

@gabevenberg commented on GitHub (May 24, 2021): Ahh, I see it. just a PEBKAC issue. (Problem Exists Between Keyboard And Chair). I thought that since my http adress was under a sublocation behind a reverse proxy, the /git was needed for ssh as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7368