Official Community Forums
 
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  The Wiki  Website  github Project  

Share | 
 

 Error Starting Server Up

View previous topic View next topic Go down 
AuthorMessage
L-MG
Experienced Newbie
Experienced Newbie
avatar

Posts : 12
Join date : 2013-04-26
Location : California

PostSubject: Error Starting Server Up   Fri 26 Apr - 11:34

So I just made my way through the Getting Started guide on the wiki, got all the prerequisite software installed and setup, at least I think. The material seem outdated on some parts and I had to improvise. MySQL seems to be running fine and everything, but when I try to run start-multiverse.bat it says STARTUP FAILED.
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Fri 26 Apr - 12:00

If you would like some assistance please post the logs to the forums.
Back to top Go down
http://www.multiversemmo.com
L-MG
Experienced Newbie
Experienced Newbie
avatar

Posts : 12
Join date : 2013-04-26
Location : California

PostSubject: Re: Error Starting Server Up   Fri 26 Apr - 13:05

I posted the errors I got in that picture, do you need all of the logs?

Here are my full logs
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Fri 26 Apr - 13:28

Looks like everything works pretty well except the error is occurring at the bottom of instance.out
A problem with the startup_instance.py file
Specifically the line I've bolded. Looks like the template name is not getting passed to the jar file properly.. The null means no value. So I'm not sure why but this is the problem.
Perhaps someone else can assist.

