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

distinct-chromium.zip corrupted or empty #4

Open
osorionicolas opened this issue Dec 18, 2023 · 6 comments
Open

distinct-chromium.zip corrupted or empty #4

osorionicolas opened this issue Dec 18, 2023 · 6 comments

Comments

@osorionicolas
Copy link

SO: MacOS Sonoma 14.2

The docker compose build shows the following error:

#39 [distinct-browser 18/23] RUN unzip ./distinct-chromium.zip -d /app
#39 0.284 End-of-central-directory signature not found. Either this file is not
#39 0.284 a zipfile, or it constitutes one disk of a multi-part archive. In the
#39 0.284 latter case the central directory and zipfile comment will be found on
#39 0.284 the last disk(s) of this archive.
#39 0.284 unzip: cannot find zipfile directory in one of ./distinct-chromium.zip or
#39 0.284 ./distinct-chromium.zip.zip, and cannot find ./distinct-chromium.zip.ZIP, period.
#39 0.284 Archive: ./distinct-chromium.zip
#39 ERROR: process "/bin/sh -c unzip ./distinct-chromium.zip -d /app" did not complete successfully: exit code: 9

Tried to fix the zip file:

$ zip -FF distinct-chromium.zip --out new-distinct-chromium.zip
Fix archive (-FF) - salvage what can
zip warning: Missing end (EOCDR) signature - either this archive
is not readable or the end is damaged
Is this a single-disk archive? (y/n): y
Assuming single-disk archive
Scanning for entries...
zip warning: zip file empty

@iphoneintosh
Copy link
Collaborator

The distinct-chromium.zip is stored as git lfs file. Did you fetch all git lfs files? Otherwise, the file only contains a pointer (check the file's content). Try running git lfs fetch --all and see if it downloads the file.

@osorionicolas
Copy link
Author

The file seems not to have been updated, I'm receiving the same error. am I missing something else? thanks for your help!

$ git lfs fetch --all
fetch: 3 objects found, done.
fetch: Fetching all references...

[distinct-browser 17/22] RUN unzip ./distinct-chromium.zip -d /app:
0.091 Archive: ./distinct-chromium.zip
0.091 End-of-central-directory signature not found. Either this file is not
0.091 a zipfile, or it constitutes one disk of a multi-part archive. In the
0.091 latter case the central directory and zipfile comment will be found on
0.091 the last disk(s) of this archive.
0.091 unzip: cannot find zipfile directory in one of ./distinct-chromium.zip or
0.091 ./distinct-chromium.zip.zip, and cannot find ./distinct-chromium.zip.ZIP, period.


failed to solve: process "/bin/sh -c unzip ./distinct-chromium.zip -d /app" did not complete successfully: exit code: 9

@iphoneintosh
Copy link
Collaborator

The zip file should be approx. 213MB in size. Can you check with du -h src/distinct-browser/distinct-chromium.zip? If it is significantly less, it was probably not fetched. I'm not a git-lfs expert, but after installing git-lfs, you can try to remove and clone the repo again, which should automatically download all lfs files. If git-lfs is not working for you, please go ahead and download the zip file from here and replace it in the appropriate folder in src/distinct-browser/.

@osorionicolas
Copy link
Author

The file is like 130kb, so it's not downloading it, I have already remove and clone the repo again and nothing, I didn't try in other OS, maybe there is an issue with git-lfs in MacOS, I will try it later in a VM.

@osorionicolas
Copy link
Author

Doing a git lfs clone (I know it's deprecated) it says the following:

Skipping object checkout, Git LFS is not installed for this repository.
Consider installing it with 'git lfs install'.

@iphoneintosh
Copy link
Collaborator

Just noticed that you reopened the issue. Could you solve the git-lfs issue with git lfs install?

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