Closed Alan-R closed 8 years ago
OK. On further investigation, neoauth is probably found.
But instead I'm guessing it's failing with a 404. This is because security was disabled to make the tests work in the past. You probably have a line that looks something like this: echo 'dbms.security.auth_enabled=false' >> $NEOROOT/conf/neo4j-server.properties
You need to remove that to make the tests work (now) - because I now handle authentication correctly, and it you leave it disabled, then my attempts to change/set the authentication key (password) up correctly won't work.
The corresponding change in my build procedures can be found here: https://github.com/assimilation/assimilation-official/commit/c87f512ec7277833c0c209a0d409ab22b60e32d1
I fixed it by changing the buildtools/ci/install_neo4j script, and also deleting the inactive and confusing top-level ci directory.
We have a failed build here: https://travis-ci.org/assimilation/assimilation-official/builds/101161253
It appears to be caused by the fact it can't find the neoauth program.
Neoauth gets installed when you install the py2neo python package. I see it got installed, but I don't know why this command isn't found. Perhaps a PATH problem? On my machine, it's installed under /usr/local/bin. Not sure if that's universal or not...
Here's where this shows up (16 times) in the build output:
CalledProcessError: Command '['neoauth', 'neo4j', 'neo4j', ')(UJZUBbLXRkez&P']' returned non-zero exit status 1
This is the cause of this failure.
I presume that the command isn't found. You does not have to be root for this to work. You just have to know the default password ("neo4j").
If you're not root, then you'll get a different failure in the same module ;-) -- but not this one.