Skip to content
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

Bad Archive for some users #95

Open
astralmedia opened this issue Aug 28, 2022 · 1 comment
Open

Bad Archive for some users #95

astralmedia opened this issue Aug 28, 2022 · 1 comment

Comments

@astralmedia
Copy link

Hey! First off, thanks for the lovely library...we've been using it for a good while with no issues.

Recently, a few users (3 so far, but not all of them by any means) have been getting this Bad Archive issue.

The code is the same as its always been, but the archive they unzip changes regularly. It is currently compressed w 7zip, and is about 20gb large. The library is being run from a packaged windows electron app. I download the zip file to a temp location, then unzip it from there.

We have tried having them run as administrator, but to no avail. I've also worked with one to make sure the folder permissions were as liberal as possible.

Here is the code that is doing the decompression:

`const zip = new StreamZip({
file: zipPath,
storeEntries: true,
});

zip.on('ready', () => {
const zipPathArray = zipPath.split('/');
const decompressFolder = zipPathArray.slice(0, -1).join('/');

zip.extract(null, decompressFolder, (err: any, count: any) => {
  console.log(err ? 'Extract error' : `Extracted ${count} entries`);

  if (!err) {
    console.log('DECOMPRESSION COMPLETE');
  }
  zip.close();
  event.reply('cleanup-start', zipPath);
});

});`

Thanks again for any insight. I have been trying to debug this myself for 3 weeks before bugging you, but we have thousands of users and I am just stuck on where else to look.

@reidwatson
Copy link

Did you ever figure this one out? Running into it today for the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants