skaffold sync(in dev mode) failing with exit code 2

428 views
Skip to first unread message

Prashant Arya

unread,
Apr 11, 2019, 8:14:25 AM4/11/19
to skaffold-users
Hi, 
I am running skaffold in dev mode with sync option enabled, here is my skaffold file.
I am running a simple hello world application. App is getting deployed successfully but sync is failing with following error :-



time
="2019-04-11T10:26:34Z" level=info msg="Copying files: map[app.py:/app.py] to someurl.com/docker-sandbox/kube/pythonserver:8ea12bf@sha256:9444b85

time="
2019-04-11T10:26:34Z" level=debug msg="Running command: [kubectl exec simplehttp-6bffcd784c-dt8xq --namespace prashant -c simplehttp -i -- tar xmf - --no-same-owner]"
time="
2019-04-11T10:26:36Z" level=warning msg="Skipping deploy due to sync error: copying files: exit status 2"


skaffold.yaml

apiVersion: skaffold/v1beta6
kind
: Config
build
:
 artifacts
:
 
- image: someurl.com/kube/pythonserver
 context
: .
 sync
:
 
'*.py': .
 kaniko
:
 buildContext
:
 localDir
: {}
 
namespace: prashant
 image
: someurl.com/gkp/kaniko-executor:latest dockerConfig:
 path
: C:\Users\prashant\.docker\config.json
deploy
:
 kubectl
:
 manifests
:
 
- deploy.yml


Brian de Alwis

unread,
Apr 11, 2019, 9:29:13 AM4/11/19
to skaffold-users
Hi Prashant.

> time="2019-04-11T10:26:34Z" level=debug msg="Running command: [kubectl exec simplehttp-6bffcd784c-dt8xq --namespace prashant -c simplehttp --- tar xmf - --no-same-owner]"

Does your image have `tar`?

Brian.

Bálint Pató

unread,
Apr 11, 2019, 9:31:09 AM4/11/19
to Prashant Arya, skaffold-users
Hi Prashant, 

do you mind opening a GitHub issue with this error? Please also give some more information for debugging: OS, skaffold version you are using, the directory structure of your app and the Dockerfile your using (it might be that the 'tar' command is missing from your container that sync is using?). 

Thank you for using Skaffold!

Balint

--
You received this message because you are subscribed to the Google Groups "skaffold-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skaffold-user...@googlegroups.com.
To post to this group, send email to skaffol...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skaffold-users/d5f74351-954e-4485-be48-c1954d280fc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Prashant Arya

unread,
Apr 12, 2019, 1:47:41 AM4/12/19
to skaffold-users
Hi Brian,

Yes my image is having tar in it, thanks for quick response.

Prashant Arya

unread,
Apr 12, 2019, 1:48:30 AM4/12/19
to skaffold-users
Sure I will open the issue once I do enough debugging.

Thanks
Balint

To unsubscribe from this group and stop receiving emails from it, send an email to skaffol...@googlegroups.com.

Prashant Arya

unread,
Apr 12, 2019, 2:37:45 AM4/12/19
to skaffold-users

On Thursday, April 11, 2019 at 7:01:09 PM UTC+5:30, Bálint Pató wrote:
Balint

To unsubscribe from this group and stop receiving emails from it, send an email to skaffol...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages