DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
779 stars 29 forks source link

Debugging 'unzip: short read' #81

Closed jacg closed 7 months ago

jacg commented 7 months ago

Trying to use nix-portable on an (idiosyncratic ... but aren't they all!) HPC system, I get the following error:

$ ./nix-portable run nixpkgs#cowsay -- hello
unzip: short read

How should I go about understanding what it causing it?

I see that the timestamp on .nix-portable/tmpbin is updated whenever I run the above command, but the directory is empty, so I can't immediately check my hypothesis that nix-portable is trying to download and unzip a resource, but is getting an error message instead of the resource.

DavHau commented 7 months ago

Maybe your nix-portable is corrupt? You could re-download it on another machine and compare hashes.

jacg commented 7 months ago

Indeed. For some reason the whole file is never fully downloaded into my home directory. (Seems to be a disk quota issue, even though I seem to have almost 2 TB of quota left). When I download it into /tmp and point NP_LOCATION there too, it seems to work fine.

Thanks for the hint.