Skip to content

Copy.copyFileToPod() hangs waiting for process to complete #1822

@PredatorVI

Description

@PredatorVI

Client Version: 13.0.0
Kubernetes Version: 1.19.12-gke.2100
Java Version: Java 1.8.0_291
**Server

  • OS: Ubuntu 20.04.1 LTS
  • Environment: GKE Container
  • Cloud : GCP/GKE

I have the copyFileFromPod() working, but copyFileToPod() hangs at Copy.java line 459 at proc.waitFor(). I've pulled source, but I don't understand the websockets well enough to know what is going on. A copy command from the command-line works fine.

I've verified that the 'tar' and 'base64' executables exist in the container:

> root@test-gcp-dev-gke-guse4a-0:/tmp# which tar
> /usr/bin/tar
> root@test-gcp-dev-gke-guse4a-0:/tmp# which base64
> /usr/bin/base64
> root@test-gcp-dev-gke-guse4a-0:/tmp# cat /etc/issue
> Ubuntu 20.04.1 LTS \n \l
> 

I've not changed the timeouts as I'd expect a simple text file copy would work within the defaults.

It never seems to timeout or throw an error so I don't have any stack traces.

Also, I tried API version 12.0.1 (throws SocketTimeout almost immediately) and 11.0.2 (hangs just like 13.0.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions