Install problems with databases

45 views
Skip to first unread message

Tom Hanstra

unread,
Jan 22, 2018, 3:40:55 PM1/22/18
to keywhiz-users
Hopefully there are people out on this list who can point me to more information.

I'm trying to install Keywhiz on a server and am running into problems with the database toward the end of the installation.

running the command:

mvn package -am -pl server -P h2

I end up with the error:

Tests run: 353, Failures: 0, Errors: 58, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Keywhiz (Parent) ................................... SUCCESS [  2.571 s]
[INFO] Keywhiz Testing .................................... SUCCESS [  1.291 s]
[INFO] Keywhiz API ........................................ SUCCESS [  7.974 s]
[INFO] Keywhiz Client ..................................... SUCCESS [  0.090 s]
[INFO] Keywhiz HKDF ....................................... SUCCESS [  1.735 s]
[INFO] Keywhiz Model ...................................... SUCCESS [  4.078 s]
[INFO] Keywhiz Log ........................................ SUCCESS [  0.040 s]
[INFO] Keywhiz Server ..................................... FAILURE [01:48 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:06 min
[INFO] Finished at: 2018-01-22T15:33:23-05:00
[INFO] Final Memory: 29M/74M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project keywhiz-server: There are test failures.
[ERROR]
[ERROR] Please refer to /opt/src/keywhiz/server/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]

I'm guessing this has to do with me not properly setting up the h2 database properly, but I see nothing in the documentation about how to set up the h2 database.  For that matter, I would prefer to use mysql but I got even less far with the setup using the mysql option of maven. But, again, it could well be that there is an expectation of setting up a database ahead of time and I see no documentation on how that is supposed to be set up.

Can anyone give me the additional background information I would need for that?  

Thanks,
Tom Hanstra

Matthew McPherrin

unread,
Jan 22, 2018, 4:00:18 PM1/22/18
to Tom Hanstra, keywhiz-users
H2 ought to work without any extra setup. Maybe you could post what specific test failed?

The default config for MySQL assumes it can connect on localhost as root with no password, I think (whatever Travis ci provides)

--
You received this message because you are subscribed to the Google Groups "keywhiz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keywhiz-users+unsubscribe@googlegroups.com.
To post to this group, send email to keywhi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keywhiz-users/73eaaf36-a339-4090-8699-8e4c18e36a54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages