# Unable to Restore Gateway - Java zip

**URL:** <https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936>\
**Category:** Ignition\
**Created:** [February 28, 2013, 4:11am UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936 "2013-02-28T04:11:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [February 28, 2013, 4:11am UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936/1 "2013-02-28T04:11:21Z")

</div>

When trying to restore a gateway, (Ign. v7.5.5 (b1255)), (32bit Java version 7.15), I get an error:  
[color=#FF0040]Error writing to restore file: java.util.zip.ZipException: invalid distance too far back[/color]

Since we didn’t know exactly what ‘too far back’ meant, we put the gateway file we wanted to restore on the desketop so it wasn’t embedded in multiple sub folders, but that did not work either.  
Any suggestions??  
Thanks

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/19864e66e2936c30c16bc2face9630c2fba12ec5.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 28, 2013, 3:11pm UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936/2 "2013-02-28T15:11:00Z")

</div>

Can you open the .gwbk file with regular zip software?

---

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [February 28, 2013, 4:11pm UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936/3 "2013-02-28T16:11:39Z")

</div>

Kevin. We were not trying to unzip the gateway backup file, we were trying to restore the gateway via Ignition when we got that error message. Have not tried to unzip that file.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 28, 2013, 4:14pm UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936/4 "2013-02-28T16:14:36Z")

</div>

Right, see if you can even unzip it though. I want to see if your zip file is corrupt or not.

---

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [February 28, 2013, 5:32pm UTC](https://forum.inductiveautomation.com/t/unable-to-restore-gateway-java-zip/5936/5 "2013-02-28T17:32:23Z")

</div>

Kevin,  
You are correct - the file was corrupt. Tried to open it with another unzipper and it would only do a partial unzip because of a corrupted file. Also tried to restore the same gtwy backup on another machine with Ignition to see if it was an anomaly, but had the same Error result.  
Thank you for your help!
