Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-debug.json missing #38

Closed
pogster opened this issue Nov 14, 2014 · 8 comments
Closed

config-debug.json missing #38

pogster opened this issue Nov 14, 2014 · 8 comments

Comments

@pogster
Copy link
Contributor

pogster commented Nov 14, 2014

Hi Dean,
I set up the development environment on a different machine. In this latest version the run-debug.sh is started when running the server and it's missing config-debug.json in code/server/data. The file is actually not there. Did you forget to add it or is it an intended change and I need to do something differently?
Regards,
Carsten

@codeka
Copy link
Owner

codeka commented Nov 14, 2014

Oh I forgot to update the post on the forum. The idea is that you'll copy config-tmpl.json and customize it for your own environment.

The idea is that everybody will have different paths and database user/passwords or whatever, so there's no point checking that stuff into the repository. I eventually plan to put like API keys and stuff in there so that they're not just scattered all around the code as well...

(I'll leave this bug open to remind me to update the forum post)

@pogster
Copy link
Contributor Author

pogster commented Nov 14, 2014

Well following your guide from the forums I got a working copy - now I have problems to get it to run :-P

@pogster
Copy link
Contributor Author

pogster commented Nov 14, 2014

Would be cool if the "tmpl" file would simply work with your forums' guide or something.
I changed realmName to "Debug", schema to "debug", password to the actual password.
Getting error:
2014-11-15 00:00:33 INFO com.zaxxer.hikari.HikariDataSource [1] HikariCP pool HikariPool-0 is starting.
2014-11-15 00:00:33 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:33 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:33 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:33 SEVERE wwmmo [1] Runner: Exception on main thread, aborting.
java.lang.NullPointerException
at au.com.codeka.warworlds.server.data.SchemaUpdater.getExpectedVersion(SchemaUpdater.java:97)
at au.com.codeka.warworlds.server.data.SchemaUpdater.verifySchema(SchemaUpdater.java:23)
at au.com.codeka.warworlds.server.Runner.main(Runner.java:20)

2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug
2014-11-15 00:00:34 INFO wwmmo [9] DB: New connection created in schema: debug

@codeka
Copy link
Owner

codeka commented Nov 14, 2014

I think this will happen if you haven't set dataDirectory to point to the location of the data directory. I typically point mine to the source folder (as in /server/data) so that if I edit any of the .html files or whatever it automatically picks up the new ones.

@codeka
Copy link
Owner

codeka commented Nov 16, 2014

OK, I've updated the forum post with the bit about editing the config-debug.json file.

@codeka codeka closed this as completed Nov 16, 2014
@pogster
Copy link
Contributor Author

pogster commented Nov 16, 2014

Nice. Gonna check it asap.
Am 17.11.2014 00:40 schrieb "Dean Harding" notifications@github.com:

OK, I've updated the forum post with the bit about editing the
config-debug.json file.


Reply to this email directly or view it on GitHub
#38 (comment).

@pogster
Copy link
Contributor Author

pogster commented Nov 21, 2014

Still not satisfied, sorry.
What path to server data. Absolute (/home/user//server/data?) Relative? Relative to where?

I did it absolute now (can't be too wrong with that, I thought). Changed DB password to actual password.

Relative path leads to error:
2014-11-21 14:32:25 INFO com.zaxxer.hikari.HikariDataSource [1] HikariCP pool HikariPool-0 is starting.
2014-11-21 14:32:26 SEVERE wwmmo [1] Runner: Exception on main thread, aborting.
java.lang.NullPointerException
at au.com.codeka.warworlds.server.data.SchemaUpdater.getExpectedVersion(SchemaUpdater.java:97)
at au.com.codeka.warworlds.server.data.SchemaUpdater.verifySchema(SchemaUpdater.java:23)
at au.com.codeka.warworlds.server.Runner.main(Runner.java:20)

Absolute Path:
2014-11-21 14:34:43 INFO com.zaxxer.hikari.HikariDataSource [1] HikariCP pool HikariPool-0 is starting.
2014-11-21 14:34:43 SEVERE wwmmo [1] Runner: Exception on main thread, aborting.
au.com.codeka.warworlds.server.data.SchemaException: Error upgrading to schema version 1
at au.com.codeka.warworlds.server.data.SchemaUpdater.applyVersionUpgrade(SchemaUpdater.java:44)
at au.com.codeka.warworlds.server.data.SchemaUpdater.verifySchema(SchemaUpdater.java:26)
at au.com.codeka.warworlds.server.Runner.main(Runner.java:20)
Caused by: org.postgresql.util.PSQLException: ERROR: no schema has been selected to create in
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:363)
at com.zaxxer.hikari.proxy.PreparedStatementJavassistProxy.executeUpdate(PreparedStatementJavassistProxy.java)
at au.com.codeka.warworlds.server.data.SqlStmt.update(SqlStmt.java:125)
at au.com.codeka.warworlds.server.data.SchemaUpdater.applyVersionUpgrade(SchemaUpdater.java:40)
... 2 more

@pogster
Copy link
Contributor Author

pogster commented Nov 21, 2014

Schema is appearing every time. Is beta correct? (from tmpl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants