Neo4J at FreeBSD

263 views
Skip to first unread message

Fabio Favero Henkes

unread,
Dec 25, 2013, 4:24:21 PM12/25/13
to ne...@googlegroups.com
Hi!

Well, I'm trying to combine those awesome piece o tech.. Neo4J 2.0.0 and FreeBSD.

In this crusade i'm getting into some issues.

After install Oracle Java:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Server VM (build 24.45-b08, mixed mode)

Installed "lsof" pkg_add -r lsof

Altered the "../neo4j/bin/neo4j" script to use the right bash, changing "/bin/bash" to "/usr/local/bin/bash"

And run it with bash instead of the FreeBSD default csh I'm getting..

# ./neo4j start
Starting Neo4j Server...Ambiguous output redirect.
cat: /usr/local/etc/neo4j/data/neo4j-service.pid: No such file or directory
process []... waiting for server to be ready. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
rm: /usr/local/etc/neo4j/data/neo4j-service.pid: No such file or directory

Log files are not even created.. so i got no clue, but I suspect the error is related to "Ambiguous output redirect." with I also thought using bash would solve the issue.

Thanks in advance for any support..

Cheers

Johannes Mockenhaupt

unread,
Dec 29, 2013, 3:09:08 AM12/29/13
to ne...@googlegroups.com
Hi Fabio,

try running neo4j like this:

/usr/local/bin/bash -x neo4j start

This will make the bash print out each command as it is executed and
should thus tell you which command produces the message about the
redirect. Also, what version of bash are you using?
> --
> You received this message because you are subscribed to the Google
> Groups "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Paul Jongsma

unread,
Mar 31, 2014, 7:00:41 AM3/31/14
to ne...@googlegroups.com

Had the same issue and I found that creating a dedicated neo4j user with bash as shell resolves it.
The steps I did to get Neo4J 2.0.1 running:

pkg install bash
pkg install openjdk
pkg install lsof

Modify both the neo4j and utils script to use /usr/local/bin/bash instead of /bin/bash

su to neo4j user
cd bin
./neo4j start

Haven't found any issues yet, the setup is currently only used for testing though.

Best regards,
Paul






Reply all
Reply to author
Forward
0 new messages