远程获取gitfs时捕获到异常-找不到对象

时间:2018-09-27 22:35:59

标签: salt-stack gitfs

此设置已正常运行了几个月。

/etc/salt/master

ext_pillar:
  - git:
    - master ssh://git@example.org:7999/example.git:
      - root: pillar
      - pubkey: /etc/salt/salt-git.pub
      - privkey: /etc/salt/salt-git

我不确定可能有什么更新(据我所知,推送了新的提交,但是回购仍然很健康),salt.utils.gitfs冒出错误并且无法到达任何地方:

2018-09-27 21:30:04,794 [salt.utils.gitfs :2321][ERROR   ][5298] Exception caught while fetching gitfs remote 'ssh://git@example.org:7999/example.git': 'Object not found - no match for id (6b908f047f7226236720f301186c2575ed4afa0)'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/salt/utils/gitfs.py", line 2309, in fetch_remotes
    if repo.fetch():
  File "/usr/lib/python3/dist-packages/salt/utils/gitfs.py", line 747, in fetch
    return self._fetch()
  File "/usr/lib/python3/dist-packages/salt/utils/gitfs.py", line 1692, in _fetch
    fetch_results = origin.fetch(**fetch_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/pygit2/remote.py", line 378, in fetch
    check_error(err)
  File "/usr/local/lib/python3.5/dist-packages/pygit2/errors.py", line 55, in check_error
    raise KeyError(message)
KeyError: 'Object not found - no match for id (6b908f047f7226236720f301186c2575ed4afa0)'

我不知道从哪里开始。

抓紧时间,那个id的确是HEAD,并且很好。...

这是在树莓派上,...

ii  git                             1:2.11.0-3+deb9u3            armhf        fast, scalable, distributed revision control system
ii  libgit2-24:armhf                0.24.1-2                     armhf        low-level Git library
ii  libgit2-dev:armhf               0.24.1-2                     armhf        low-level Git library (development files)
ii  python3-git                     2.1.1-2                      all          Python library to interact with Git repositories - Python 3.x
ii  python3-gitdb                   2.0.0-2                      armhf        pure-Python git object database (Python 3)
ii  python3-pygit2                  0.24.2-2                     armhf        bindings for libgit2 - Python 3.x

0 个答案:

没有答案