[Solved] Server not starting up - could not read storage\game.eco as a zip file


  • Server was not running 24/7. Yesterday we played on it and we let the server on for the rest of the night. While i was asleep my computer got in sleep mode/ hibernate. In the morning i checked and got this error message. Below you see a screenshot and the dump file.
    System. Windows 10 - 64 bit
    I am currently using the last alpha 5.3

    I have tried to transfer the server but with no succes. there is some bug in the Game.eco folder

    --BEGIN DUMP--
    Dump Time
    01/08/2017 12:49:42

    Exception
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Ionic.Zip.ZipException: Could not read Storage\Game.eco as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> Ionic.Zip.BadReadException: Bad signature (0x00000000) at position 0x009040A9
    at Ionic.Zip.ZipEntry.ReadHeader(ZipEntry ze, Encoding defaultEncoding)
    at Ionic.Zip.ZipEntry.ReadEntry(ZipContainer zc, Boolean first)
    at Ionic.Zip.ZipFile.ReadIntoInstance_Orig(ZipFile zf)
    at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
    --- End of inner exception stack trace ---
    at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
    at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)
    at Ionic.Zip.ZipFile..ctor(String fileName)
    --- End of inner exception stack trace ---
    at Ionic.Zip.ZipFile..ctor(String fileName)
    at Eco.Core.Serialization.DataStore.OpenZipFile()
    at Eco.Core.Serialization.DataStore..ctor(String name)
    at Eco.Core.Plugins.StorageManager..ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    at System.Activator.CreateInstanceT
    at Eco.Server.PluginManager.AddPluginT
    at Eco.Server.PluginManager..ctor()
    at Eco.Server.MainClass.Main(String[] args)

    Inner Exception
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Ionic.Zip.ZipException: Could not read Storage\Game.eco as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> Ionic.Zip.BadReadException: Bad signature (0x00000000) at position 0x009040A9
    at Ionic.Zip.ZipEntry.ReadHeader(ZipEntry ze, Encoding defaultEncoding)
    at Ionic.Zip.ZipEntry.ReadEntry(ZipContainer zc, Boolean first)
    at Ionic.Zip.ZipFile.ReadIntoInstance_Orig(ZipFile zf)
    at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
    --- End of inner exception stack trace ---
    at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
    at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)
    at Ionic.Zip.ZipFile..ctor(String fileName)
    --- End of inner exception stack trace ---
    at Ionic.Zip.ZipFile..ctor(String fileName)
    at Eco.Core.Serialization.DataStore.OpenZipFile()
    at Eco.Core.Serialization.DataStore..ctor(String name)
    at Eco.Core.Plugins.StorageManager..ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
    at System.Activator.CreateInstanceT
    at Eco.Server.PluginManager.AddPluginT
    at Eco.Server.PluginManager..ctor()
    at Eco.Server.MainClass.Main(String[] args)

    --END DUMP--

    Screenshot (5).png


  • exception 2 zip file 1 game.eco 1 dump 3 bad signature 1
    3
    Posts
    1710
    Views
    Log in to reply


  • Looking at the exception, seems like your Game.eco file is corrupt.

    Try moving the Game.eco file out of the storage folder and starting the server, if it starts up then the Game.eco file is corrupt and you should restore from the latest backup.

    To restore from the latest backup, stop the server, open the Storage\Backup folder, copy the most recent backup to the Storage folder, rename that to Game.eco then start the server.



  • Well thank u that worked well. i've got the server back now :)


exception 2 zip file 1 game.eco 1 dump 3 bad signature 1
3
Posts
1710
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!