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

Unpack step failing occasionally with code 9 #94

Open
thoughtspacewebsites opened this issue Oct 30, 2015 · 2 comments
Open

Unpack step failing occasionally with code 9 #94

thoughtspacewebsites opened this issue Oct 30, 2015 · 2 comments

Comments

@thoughtspacewebsites
Copy link
Contributor

On occasion on OS X, I'm running into an issue during the unpacking portion of the update process that's resulting in the update failing. the file will completely download and as soon as I run the unpack function, I get an error. Here's the error:

{"killed":false,"code":9,"signal":null,"cmd":"/bin/sh -c unzip -xo "/var/folders/64/xqb1tk3s0nbgwd_r8zb4sx200000gn/T/maple.1.2.2.zip\" >/dev/null"}

I'm not sure what's happening exactly, and I can't seem to pinpoint it to any specific actions. This has happened on two different machines so far both running OS X 10.11 El Capitan. Any insight greatly appreciated.

@adam-lynch
Copy link
Collaborator

Permissions? I'm not sure really to be honest.

@thoughtspacewebsites
Copy link
Contributor Author

Nah, definitely not permissions. It's always completely random. I ended up "fixing" it by recursing my unpack function up to three times before throwing an error out to the user. Sometimes it will fail once or twice, but ever since I put in the recursive functionality, I haven't had a single visible error report, so that's good. It's not much of a fix, but it did take care of the immediate issue.

Like I said, it definitely isn't permission issues, especially considering sometimes it won't run the first time but then it will the second time in the exact same environment... Unfortunately the only error output I get is what I posted above. On this page:

http://linux.die.net/man/1/unzip

It looks like error code 9 is "the specified zipfiles were not found." Not sure if that helps at all. It's definitely a weird error. I'd like to say the download corrupted when the failures happen, but here's some other odd functionality: I don't redownload the files as part of my recursive function, the only part I recurse on is the unpack step. So the same ZIP that fails will succeed after two or three tries. It's really weird.

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