can not git clone #5128

Closed
opened 2025-11-02 06:15:16 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @LanceAdd on GitHub (Mar 26, 2020).

  • 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

image

...

Screenshots

Originally created by @LanceAdd on GitHub (Mar 26, 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: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description ![image](https://user-images.githubusercontent.com/22969676/77662110-6a842e80-6fb6-11ea-8b5f-654f8b97d1ea.png) ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/needs-feedback label 2025-11-02 06:15:16 -06:00
Author
Owner

@jolheiser commented on GitHub (Mar 26, 2020):

What version of Gitea is this? Can you send us some logs?

@jolheiser commented on GitHub (Mar 26, 2020): What version of Gitea is this? Can you send us some logs?
Author
Owner

@LanceAdd commented on GitHub (Mar 29, 2020):

version:gitea-1.11.3-linux-amd64
sorry,the logs have been delete,but the new problems come,
I have add the ssh keys to the gitea,but i can't git git clone my repository by ssh。https is ok.
if i delete the ssh keys then git clone the public repository, then the same problem come.
you can try my public repository

git clone root@182.92.200.229:lanceadd/webpro.git

image

image
image

@LanceAdd commented on GitHub (Mar 29, 2020): version:gitea-1.11.3-linux-amd64 sorry,the logs have been delete,but the new problems come, I have add the ssh keys to the gitea,but i can't git git clone my repository by ssh。https is ok. if i delete the ssh keys then git clone the public repository, then the same problem come. you can try my public repository ``` git clone root@182.92.200.229:lanceadd/webpro.git ``` ![image](https://user-images.githubusercontent.com/22969676/77842297-3df13200-71c3-11ea-9265-724d03ce6278.png) ![image](https://user-images.githubusercontent.com/22969676/77842220-4eed7380-71c2-11ea-8425-427818ff8484.png) ![image](https://user-images.githubusercontent.com/22969676/77842237-7e9c7b80-71c2-11ea-873d-a6920c6f4af3.png)
Author
Owner

@zeripath commented on GitHub (Mar 29, 2020):

What happens when you ssh root@182.92.200.229? If you get a shell then you have a duplicate key in your authorized_keys. (I don't think that this is the case here but it may also provide further information.)

The invalid character '<' looking for beginning of value suggests to me that when gitea serv tries to connect to your running Gitea server it cannot. Do you have the correct LOCAL_ROOT_URL?

@zeripath commented on GitHub (Mar 29, 2020): What happens when you `ssh root@182.92.200.229`? If you get a shell then you have a duplicate key in your authorized_keys. (I don't think that this is the case here but it may also provide further information.) The `invalid character '<' looking for beginning of value` suggests to me that when `gitea serv` tries to connect to your running Gitea server it cannot. Do you have the correct `LOCAL_ROOT_URL`?
Author
Owner

@LanceAdd commented on GitHub (Mar 29, 2020):

@zeripath @jolheiser
The default configuration is this

 LOCAL_ROOT_URL   = http://localhost:80/

if i change it

LOCAL_ROOT_URL   = http://localhost:3000/

then
image

@LanceAdd commented on GitHub (Mar 29, 2020): @zeripath @jolheiser The default configuration is this ``` LOCAL_ROOT_URL = http://localhost:80/ ``` if i change it ``` LOCAL_ROOT_URL = http://localhost:3000/ ``` then ![image](https://user-images.githubusercontent.com/22969676/77850010-487eec00-7202-11ea-9c38-8cb77ed171f3.png)
Author
Owner

@LanceAdd commented on GitHub (Mar 29, 2020):

@jolheiser @zeripath
i know what happened.
The font I use makes ":" look the same in Chinese and English, but in fact, the ":" of Chinese input method is different from that of English input method. I'm sorry that I did something stupid. Thank you for your help.
You're really great

@LanceAdd commented on GitHub (Mar 29, 2020): @jolheiser @zeripath i know what happened. The font I use makes ":" look the same in Chinese and English, but in fact, the ":" of Chinese input method is different from that of English input method. I'm sorry that I did something stupid. Thank you for your help. You're really great
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5128