Stendhal server trouble shooting: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara make bold name and a correctoion |
imported>Hendrik Brummermann |
||
| (20 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navigation for Stendhal Top|Building & Hosting}} |
|||
==Out of memory error / Lagging / Turn overflows== |
==Out of memory error / Lagging / Turn overflows== |
||
| Line 20: | Line 22: | ||
Caused by: java.lang.<something>Error: <name> |
Caused by: java.lang.<something>Error: <name> |
||
And ''doesn't'' say InvocationTargetError, then you have a version mismatch between what |
And ''doesn't'' say InvocationTargetError, then you have a version mismatch between what Stendhal version you're using and what Marauroa version you're using. As a rule Marauroa and Stendhal are released together, so released versions should match. But if you get very latest Git Marauroa and not very latest Git Stendhal (say) then you may get this problem. |
||
==log4j:ERROR setFile(null,true) call failed== |
==log4j:ERROR setFile(null,true) call failed== |
||
| Line 35: | Line 37: | ||
== Can't create admin == |
== Can't create admin == |
||
Want to be an admin? Now you can! It's easy! |
Want to be an admin? Now you can! It's easy! Go to data\conf\admins.txt inside your server folder (e.g. where you extracted stendhal-server-{{version}}.zip) and edit the file. Put each account name which you desire to be an admin on a separate line. End with a new line. The names must be EXACT, or it will not work. |
||
Now restart the server. |
|||
== Character encoding == |
|||
On some systems, after launching marauroad you may get error like: |
|||
''Windows users: if you hide your file extensions then it may actually be called admin.lists.txt - so unhide your file extensions and correct this.'' |
|||
<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 == |
== Anything else == |
||