Skip to content

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

Closed
@silverwind

Description

@silverwind
  • Gitea version (or commit ref): 49df677
  • 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 =

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions