You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.Export partially transfers files and then gets stuck #6355
The suggested workaround for users currently hitting this is to try and reduce the number of files being exported if possible - you can remove files from the target directory / container until the export reliably succeeds.
The code below tries to export enough files to trigger the issue consistently. If I leave /tmp/empty an empty directory, the process gets stuck. By accident it seems I've also found a workaround: If I create a file with fallocate -l 536870912 /tmp/empty/512MB.zip or dd if=/dev/zero of=/tmp/empty/zero.file bs=512k count=1000 before starting the job, the .export transfers all files correctly and the job succeeds.
Environment specifics:
Kubernetes v1.24.17 on EKS
Dagger v0.9.5
Dagger engine deployed as Daemonset comparable with the Helm deployment
Dagger CLI is used with the _EXPERIMENTAL_DAGGER_RUNNER_HOST=kube-pod://<pod>?namespace=<namespace> environment variable
I have had the same issue, trying to export a large directory containing many files. To hack around, I zipped up the directory to a .zip file and then exported the single file (instead of the directory), then unzipped on the host machine, and it worked.
I made a script to recreate the issue and explore it further, you can see it here.
It's clearly related to not just file size, but file count, as you can successfully export a 10GB directory with only 5 files in it, but fail to export a 750MB directory with 60k files in it.
Activity
jedevc commentedon Jan 3, 2024
The suggested workaround for users currently hitting this is to try and reduce the number of files being exported if possible - you can remove files from the target directory / container until the export reliably succeeds.
studocu-sger commentedon Jan 4, 2024
The code below tries to export enough files to trigger the issue consistently. If I leave /tmp/empty an empty directory, the process gets stuck. By accident it seems I've also found a workaround: If I create a file with
fallocate -l 536870912 /tmp/empty/512MB.zipordd if=/dev/zero of=/tmp/empty/zero.file bs=512k count=1000before starting the job, the .export transfers all files correctly and the job succeeds.Environment specifics:
_EXPERIMENTAL_DAGGER_RUNNER_HOST=kube-pod://<pod>?namespace=<namespace>environment variablejohnstonematt commentedon Feb 28, 2024
I have had the same issue, trying to export a large directory containing many files. To hack around, I zipped up the directory to a
.zipfile and then exported the single file (instead of the directory), then unzipped on the host machine, and it worked.johnstonematt commentedon Mar 1, 2024
I made a script to recreate the issue and explore it further, you can see it here.
It's clearly related to not just file size, but file count, as you can successfully export a 10GB directory with only 5 files in it, but fail to export a 750MB directory with 60k files in it.
refactor(lib): Transfer in TAR and extract locally
refactor(lib): Transfer in TAR and extract locally (#245)