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
Sparse file in archive triggers "OSError: [Errno 28] No space left on device: '...' " during scan #32
changed the title [-]"OSError: [Errno 28]" No space left on device: '...' during scan[/-][+]"OSError: [Errno 28] No space left on device: '...' " during scan[/+]on Sep 29, 2021
And can you detail what pre-processing you apply on this. Did you call extractcode first?
Is there a place where I can see your code? I am always interested in how ScanCode is integrated!
changed the title [-]"OSError: [Errno 28] No space left on device: '...' " during scan[/-][+]Sparse file in archive triggers "OSError: [Errno 28] No space left on device: '...' " during scan[/+]on Oct 8, 2021
Activity
[-]"OSError: [Errno 28]" No space left on device: '...' during scan[/-][+]"OSError: [Errno 28] No space left on device: '...' " during scan[/+]pombredanne commentedon Sep 29, 2021
Would this be with https://github.com/moby/moby/archive/refs/tags/v20.10.5.tar.gz ?
pombredanne commentedon Sep 30, 2021
And I had not seen your attachment! so I am good wih the code link you provided.
So I think this is sparse tarball issue which is 60GB extracted and only 5KB otherwise, unextracted, and not even compressed
Can you test scanning that one single 5KB file?
https://github.com/moby/moby/blob/363e9a88a11be517d9e8c65c998ff56f774eb4dc/vendor/archive/tar/testdata/gnu-sparse-big.tar
And can you detail what pre-processing you apply on this. Did you call extractcode first?
Is there a place where I can see your code? I am always interested in how ScanCode is integrated!
pombredanne commentedon Sep 30, 2021
Note that this could be related to aboutcode-org/scancode-toolkit#2431 where @Angi2412 and @avishmehta68710 both mentioned having a similar issue or at least this comment aboutcode-org/scancode-toolkit#2431 (comment) references the same code:
goekDil commentedon Sep 30, 2021
Yes, I apply extractcode first! Unfortunately, there is no place where you can see my code, but I can provide a minimalexample.py:
As you proposed, I tested the one single 5KB file and the exact same Error occurs:
(docker logs) (Linux and Windows with docker)
Depending on the machine I work on
pombredanne commentedon Oct 8, 2021
So this is a sparse file issue. The short term workaround may be to ignore the
gnu-sparse-big.tarfile entirely.goekDil commentedon Oct 8, 2021
Thank you very much! After further analysis, I also came to the conclusion that this is a sparse file issue.
pombredanne commentedon Oct 8, 2021
I still may want to keep this open for now and transfer the issue to extractcode... as we may want to have a special processing for sparse files
[-]"OSError: [Errno 28] No space left on device: '...' " during scan[/-][+]Sparse file in archive triggers "OSError: [Errno 28] No space left on device: '...' " during scan[/+]pombredanne commentedon Oct 8, 2021
Done... now in extractcode!
Merge pull request #32 from nexB/install-from-thirdparty-dir