Skip to content

git-receive-pack error #17

Description

@ceremcem

I have a dedicated git repo backed by GOGS, which is served behind Nginx proxy and has an url like https://example.com/git, so the repo bar under user foo is named as https://example.com/git/foo/bar.

My git-cache-http-server setup works correctly for Github but not for my dedicated server. What is git-receive-pack error? How can I workaround this?

The error I've got from the failing git repo is like so:

fatal: unable to access 'http://gitcache:8080/example/git/foo/bar.git/': The requested URL returned error: 500

Systemctl status is as follows:

$ sudo systemctl status git-cache-http-server
● git-cache-http-server.service - Caching git http server
   Loaded: loaded (/etc/systemd/system/git-cache-http-server.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-06-12 02:36:16 +03; 12min ago
 Main PID: 21734 (node)
    Tasks: 6 (limit: 4915)
   Memory: 15.4M
   CGroup: /system.slice/git-cache-http-server.service
           └─21734 node /usr/local/bin/git-cache-http-server

Jun 12 02:36:19 cca-erik env[21734]: Called from module at parserOnIncoming (_http_server.js:601:12)
Jun 12 02:36:19 cca-erik env[21734]: Called from module at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
Jun 12 02:36:21 cca-erik env[21734]: GET /example.com/git/foo/bar.git/info/refs?service=git-receive-pack
Jun 12 02:36:21 cca-erik env[21734]: ERROR: Service git-receive-pack not supported yet
Jun 12 02:36:21 cca-erik env[21734]: Called from module Error: Service git-receive-pack not supported yet
Jun 12 02:36:21 cca-erik env[21734]: Called from module at Server.Main.handleRequest (/usr/local/lib/node_modules/git-cache-http-server/bin/git-cache-http-server.js:125:
Jun 12 02:36:21 cca-erik env[21734]: Called from module at emitTwo (events.js:125:13)
Jun 12 02:36:21 cca-erik env[21734]: Called from module at Server.emit (events.js:213:7)
Jun 12 02:36:21 cca-erik env[21734]: Called from module at parserOnIncoming (_http_server.js:601:12)
Jun 12 02:36:21 cca-erik env[21734]: Called from module at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions