-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copying sources: uploading build context: exit status 1 #3944
Comments
The error message here is useless. Shouldn't we be showing including stderr in the log? |
UPDATE:
Now everything works. ISSUE: Skaffold version: v1.7.0
I'm getting the same But if I build and run a docker image with skaffold in it (experimenting with jenkins kubernetes plugin), (this container has a similar environment to the host) and I try to do the same in this container I get this error. How can I get a more detailed error message? I can't debug it further.
I tried to build the container with
No change. I don't understand why it is working on the host but not in a container running on the host. Maybe Skaffold is missing a dependency or some environment variable in the container? |
Fix GoogleContainerTools#3944 Signed-off-by: David Gageot <david@gageot.net>
@jturi The problem is that to upload the source to your container, we rely on tar. I'll improve the error message to make that much clearer |
@dgageot Hi David, thanks for looking into this! We just got server updates and Skaffold no longer works on some of our machines:
I have no idea what causing Skaffold to fail to upload the files so I'm really curious. Two weeks ago we deployed jenkins in our cluster with Jenkins Kubernetes Plugin, using jenkins/jnlp-slave and a custom oracle7 image with skaffold in it. It clones projects and executes skaffold run to build and deploy our applications. Skaffold with Jenkins pipelines is fantastic it works like a charm even with strict PSP configurations, so thank you for all the efforts. |
Fix GoogleContainerTools#3944 Signed-off-by: David Gageot <david@gageot.net>
* [kaniko] Better error message when upload fails Fix #3944 Signed-off-by: David Gageot <david@gageot.net> * Feedback Signed-off-by: David Gageot <david@gageot.net>
Did you find a fix for this issue? As we are having similar problems running in-cluster build with Kaniko, with the same errors ending with:
|
Hi @thetume, Yes dgageot's new changes fixed our issue, all running fine with the latest bleeding edge binary.
If you replace your old skaffold binary with this one and do |
I am getting this error too, though I don't see the "exit status 1" maybe because I am on windows. `skaffold.exe build -p dev-kaniko
Any ideas how I can further troubleshoot root cause? |
I managed to get it down to a single file which looks to be a filename-length issue: Is there a way to make this error a bit clearer? Thanks |
@dthomastx we could probably add some checks to this code to validate filename lengths before adding and either skip or error out. skaffold/pkg/skaffold/util/tar.go Line 104 in 6f64e5b
feel free to open a separate issue to track, or if you're feeling ambitious submit a fix yourself! |
This is my
skaffold.yaml
. It's very straightforward:When I'm trying to build it:
As you can see:
And
My project is a maven project. And my
Dockerfile
is:Any ideas?
The text was updated successfully, but these errors were encountered: