phabalicious icon indicating copy to clipboard operation
phabalicious copied to clipboard

'error: unexpected EOF' when doing 'get:files-dump'

Open joachim-n opened this issue 4 years ago • 4 comments

I did:

phab -cmain-live get:files-dump

This was the output:

tar: Removing leading `/' from member names
error: unexpected EOF


 [ERROR] [3092cb] error: unexpected EOF



tar: Removing leading `/' from member names

Copied dumps to:
================

 * main-live.private.20210901120948.tgz

I actually got two files created:

-rw-r--r--   1 joachim  staff       39983  1 Sep 12:39 main-live.private.20210901120948.tgz
-rw-r--r--   1 joachim  staff  7625661952  1 Sep 12:38 main-live.public.20210901110905.tgz

joachim-n avatar Sep 01 '21 13:09 joachim-n

It turns out that the main-live.public.20210901110905.tgz file is broken.

joachim-n avatar Sep 01 '21 13:09 joachim-n

check your kubectl version. This seems like a bug in newer versions. Try downgrading to kubectl 1.19.

kubernetes/kubernetes#60140

stmh avatar Sep 01 '21 13:09 stmh

This is exactly the error I've had in pipelines but what I've been unable to reproduce locally.

But that version thing does not add up, my local kubectl is 1.22 and gitlab-runner has 1.19

mikran avatar Sep 28 '21 07:09 mikran

there's a new feature flag in the 3.8 branch for using rsync internally instead of kubectl cp. As rsync needs to be available in the target pod this is an optional feature which can be enabled by

host:
  name:
    kube:
      useRsync: true

stmh avatar Dec 17 '21 14:12 stmh