square / keywhiz

A system for distributing and managing secrets
https://square.github.io/keywhiz/
Apache License 2.0
2.62k stars 216 forks source link

Failure building server - Windows #179

Closed hazemkmammu closed 8 years ago

hazemkmammu commented 8 years ago

I was trying to build the server (on a Windows 7 Professional SP1) using mvn package -am -pl server -P h2 following the instructions at https://square.github.io/keywhiz/#setup. It fails with the following message:

[INFO] Keywhiz (Parent) .................................. SUCCESS [  1.822 s]
[INFO] Keywhiz Testing ................................... SUCCESS [  1.606 s]
[INFO] Keywhiz API ....................................... SUCCESS [  3.947 s]
[INFO] Keywhiz Client .................................... SUCCESS [  0.161 s]
[INFO] Keywhiz HKDF ...................................... SUCCESS [  0.917 s]
[INFO] Keywhiz Model ..................................... FAILURE [  0.342 s]
[INFO] Keywhiz Server .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.039 s
[INFO] Finished at: 2016-03-08T10:41:56+05:30
[INFO] Final Memory: 20M/118M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2:migrate (def
ault) on project keywhiz-model: org.flywaydb.core.api.FlywayException: Unable to
 obtain Jdbc connection from DataSource (jdbc:h2:/tmp/h2_data/keywhizdb_test) fo
r user 'root': A file path that is implicitly relative to the current working di
rectory is not allowed in the database URL "jdbc:h2:/tmp/h2_data/keywhizdb_test"
. Use an absolute path, ~/name, ./name, or the baseDir setting instead. [90011-1
87] -> [Help 1]
mcpherrinm commented 8 years ago

Keywhiz is not currently supported on Windows. https://github.com/mcpherrinm/keywhiz/tree/mmc/windows-cli has experimental support, but it's crappy and not recommended for use.

hazemkmammu commented 8 years ago

OK. Thanks for letting me know.