1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server Startup Crash

Discussion in 'Windows Support' started by Denjiki, Feb 19, 2014.

  1. Denjiki
    Offline

    Denjiki Active Member

    Joined:
    Feb 6, 2014
    Messages:
    173
    Likes Received:
    31
    So for some reason today I restarted my server only to have it throw errors at me. I merged over the FS Taming system and had it running no problem, even ran fine after being restarted once or twice. Then last night I spawned a bunch of new mobiles from the new scripts, saved, went to bed. Today started it up and am getting errors. Here they are:
    Code (C#):
    1.  
    2. ----------------------------------------------------------------------------
    3. ServUO - [http://www.servuo.com] Version 0.5, Build 5157.1903
    4. Publish 54
    5. Core: Optimizing for 6 64-bit processors
    6. RandomImpl: CSPRandom (Software)
    7. OpenUO Error: Client files not found.
    8. Scripts: Compiling C# scripts...done (cached)
    9. Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
    10. Scripts: Verifying...
    11. Finished (4206 items, 1056 mobiles, 11 customs) (0.81 seconds)
    12. ACC Registered: Server.ACC.CM.CentralMemory
    13. ACC Registered: Server.ACC.PG.PGSystem
    14. ACC Registered: Server.ACC.CSS.CSS
    15. Regions: Loading...done
    16. World: Loading...Error:
    17. System.Xml.XmlException: Root element is missing.
    18.    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
    19.    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    20.    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean prese
    21. rveWhitespace)
    22.    at System.Xml.XmlDocument.Load(XmlReader reader)
    23.    at System.Xml.XmlDocument.Load(String filename)
    24.    at Server.Accounting.Accounts.Load()
    25.    at Server.WorldLoadEventHandler.Invoke()
    26.    at Server.World.Load() in c:\ServUO\trunk\Server\World.cs:line 858
    27.    at Server.Core.Main(String[] args) in c:\ServUO\trunk\Server\Main.cs:line 590
    28.  
    29. This exception is fatal, press return to exit
    30.  
    EDIT:: 2/19/2014 11:55 PM So I did some searching now that I had a bit more time, and I see a couple other threads saying this is from a corrupt accounts.xml file. I restored just that file from an earlier backup and the world will load, but immediately after throws some errors and closes the server immediately, then restarts it right after. Is this because I cannot just restore the accounts.xml file without restoring everything else as well? I would normally not care about this and just restore my most recent backup, but I did about 3 hours worth of spawning new mobiles so I would like to save that work if possible. Any thoughts on this would be much appreciated.


    EDIT2:: 2/20/2014 12:11 AM Alright well, I did some digging in my ServUO folder under Automatic backups starting restoring them each to see where each one was at. The 2nd most recent one had about 80% of my work I had done last night still on it, so I'm just going to restore it from there and call it good. Just to note restoring ONLY the accounts.xml file did NOT work for me, I had to restore all the folders including Accounts, Mobiles, Items, Attachments, etc. Since i'm not sure how automatic backups work on ServUO, if you have this issue I would suggest backing up your current ServUO folder immediately even if it's not working currently, because it may contain automatic backups that could be overwritten if you keep trying to reload your server over and over. Then try restoring your backup saves in the Backups/Automatic starting with most recent and working your way back. Hopefully you can get most of your work restored as I did.
     
    #1 Denjiki, Feb 19, 2014
    Last edited: Feb 20, 2014
  2. Kalamus
    Offline

    Kalamus Active Member

    Joined:
    Apr 24, 2013
    Messages:
    282
    Likes Received:
    32
    Did you get this all sorted out?


    When the server does this it also creates crash logs in the root folder that might help with why it's crashing. I've never tried to restore only accounts file but I have deleted every except the accounts file plenty of times to start fresh without having to recreate my accounts.

    ServUO also comes with Emergency Backup program that you can setup to do permanent backups that won't get wiped out from the server restarting over and over. I can dig up my code for this that does 2 daily backups if you need to see how it works.
     
  3. Kalamus
    Offline

    Kalamus Active Member

    Joined:
    Apr 24, 2013
    Messages:
    282
    Likes Received:
    32
    Found my old code for enabling emergency backups. http://craftuo.com/threads/emergency-backup-system.190/#post-1469

     
  4. Denjiki
    Offline

    Denjiki Active Member

    Joined:
    Feb 6, 2014
    Messages:
    173
    Likes Received:
    31
    Awesome thanks! I've got mine sorted out now but setting up a more thorough automated backup system should definitely help in the future. The strange thing was that my accounts.xml file just went blank. I opened it up to see what was going on and the corrupted one just had nothing in it. The size of the file was still larger than my older accounts.xml files, which is a little weird to me as if it contained no data anymore it should be smaller.
     
  5. Fisher
    Offline

    Fisher Member

    Joined:
    Dec 24, 2014
    Messages:
    72
    Likes Received:
    5
  6. Fisher
    Offline

    Fisher Member

    Joined:
    Dec 24, 2014
    Messages:
    72
    Likes Received:
    5
    If anyone wants to use the emergency backup using the code posted by Kalamus and gets these errors try renaming 7z64.dll to 7z.dll in the base directory. It did the trick for me.
     
Similar Threads: Server Startup
Forum Title Date
Script Support Cannot create servuo server startup Nov 2, 2017
Archived Bug Reports Huge delay logging onto server at startup. Jun 12, 2016
Script Support Server startup crash - invulnerable vendors May 14, 2014
3rd Party Support CentrED+ server config Dec 4, 2017
ServUO Discussion Server Crashes when player uses this command(Fixed) Dec 3, 2017
Script Support How to ''lock'' server so people cant join? Nov 30, 2017
Mono Support Server Died :( Nov 25, 2017