Title: Occasional "fatal: unable to connect to localhost" on CI · Issue #1676 · gitpython-developers/GitPython · GitHub
Open Graph Title: Occasional "fatal: unable to connect to localhost" on CI · Issue #1676 · gitpython-developers/GitPython
X Title: Occasional "fatal: unable to connect to localhost" on CI · Issue #1676 · gitpython-developers/GitPython
Description: From time to time I get an error like this on CI: FAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git ls-remote daemon_origin stderr: 'fatal...
Open Graph Description: From time to time I get an error like this on CI: FAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: gi...
X Description: From time to time I get an error like this on CI: FAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmd...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1676
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Occasional \"fatal: unable to connect to localhost\" on CI","articleBody":"From time to time I get [an error like this](https://github.com/gitpython-developers/GitPython/actions/runs/6260962625/job/17000043153#step:10:918) on CI:\r\n\r\n```text\r\nFAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)\r\n cmdline: git ls-remote daemon_origin\r\n stderr: 'fatal: unable to connect to localhost:\r\nlocalhost[0: ::1]: errno=Connection refused\r\nlocalhost[1: 127.0.0.1]: errno=Connection refused\r\n'\r\n```\r\n\r\nI'm not sure why this happens, but I see it every few days or so, on days I'm pushing lots of commits (more precisely: on days I run `git push` many times, since CI is only running on the tip of the pushed branch). It happens both in my fork, in PRs here on this upstream repository (as in #1675 detailed above), and in pushes to this upstream repository (as in d1c1f31). Rerunning the CI check gets rid of it; that is, it doesn't recur. I don't think I've had this locally, but I don't run the tests locally as much as on CI.\r\n\r\nSearching reveals that something like this, perhaps the exact thing, happened in #1119, so this [may be known](https://github.com/gitpython-developers/GitPython/pull/1119#issuecomment-774020766). I'm not sure if its known still to be occasionally occurring, or if there is anything that can reasonably be done to make it happen even less often or not at all. (If it's not worth having an issue on this, then I don't mind this simply being closed.)","author":{"url":"https://github.com/EliahKagan","@type":"Person","name":"EliahKagan"},"datePublished":"2023-09-21T11:45:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1676/GitPython/issues/1676"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:698fc03c-bf27-1d2c-486d-4865bca2c69f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC72:249AF:8C85C:BB810:696867CF |
| html-safe-nonce | db8f3ce66334cc9095a9d8a7d2b2448446a83c8758c0f5ca006e83c7a6e9d7ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzcyOjI0OUFGOjhDODVDOkJCODEwOjY5Njg2N0NGIiwidmlzaXRvcl9pZCI6IjY3NjE3ODg3OTUwODc1MTM1NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2f1d83117f5941ae889621f54fdfe1ff5033d7e0743b258f6ca041121f4c26e3 |
| hovercard-subject-tag | issue:1906782685 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/1676/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59879c8b7fd04018b20b803f58eaf195e7eab31b0e0b2777c15287689b85c9b0/gitpython-developers/GitPython/issues/1676 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59879c8b7fd04018b20b803f58eaf195e7eab31b0e0b2777c15287689b85c9b0/gitpython-developers/GitPython/issues/1676 |
| og:image:alt | From time to time I get an error like this on CI: FAILED test/test_base.py::TestBase::test_with_rw_remote_and_rw_repo - git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: gi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EliahKagan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 50f46dc2d6192249fd8ebf20e76c800f4f2596d4a5f3ab63dd63a754df154f54 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef287f17234b4529a4b112a3d47fe8551e32ddd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width