Skip to content

Bad Archive for some users #95

@astralmedia

Description

@astralmedia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions