-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neo4j installation is buggy #823
Comments
Good catch, thanks! We could certainly do this, though we'd probably want a prompt asking the user to verify that they're OK with the old directory being deleted. Maybe showing the size of the Or maybe there could be a separate command to remove the installation. It would be nice if you could run a command to update the installation of Neo4j as I've often wanted to do that and I end up doing it manually |
Well the current behaviour would already overwrite everything if the mv bug wasn't there so I guess that would be acceptable as a first quick fix until something better is done? |
I started working on this, but I was so frustrated by the state of the rake tasks that I extracted the code into classes and then extracted it into a separate gem: https://github.com/neo4jrb/neo4j-rake_tasks I haven't done this ticket yet, but it should be much easier when I'm done ;) |
Moved to neo4jrb/neo4j-rake_tasks#4 |
I've just updated to 5.0.0.rc.2 to use the fixed rake tasks and found two issues with the
install
task:When I first run
bundle exec rake protected_neo4j_install[community-2.2.2,test]
it installs Neo4j indb/neo4j/test/
. I get all files directly under thetest
folder.If I run the rake task a second time, everything runs again but this time I end up with a
neo4j-community-2.2.2
folder insidedb/neo4j/test/
and all newly installed files within this new folder.Subsequent runs will fail with error:
A way to fix this could be to remove the
test
directory before trying to move the extracted archive.I do not have time right now to fork/PR but I have fixed the problem locally for UNIX systems (starting line 113 of
neo4j_server.rake
):Other issues
That's because
download_neo4j_unless_exists
will returnnil
when the file already exists instead of returning the name of the (already) downloaded file.The text was updated successfully, but these errors were encountered: