Author Topic: Deepbot will no longer start  (Read 1411 times)

0 Members and 1 Guest are viewing this topic.

jaenbeorht

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: jxdadventure
Deepbot will no longer start
« on: September 02, 2014, 07:23:01 AM »
This is what i get in the errorlog every time i load it up.

01 Sep 19:20:55,197 - 0.5.1.0: Crashed Unable to cast object of type 'System.Collections.Generic.List`1[DeepBot.UserDB]' to type 'DeepBot.UserConfig'.
01 Sep 19:20:55,202 - 0.5.1.0: Crashed    at DeepBot.UserConfig.LoadUserConfig()
   at DeepBot.Main..ctor()
   at DeepBot.Program.Main()

jaenbeorht

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: jxdadventure
Re: Deepbot will no longer start
« Reply #1 on: September 02, 2014, 07:33:34 AM »
01 Sep 19:14:29,420 - 0.5.1.0: Crashed Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.
01 Sep 19:14:29,425 - 0.5.1.0: Crashed    at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at DeepBot.UserConfig.LoadUserConfig()
   at DeepBot.Main..ctor()
   at DeepBot.Program.Main()

Something else that came up in the logs as well.

ExpertsOnline

  • Creator
  • Councilor
  • *****
  • Posts: 2656
  • Karma: +289/-24
    • View Profile
  • Twitch Name: expertsonline
Re: Deepbot will no longer start
« Reply #2 on: September 04, 2014, 12:14:20 AM »
It appears your usersconfig file is corrupted. Try to restore from backups which exist in the following folders:
30min interval backups: backups/0/
6hr interval backups: backups/1/
24hr interval backups: backups/2/

To restore a backup:
Close DeepBot
rename current usersconfig.bin to usersconfig_bak.bin (This is the backup of your current database)
Find the usersconfig.bin file with the appropriate timestamp that you want to restore from the backups\ folder and copy it
Paste the file in the main folder (where the original usersconfig.bin was)
Rename the backup file to usersconfig.bin (removing the timestamp)
Start DeepBot

Regards,
Experts