UpdatePublicKey: unsupported protocol scheme "unix" when pushing via ssh #929

Closed
opened 2025-11-02 03:42:02 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @silverwind on GitHub (Jul 30, 2017).

  • Gitea version (or commit ref): 49df677c47
  • Git version: 2.13.3
  • Operating system: Linux 4.9.36

Description

When the web server of gitea is configured to listen on a unix socket, users are unable to push changes via git ssh because the remote rejects with this error:

...
Writing objects: 100% (6/6), 2.13 KiB | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
Gitea: Internal error
UpdatePublicKey: Post unix:///tmp/gitea:3000/api/internal/ssh/12/update: unsupported protocol scheme "unix"
...
 ! [remote rejected] master -> master (pre-receive hook declined)

Note that there are two issues there:

  • :3000 should obviously be not there on a unix socket
  • The actual Post error. I think this is because Macaron does not support this scheme.

My server configuration:

[server]
PROTOCOL = unix
HTTP_ADDR = /tmp/gitea
HTTP_PORT =
Originally created by @silverwind on GitHub (Jul 30, 2017). - Gitea version (or commit ref): https://github.com/go-gitea/gitea/commit/49df677c475d6a20575b99b5af8323f65937dadb - Git version: 2.13.3 - Operating system: Linux 4.9.36 ## Description When the web server of gitea is configured to listen on a unix socket, users are unable to push changes via git ssh because the remote rejects with this error: ```` ... Writing objects: 100% (6/6), 2.13 KiB | 0 bytes/s, done. Total 6 (delta 3), reused 0 (delta 0) Gitea: Internal error UpdatePublicKey: Post unix:///tmp/gitea:3000/api/internal/ssh/12/update: unsupported protocol scheme "unix" ... ! [remote rejected] master -> master (pre-receive hook declined) ```` Note that there are two issues there: - `:3000` should obviously be not there on a unix socket - The actual `Post` error. I think this is because Macaron does not support this scheme. My `server` configuration: ````ini [server] PROTOCOL = unix HTTP_ADDR = /tmp/gitea HTTP_PORT = ````
GiteaMirror added the type/bug label 2025-11-02 03:42:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#929