Hi Lukas, thanks for your feedback. changing the default to 127.0.0.1 makes sense. I’ll create an issue and change oak-run accordingly.
Regards Marcel On 25/06/14 21:22, "Lukas Kahwe Smith" <[email protected]> wrote: > >On 25 Jun 2014, at 13:25, Lukas Kahwe Smith <[email protected]> wrote: > >> >> On 25 Jun 2014, at 09:04, Marcel Reutegger <[email protected]> wrote: >> >>> Hi Lukas, >>> >>> the below example is from my 1.0 branch checkout of oak. unfortunately >>> we don¹t have pre-built binaries for the oak-run module. you will have >>> to build it yourself. you can download the most recent stable version >>> of oak from here: http://jackrabbit.apache.org/downloads.html >>> >>> to speed up the process you may want to skip tests: >>> >>> mvn -DskipTests install >>> >>> the jar file is then located in your local maven repository and under >>> oak-run/target. >> >> Ok thx .. got it compiled but I am getting an exception on startup. >> I installed MongoDB via homebrew and I can connect to the “mongo” CLI >>without any parameters. >> >> First few lines in /usr/local/var/log/mongodb/mongo.log also seem to >>indicate that I am infact using the default port: >> Wed Jun 25 13:17:07.052 [initandlisten] MongoDB starting : pid=16488 >>port=27017 dbpath=/usr/local/var/mongodb 64-bit host=localhost >> Wed Jun 25 13:17:07.052 [initandlisten] >> Wed Jun 25 13:17:07.052 [initandlisten] ** WARNING: soft rlimits too >>low. Number of files is 256, should be at least 1000 >> Wed Jun 25 13:17:07.052 [initandlisten] db version v2.4.9 >> >> But when I then launch oak I get an exception: >> lsmith@localhost jackrabbit-oak-1.0.0$ java -jar >>oak-run/target/oak-run-1.0.0.jar server http://localhost:8080/ Oak-Mongo >>--db my-oak >> Apache Jackrabbit Oak 1.0.0 >> Starting Oak-Mongo repository -> http://localhost:8080/ >> Jun 25, 2014 1:20:12 PM com.mongodb.DBTCPConnector initDirectConnection >> WARNING: Exception executing isMaster command on >>localhost/192.168.80.32:27017 >> java.net.ConnectException: Connection refused >> >> Any hints? > >got it working by adding an explicit host parameter: >java -jar oak-run/target/oak-run-1.0.0.jar server http://localhost:8080/ >Oak-Mongo --db my-oak --host 127.0.0.1 > >it seems like at least with homebrew it comes with a default config >"bind_ip = 127.0.0.1” which prevents connecting via localhost or the >machine IP >if other distributions have a similar default it might make sense to >default to 127.0.0.1 rather than locahost > >regards, >Lukas Kahwe Smith >[email protected] > > >
