Warning when pulling data over ssh. #661

Closed
opened 2025-11-02 03:32:14 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @Lourens-Rich on GitHub (Apr 22, 2017).

Hello again. It`s not a bug (because my repos pulling correctly), but for some peoples to be thinks about it like vice versa.

$ git pull
Enter passphrase for key '/home/user/.ssh/id_rsa': 
remote: Counting objects: 79, done.
remote: Compressing objects: 100% (73/73), done.
Gitea: Internal error
UpdatePublicKey: parse ://0.0.0.0:3000/api/internal/ssh/2/update: missing protocol scheme
remote: Total 79 (delta 44), reused 0 (delta 0)
Unpacking objects: 100% (79/79), done.
Originally created by @Lourens-Rich on GitHub (Apr 22, 2017). - Gitea version: https://github.com/go-gitea/gitea/commit/4bea2191286dd5a9c89696d3e8cd506caf997c7e - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant Hello again. It`s not a bug (because my repos pulling correctly), but for some peoples to be thinks about it like vice versa. ``` $ git pull Enter passphrase for key '/home/user/.ssh/id_rsa': remote: Counting objects: 79, done. remote: Compressing objects: 100% (73/73), done. Gitea: Internal error UpdatePublicKey: parse ://0.0.0.0:3000/api/internal/ssh/2/update: missing protocol scheme remote: Total 79 (delta 44), reused 0 (delta 0) Unpacking objects: 100% (79/79), done. ```
GiteaMirror added the type/question label 2025-11-02 03:32:14 -06:00
Author
Owner

@lunny commented on GitHub (Apr 22, 2017):

It seems you haven't config your LOCAL_URL correctly?

@lunny commented on GitHub (Apr 22, 2017): It seems you haven't config your LOCAL_URL correctly?
Author
Owner

@Lourens-Rich commented on GitHub (Apr 22, 2017):

[server]
DOMAIN                 = r208.tk
ROOT_URL               = https://git.r208.tk/
HTTP_ADDR              = 0.0.0.0
HTTP_PORT              = 3000
; Permission for unix socket
UNIX_SOCKET_PERMISSION = 666
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
; In most cases you do not need to change the default value.
; Alter it only if your SSH server node is not the same as HTTP node.
LOCAL_ROOT_URL         = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
; Disable SSH feature when not available
DISABLE_SSH            = false
; Whether use builtin SSH server or not.
START_SSH_SERVER       = false
; Domain name to be exposed in clone URL
SSH_DOMAIN             = %(DOMAIN)s
; Port number to be exposed in clone URL
SSH_PORT               = 22
; Port number builtin SSH server listens on
SSH_LISTEN_PORT        = %(SSH_PORT)s
; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
SSH_ROOT_PATH          =
; Directory to create temporary files when test publick key using ssh-keygen,
; default is system temporary directory.
SSH_KEY_TEST_PATH      =

May be i miss in this? In last days of March all was good. (Also, my config don't have LOCAL_URL It
only have LOCAL_ROOT_URL

screenshot_2017-04-22_21-09-50

@Lourens-Rich commented on GitHub (Apr 22, 2017): ``` [server] DOMAIN = r208.tk ROOT_URL = https://git.r208.tk/ HTTP_ADDR = 0.0.0.0 HTTP_PORT = 3000 ; Permission for unix socket UNIX_SOCKET_PERMISSION = 666 ; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service. ; In most cases you do not need to change the default value. ; Alter it only if your SSH server node is not the same as HTTP node. LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/ ; Disable SSH feature when not available DISABLE_SSH = false ; Whether use builtin SSH server or not. START_SSH_SERVER = false ; Domain name to be exposed in clone URL SSH_DOMAIN = %(DOMAIN)s ; Port number to be exposed in clone URL SSH_PORT = 22 ; Port number builtin SSH server listens on SSH_LISTEN_PORT = %(SSH_PORT)s ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. SSH_ROOT_PATH = ; Directory to create temporary files when test publick key using ssh-keygen, ; default is system temporary directory. SSH_KEY_TEST_PATH = ``` May be i miss in this? In last days of March all was good. (Also, my config don't have `LOCAL_URL` It only have `LOCAL_ROOT_URL` ![screenshot_2017-04-22_21-09-50](https://cloud.githubusercontent.com/assets/22860367/25306902/0c6c9ed8-27a0-11e7-8e6f-a03076141e7f.png)
Author
Owner

@lunny commented on GitHub (Apr 23, 2017):

My wrong, there is no LOCAL_URL actually. It's strange Protocal has a default value http

LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(string(Protocol) + "://localhost:" + HTTPPort + "/")
@lunny commented on GitHub (Apr 23, 2017): My wrong, there is no LOCAL_URL actually. It's strange `Protocal` has a default value `http` ```Go LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(string(Protocol) + "://localhost:" + HTTPPort + "/") ```
Author
Owner

@lunny commented on GitHub (Apr 23, 2017):

On your config PROTOCOL is not defined. But used in LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/, Add a PROTOCOL config should be OK.

@lunny commented on GitHub (Apr 23, 2017): On your config `PROTOCOL` is not defined. But used in `LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`, Add a `PROTOCOL` config should be OK.
Author
Owner

@Lourens-Rich commented on GitHub (Apr 23, 2017):

PROTOCOL = http was fixed my problem. Thank you, @lunny

@Lourens-Rich commented on GitHub (Apr 23, 2017): `PROTOCOL = http` was fixed my problem. Thank you, @lunny
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#661