Skip to content
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

Errno::EADDRNOTAVAIL: Cannot assign requested address - connect(2) for [::1]:7687 #7

Closed
jasonfine opened this issue May 31, 2023 · 2 comments

Comments

@jasonfine
Copy link

Hi - trying to use this in an existing docker-based app, i've followed the docs and referenced the compose file in your example app https://github.com/ahmad-elassuty/rails_graph_example, but am seeing the error when running

docker-compose app bundle exec rails rails_graph:export:neo4j -- -u neo4j -p anypass123 -h neo4j://localhost:7687

rails aborted!
Errno::EADDRNOTAVAIL: Cannot assign requested address - connect(2) for [::1]:7687
@ahmad-elassuty
Copy link
Owner

Hi @jasonfine 👋 It seems that your app cannot connect to the Neo4j database. I would suggest you first verify that the Neo4j container is running and the database has started. If the database container is running, then you should be able to access Neo4j Browser UI on http://localhost:7474/ , let me know how it goes!

@jasonfine
Copy link
Author

The issue was trying to use localhost in the generator command, Docker wasn't liking that. What ended up working was using neo4j://graph_db instead of neo4j://localhost:7687

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants