getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.69k stars 120 forks source link

[Bug Report] Archive error: Couldn't find directory end signature in the last 65KB #299

Open supasonix-zuv opened 2 years ago

supasonix-zuv commented 2 years ago

Describe the bug Some archives are unreadable with the error message Archive error: Couldn't find directory end signature in the last 65KB. It tends to be about once per 20 volume series. There is no thumbnail as well.

To Reproduce Steps to reproduce the behavior:

  1. Import an archive
  2. It may or may not work
  3. See error

Expected behavior The archive loads and reads properly.

Environment (please complete the following information):

Docker (if you are running Mango in a Docker container) ` mango:
image: hkalexling/mango container_name: mango
restart: unless-stopped expose:

hkalexling commented 2 years ago

Can you try deleting the /mnt/SSD/mango/library.yml.gz file and see if it resolves the issue? This is a temporary cache for the library and will be regenerated.

supasonix-zuv commented 2 years ago

It didn't seem to do anything, even after restarting the docker container the issue persists

rabume commented 2 years ago

Same issue for me. Also tried to delete the /mnt/SSD/mango/library.yml.gz file. Im using .cbz files and they are all working in other readers.

Leeingnyo commented 2 years ago

Is it different with https://github.com/hkalexling/Mango/issues/112#issuecomment-712103777? cbz files archived with 7zip are not yet supported, aren't they?

rabume commented 2 years ago

I "re-achieved" them with 7zip using the .zip extension and rename them to .cbz. Seems to work after that.

hkalexling commented 2 years ago

@Leeingnyo Yeah I was suspecting that to be an 7z issue as well, but @supasonix-zuv mentioned that the exact copy of the archive worked, which is really strange. I have no idea why it's happening and can't reproduce it :thinking:

alpharde commented 1 year ago

I'm getting this too. I can provide a file that triggers this issue.

hkalexling commented 1 year ago

@alpharde Are those 7zip files? You might want to re-archive them into standard zip files. See #112

alpharde commented 1 year ago

Sorry, forgot about this issue. The files were indeed corrupt.