lsof command cat not found when start neo4j on CentOS 5.7 64bit

2,770 views
Skip to first unread message

Shouer.Shen

unread,
Mar 6, 2012, 1:34:45 AM3/6/12
to Neo4j
when I run the command : bin/neo4j start


[root@localhost neo4j-enterprise-1.6.1]# bin/neo4j start
WARNING: Detected a limit of 1024 for maximum open files, while a
minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please
refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server... process [4337]... waiting for server to be
ready.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found
.bin/neo4j: line 213: lsof: command not found


what`s reason ?


Shen

Peter Neubauer

unread,
Mar 6, 2012, 3:53:52 AM3/6/12
to ne...@googlegroups.com
Hi there,
the reason is probably that the command

lsof

does not exist on CentOS. Could you take a look at the script and try
to make it run? I guess we need to check for the OS version, and then
do a switch to something else to achieve the effect that the lsof
block does ...

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/

Emanuel Rietveld

unread,
Mar 6, 2012, 4:00:24 AM3/6/12
to ne...@googlegroups.com
The command lsof exists but is sometimes not installed by default.

Can you try yum install lsof ?

Chris Powell

unread,
Mar 13, 2012, 11:06:23 AM3/13/12
to ne...@googlegroups.com
You can usually find lsof in /usr/sbin.  Just add /usr/sbin to your (neo4j) $PATH.


Chris

Peter Neubauer

unread,
Mar 13, 2012, 12:18:43 PM3/13/12
to ne...@googlegroups.com
Cool,
thanks for the hint! If we can test this, maybe you guys can make a
pull request to the scripts, adding the lsof dir to the path?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/

Reply all
Reply to author
Forward
0 new messages