Page MenuHomePhabricator

fatal: fetch-pack: invalid index-pack output on git fetch for mediawiki/core
Closed, DuplicatePublic

Description

When I try to do git fetch && git checkout -B master origin/master && git rebase for mediawiki/core, I'm facing frequently this error:

fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
Connection to gerrit.wikimedia.org closed by remote host.
fatal: fetch-pack: invalid index-pack output

Full output:

C:\Users\zoran\Desktop\development\mediawiki-core>git fetch && git checkout -B master origin/master && git rebase
remote: Counting objects: 21924, done
remote: Finding sources: 100% (802/802)
remote: Getting sizes: 100% (364/364)
remote: Compressing objects: 100% (3427119/3427119)
fetch-pack: unexpected disconnect while reading sideband packet
Connection to gerrit.wikimedia.org closed by remote host.
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

I asked on IRC (#wikimedia-operations), but I didn't get any response, so I'm creating task.

Event Timeline

My internet connection is good, support of ISP told me "as you are trying to use Wikimedia Foundation's service, report your problem to their staff, there is nothing wrong on our end".

Kizule changed the subtype of this task from "Bug Report" to "Task".Jan 11 2022, 12:38 PM
Aklapper renamed this task from fatal: fetch-pack: invalid index-pack output on git fetch for mediawki/core to fatal: fetch-pack: invalid index-pack output on git fetch for mediawiki/core.Jan 11 2022, 1:08 PM

git fsck shows nothing:

C:\Users\zoran\Desktop\development\mediawiki-core>git fsck
Checking object directories: 100% (256/256), done.
Checking objects: 100% (969617/969617), done.
Checking connectivity: 965858, done.

Okay, I've cloned fresh copy of mediawiki/core and there weren't errors on git clone.

I did git fetch && git checkout -B master origin/master && git rebase again, and I had this issue again.

After three tries, it worked.

As far as I can tell the fetch has been done over ssh and I see plenty of them on the server side in /var/log/gerrit/sshd_log.2022-01-11.gz. There are errors as well which bubble in Logstash and the errors are all the same:

logger: org.apache.sshd.common.session.helpers.SessionHelper
message:

exceptionCaught(ServerSessionImpl[zoranzoki21@/x.x.x.x:yyyy])[state=Opened]
SshChannelNotFoundException: Received SSH_MSG_CHANNEL_WINDOW_ADJUST on unassigned channel 0 (last assigned=null)

Which comes from the sshd-SshDaemon thread. That is thus the same error as T263293 for which there is no solution or repro (yet?)