SmarterApp / IM_OpenAM

OpenAM installation used for Single Sign-On
0 stars 2 forks source link

Tomcat zip corrupted #1

Open russoisraeli opened 8 years ago

russoisraeli commented 8 years ago

Hello,

The tomcat.zip appears to be corrupted:

unzip source/IM_OpenAM/sbacInstaller/artifacts/tomcat.zip Archive: source/IM_OpenAM/sbacInstaller/artifacts/tomcat.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of source/IM_OpenAM/sbacInstaller/artifacts/tomcat.zip or source/IM_OpenAM/sbacInstaller/artifacts/tomcat.zip.zip, and cannot find source/IM_OpenAM/sbacInstaller/artifacts/tomcat.zip.ZIP, period.

-rw-r--r-- 1 root root 134 Jul 15 16:09 tomcat.zip

Thanks,

jtreuting commented 8 years ago

I was able to pull the zip file down to a server running Ubuntu and unzip it without issue.

Can you try

wget https://github.com/SmarterApp/IM_OpenAM/blob/master/sbacInstaller/artifacts/tomcat.zip?raw=true -O tomcat.zip

unzip tomcat.zip

russoisraeli commented 8 years ago

Thank you for the fast response. The wget does produce a good file, but for some reason git pulling results in a corrupted file. I tried another pull - same thing.

Thank you though, I can proceed now.

jtreuting commented 8 years ago

I think the issue may be that the tomcat.zip file is very large and therefore is stored in Git LFS (large file system) where the file in git is a pointer to the large file stored externally. When git clones the repository it should pull that file from the LFS instead of just pulling the pointer. My guess is that the file you had locally was just the pointer and not the full file.

I use SourceTree as my git client and it works without any issues. I believe that it installs Git LFS locally and so it is seamless. You may need to install git LFS to make it work appropriately.

Here are the instructions from the GitHub help pages: https://help.github.com/articles/installing-git-large-file-storage/#platform-mac