Stendhal server trouble shooting: Difference between revisions

Content deleted Content added
imported>Kymara
new page for trouble shooting.
 
imported>Hendrik Brummermann
 
(35 intermediate revisions by 2 users not shown)
Line 1:
{{Navigation for Stendhal Top|Building & Hosting}}
 
==Out of memory error / Lagging / Turn overflows==
 
Line 20 ⟶ 22:
Caused by: java.lang.<something>Error: <name>
 
And ''doesn't'' say InvocationTargetError, then you have a version mismatch between what stendhalStendhal version you're using and what marauroaMarauroa version you're [[using. As a rule marauroaMarauroa and stendhalStendhal are released together, so released versions should match. But if you get very latest CVSGit marauroaMarauroa and not very latest CVSGit stendhalStendhal (say) then you may get this problem.
 
==log4j:ERROR setFile(null,true) call failed==
Line 35 ⟶ 37:
== Can't create admin ==
Want to be an admin? Now you can! It's easy! FirstGo createto adata\conf\admins.txt fileinside calledyour "adminsserver folder (e.g.list" Thiswhere isyou aextracted plainstendhal-server-{{version}}.zip) textand edit the file,. withPut each account name which you desire to be an admin on a separate line. End with a new line. The namenames must be EXACT, or it will not work. Windows users: if you hide your file extensions then it may actually be called admins.lists.txt - so unhide your file extensions and correct this.
 
Now restart the server.
 
== Character encoding ==
 
On some systems, after launching marauroad you may get error like:
<pre>
ERROR [main ] AdapterFactory (68 ) - marauroa.server.db.DatabaseConnectionException: Unable to create a
connection to: jdbc:mysql://localhost/marauroa
marauroa.server.db.DatabaseConnectionException: Unable to create a connection to: jdbc:mysql://localhost/marauroa
... <skipped>
Caused by: java.sql.SQLException: Unknown initial character set index '192' received from server. Initial client character set
can be forced via the 'characterEncoding' property.
... <skipped>
</pre>
What you can do in this case: open your mysqld configuration file ( /etc/my.cnf for *nix or \my.ini for Windows) and
edit these settings:
<pre>
collation_server = <...>
character_set_server = <...>
</pre>
Change them to:
<pre>
collation_server = latin1_swedish_ci
character_set_server = latin1
</pre>
then restart mysqld.
<pre>
#/service mysqld restart (for Red Hat clones)
#/etc/rc.d/rc.mysqld restart (for Slackware)
$/sudo /etc/init.d/mysqld restart (for Debian/Ubuntu)
stop and start mysqld service (in Windows services window)
</pre>
Or you can reboot your system.
 
For learning more about character sets in mysql, see
Then go to the directory where you extracted stendhal-server-X.XX.zip, or equivalently, where you put your built server jars, and browse to data/conf (create it if it isn't already there). Add admins.list there. You may need to adjust the classpath which your server loads from, by adding a "." to the classpath.
http://dev.mysql.com/doc/refman/5.0/en/charset.html
 
== Anything else ==