CreateInstanceHook: templateName=sampleworld template override=[Template: name=null (ns=NS.instance, key=name, val=default)

DEBUG [2013-04-25 18:33:29,171] main Engine, Executing script file: ..\config\sampleworld\startup_instance.py
DEBUG [2013-04-25 18:33:29,171] main runPYFile: file=..\config\sampleworld\startup_instance.py
DEBUG [2013-04-25 18:33:29,265] main sendRPC type=mv.REGISTER_INSTANCE_TEMPLATE id=23 class=multiverse.server.plugins.InstanceClient$RegisterInstanceTemplateMessage
DEBUG [2013-04-25 18:33:29,265] main Sending mv.REGISTER_INSTANCE_TEMPLATE id=23 to instance
DEBUG [2013-04-25 18:33:29,265] SelfMessage SelfMessageHandler.handle pos=169
DEBUG [2013-04-25 18:33:29,265] SelfMessage handleSelfMessage id=23 type=mv.REGISTER_INSTANCE_TEMPLATE class=multiverse.server.plugins.InstanceClient$RegisterInstanceTemplateMessage
DEBUG [2013-04-25 18:33:29,265] SelfMessage deliverMessage rpc to multiverse.server.plugins.InstancePlugin@191cde0
DEBUG [2013-04-25 18:33:29,265] Instance-1 EnginePlugin.handleMessage: got msg id 23, matching 1 hooks for msgtype MessageType['mv.REGISTER_INSTANCE_TEMPLATE', 118]
DEBUG [2013-04-25 18:33:29,265] Instance-1 RegisterInstanceTemplateHook: template=[Template: name=sampleworld template (ns=NS.instance, key=worldFileName, val=$WORLD_DIR/$WORLD_NAME.mvw)(ns=NS.instance, key=initScriptFileName, val=$WORLD_DIR/instance_load.py)
DEBUG [2013-04-25 18:33:29,265] Instance-1 RegisterInstanceTemplateHook: added template name=sampleworld template
DEBUG [2013-04-25 18:33:29,265] Instance-1 sendResponse to instance,23 type=msgsys.RESPONSE id=24 class=multiverse.msgsys.BooleanResponseMessage
DEBUG [2013-04-25 18:33:29,265] SelfMessage SelfMessageHandler.handle pos=30
DEBUG [2013-04-25 18:33:29,265] Instance-1 EnginePlugin.handleMessage: processed msg 23, type=MessageType['mv.REGISTER_INSTANCE_TEMPLATE', 118], time in ms=0
DEBUG [2013-04-25 18:33:29,265] SelfMessage handleSelfMessage id=24 responseTo=23 type=msgsys.RESPONSE class=multiverse.msgsys.BooleanResponseMessage
DEBUG [2013-04-25 18:33:29,265] main sendRPC type=mv.CREATE_INSTANCE id=25 class=multiverse.server.plugins.InstanceClient$CreateInstanceMessage
DEBUG [2013-04-25 18:33:29,265] main Sending mv.CREATE_INSTANCE id=25 to instance
DEBUG [2013-04-25 18:33:29,265] SelfMessage SelfMessageHandler.handle pos=86
DEBUG [2013-04-25 18:33:29,265] SelfMessage handleSelfMessage id=25 type=mv.CREATE_INSTANCE class=multiverse.server.plugins.InstanceClient$CreateInstanceMessage
DEBUG [2013-04-25 18:33:29,265] SelfMessage deliverMessage rpc to multiverse.server.plugins.InstancePlugin@191cde0
DEBUG [2013-04-25 18:33:29,265] Instance-2 EnginePlugin.handleMessage: got msg id 25, matching 1 hooks for msgtype MessageType['mv.CREATE_INSTANCE', 119]
DEBUG [2013-04-25 18:33:29,265] Instance-2 CreateInstanceHook: templateName=sampleworld template override=[Template: name=null (ns=NS.instance, key=name, val=default)
DEBUG [2013-04-25 18:33:29,281] Instance-2 CreateInstanceHook: assigned world manager WorldManager1 host=xp-laptop
ERROR [2013-04-25 18:33:29,281] Instance-2 handleMessageImpl java.lang.NullPointerException
at java.lang.String.replace(Unknown Source)
at multiverse.server.util.FileUtil.expandFileName(FileUtil.java:10)
at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.createInstance(InstancePlugin.java:307)
at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.handleMessage(InstancePlugin.java:222)
at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.processMessage(InstancePlugin.java:216)
at multiverse.server.engine.EnginePlugin.handleMessageImpl(EnginePlugin.java:424)
at multiverse.server.engine.EnginePlugin$QueuedMessage.run(EnginePlugin.java:458)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
DEBUG [2013-04-25 18:33:29,281] Instance-2 sendResponse to instance,25 type=msgsys.RESPONSE id=26 class=multiverse.msgsys.ExceptionResponseMessage
DEBUG [2013-04-25 18:33:29,281] SelfMessage SelfMessageHandler.handle pos=859
DEBUG [2013-04-25 18:33:29,281] SelfMessage handleSelfMessage id=26 responseTo=25 type=msgsys.RESPONSE class=multiverse.msgsys.ExceptionResponseMessage
ERROR [2013-04-25 18:33:29,281] main ScriptManager.runPYFile: file=..\config\sampleworld\startup_instance.py Traceback (innermost last):
File "..\config\sampleworld\startup_instance.py", line 15, in ?
multiverse.msgsys.RPCException(java.lang.NullPointerException in instance) at java.lang.String.replace(Unknown Source) at multiverse.server.util.FileUtil.expandFileName(FileUtil.java:10) at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.createInstance(InstancePlugin.java:307) at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.handleMessage(InstancePlugin.java:222) at multiverse.server.plugins.InstancePlugin$CreateInstanceHook.processMessage(InstancePlugin.java:216) at multiverse.server.engine.EnginePlugin.handleMessageImpl(EnginePlugin.java:424) at multiverse.server.engine.EnginePlugin$QueuedMessage.run(EnginePlugin.java:458) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
multiverse.msgsys.RPCException: multiverse.msgsys.RPCException(java.lang.NullPointerException in instance)

at org.python.core.Py.JavaError(Unknown Source)
at org.python.core.Py.JavaError(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at org.python.pycode._pyx5.f$0(..\config\sampleworld\startup_instance.py:15)
at org.python.pycode._pyx5.call_function(..\config\sampleworld\startup_instance.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at multiverse.server.engine.ScriptManager.runPYFile(ScriptManager.java:181)
at multiverse.server.engine.ScriptManager.runFile(ScriptManager.java:94)
at multiverse.server.engine.Engine.processPostScripts(Engine.java:527)
at multiverse.server.engine.Engine.main(Engine.java:382)
DEBUG [2013-04-25 18:33:29,281] main Engine, script completed
DEBUG [2013-04-25 18:34:20,453] DBKeepalive Database: ping
DEBUG [2013-04-25 18:35:20,656] DBKeepalive Database: ping
Back to top Go down
http://www.multiversemmo.com
L-MG
Experienced Newbie
Experienced Newbie
avatar

Posts : 12
Join date : 2013-04-26
Location : California

PostSubject: Re: Error Starting Server Up   Fri 26 Apr - 14:37

Below I posted the steps I went through to set it up just in case it helps. I tried to make it as organized and easy to go through as possible, say if you need more information on something. This is on a pretty much clean computer running Windows XP with 1GB RAM and 2.9GHz.

Thanks for your help with this, it's much appreciated. cheers

  1. Downloaded the client, tools, and server

  2. Installed the client and tools

  3. I tried running the client to patch as stated in the wiki, but when I ran the client and hit login with the default information (user - guest, pass - guest, sampleworld selected) nothing happened at all. I tried this on two different machines. I figured I'd deal with this later and it wasn't required for the server at that moment.

  4. Opened the ports 9005-9010 and 5040-5050 on both TCP and UDP

  5. Downloaded the Sampleworld Asset Repository, opened Model Viewer and designated the asset repository that was downloaded, then checked some meshes in the Model Viewer to make sure it worked

  6. Downloaded and installed Java SE Development Kit 6 Update 43

  7. Had some confusion with what the wiki wanted me to download for MySQL, as it seems the link it gives is for a zipped server, and not an installer like it says. To avoid any problems I downloaded and installed MySQL using the MySQL Installer which includes all MySQL products, the installer mentioned it was installing it as a service and I could launch and test MySQL so it seems like it worked fine, didn't see any place where it asked for the database name but the root username and test password was put in

  8. Downloaded and put the MySQL Connector to the C drive as recommended

  9. Extracted the server files as recommended in C:\multiverse

  10. Edited multiverse.properties and switched the default path out for "c:\\mysql-connector-java-5.1.24\\mysql-connector-java-5.1.24-bin.jar" since my connector version is later than the default

  11. Accessed MySQL though the Windows Command Prompt (since the Command Line Client included with MySQL didn't work for some reason) and executed the command "source C:\multiverse\bin\install.sql", this seems to have gone through fine and after testing it with the "show tables from multiverse;" command the correct tables are shown

  12. Located to the C:\multiverse\bin directory and ran start-multiverse.bat, this was shown right away, and after a minute or two pause this was shown, I then stopped the server using stop-multiverse.bat

The logs from this are here, the same logs linked to above.
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 8:02

I've confirmed this is a bug. For some reason the <b>world_name</b> doesn't get transferred into the <b>plugin_status</b> table in mysql. Thus when the other server modules read the <b>plugin_status</b> table and try to query on the <b>world_name</b> from the table it finds a null value and fails. I believe I posted something on this a long time ago. I forget what the resolution was.
Back to top Go down
http://www.multiversemmo.com
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 8:56

Found the problem and I will be issuing a patch shortly. It's a simple modification to the start-multiverse.bat file.
Back to top Go down
http://www.multiversemmo.com
Tattiana Talahandra
Experienced Newbie
Experienced Newbie
avatar

Posts : 37
Join date : 2012-10-06
Location : Bellevue, NE

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 10:03


Hello

I was trying the fix you posted for the bug but I am getting a

mysql> source c:\multiverse\bin\cleartable_plugin_status.sql
ERROR:
Failed to open file 'c:\multiverse\bin\cleartable_plugin_status.sql', error: 2
mysql>


Am I missing something from the steps you posted in the sticky? I downloaded the zip file to the \bin folder as directed.
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 10:06

Make sure that file is in your bin folder. And use the path of wherever you have the server installed
Back to top Go down
http://www.multiversemmo.com
Tattiana Talahandra
Experienced Newbie
Experienced Newbie
avatar

Posts : 37
Join date : 2012-10-06
Location : Bellevue, NE

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 11:46

My bad. Fixed that but still my same errors as in the other thread. Oh well was worth a shot :')
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 11:48

Sorry what other thread ?
Back to top Go down
http://www.multiversemmo.com
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Mon 29 Apr - 12:19

Ah the. "Am I Close" thread. With the "no default instance" error. I'll take a look at this and let you know. I set up a fresh new virtual machine running Windows XP to simulate a brand new install
Back to top Go down
http://www.multiversemmo.com
L-MG
Experienced Newbie
Experienced Newbie
avatar

Posts : 12
Join date : 2013-04-26
Location : California

PostSubject: Re: Error Starting Server Up   Tue 30 Apr - 14:17

Ah it works perfectly now! Can't thank you enough Cobalt!

One thing I thought I should mention though is that I tried downloading the new MultiverseComplete package that's there twice and both times it said the archive was damaged. My problems are all fixed now, so this doesn't actually effect me I just figured I should make you aware of this.
Back to top Go down
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Tue 30 Apr - 14:29

Ah Thanks. I was uploading a new copy and it failed last night. I will fix shortly
Back to top Go down
http://www.multiversemmo.com
CobaltBlues
Moderator
Moderator
avatar

Posts : 202
Join date : 2011-11-21
Location : Chicago Land

PostSubject: Re: Error Starting Server Up   Tue 30 Apr - 14:44

Fixed
Back to top Go down
http://www.multiversemmo.com
Sponsored content




PostSubject: Re: Error Starting Server Up   

Back to top Go down
 
Error Starting Server Up
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» SOVLED - WOW CN 31 january : Can't get into the game
» Server connection error. Please reload the page...
» Creating a rFactor server.
» [Solved] Logging in to invalid game server! Please help!
» Diablo 2 Error when creating game

Permissions in this forum:You cannot reply to topics in this forum
 :: Development :: Getting Started-
Jump to: