Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Authentication problem #9

Open
scrman opened this issue Apr 25, 2019 · 5 comments
Open

Authentication problem #9

scrman opened this issue Apr 25, 2019 · 5 comments

Comments

@scrman
Copy link

scrman commented Apr 25, 2019

Hello,
I was trying to follow your instruction, I used Docker and the from start-neo4j-database.sh to connect to the neo4j database, but I could not get the password to the host, could you please let me know how to get that? Thank you. The error is : Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.

@davidhughhenrymack
Copy link
Contributor

davidhughhenrymack commented Apr 25, 2019 via email

@scrman
Copy link
Author

scrman commented Apr 30, 2019

Does the docker image you used contain instructions on what the default password is? On April 25, 2019 at 8:50:04 AM, scrman (notifications@github.com) wrote: Hello, I was trying to follow your instruction, I used Docker and the from start-neo4j-database.sh to connect to the neo4j database, but I could not get the password to the host, could you please let me know how to get that? Thank you. The error is : Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9>, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSQKIUIAFBZTT3H5PJSAPTPSHHKXANCNFSM4HION7YA .

I could not find it. I am using Mac, here's what I did based my understanding of your instruction:

  1. I used " brew install pipenv",
  2. I used " pipenv shell" to created virtual environment.
  3. I installed Docker and connected Docker.
  4. When I typed the following code from "the start-neo4j-database.sh" file:
    docker run -it -p 7474:7474 -p 7687:7687 --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --env NEO4J_AUTH=neo4j/clegr-secrets andrewjefferson/myneo4j:3.4.1-enterprise-plus-apoc,

The bash gave me information like this:

Changed password for user 'neo4j'.
Active database: graph.db
Directories in use:
home: /var/lib/neo4j
config: /var/lib/neo4j/conf
logs: /var/lib/neo4j/logs
plugins: /plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/lib/neo4j/run
Starting Neo4j.
2019-04-30 18:54:15.259+0000 INFO ======== Neo4j 3.4.1 ========
2019-04-30 18:54:15.286+0000 INFO Starting...
2019-04-30 18:54:17.073+0000 INFO Initiating metrics...
2019-04-30 18:54:17.696+0000 INFO Sending metrics to CSV file at /var/lib/neo4j/metrics
2019-04-30 18:54:17.930+0000 INFO Bolt enabled on 0.0.0.0:7687.
2019-04-30 18:54:20.637+0000 INFO Started.
2019-04-30 18:54:20.710+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.all)
2019-04-30 18:54:20.713+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.idle)
2019-04-30 18:54:20.822+0000 INFO Mounted REST API at: /db/manage
2019-04-30 18:54:20.879+0000 INFO Server thread metrics has been registered successfully
2019-04-30 18:54:21.572+0000 INFO Remote interface available at http://localhost:7474/

So it seems like the password was changed for "neo4j" user when I used your code to connect.
Is there anyways you could help me figure out the password?

Thank you so much for the help! I'm pretty new to database, this is first semester's class.

@davidhughhenrymack
Copy link
Contributor

davidhughhenrymack commented Apr 30, 2019 via email

@scrman
Copy link
Author

scrman commented May 1, 2019

This line sets creds 1. NEO4J_AUTH=neo4j/clegr-secrets Username is therefore neo4j Password is clear-secrets On April 30, 2019 at 12:09:41 PM, scrman (notifications@github.com) wrote: Does the docker image you used contain instructions on what the default password is? On April 25, 2019 at 8:50:04 AM, scrman ( notifications@github.com) wrote: Hello, I was trying to follow your instruction, I used Docker and the from start-neo4j-database.sh to connect to the neo4j database, but I could not get the password to the host, could you please let me know how to get that? Thank you. The error is : Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9 <#9>>, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSQKIUIAFBZTT3H5PJSAPTPSHHKXANCNFSM4HION7YA . I could not find it. I am using Mac, here's what I did based my understanding of your instruction: 1. I used " brew install pipenv", 2. I used " pipenv shell" to created virtual environment. 3. I installed Docker and connected Docker. 4 When I typed the following code from "the start-neo4j-database.sh" file: docker run -it -p 7474:7474 -p 7687:7687 --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --env NEO4J_AUTH=neo4j/clegr-secrets andrewjefferson/myneo4j:3.4.1-enterprise-plus-apoc, The bash gave me information like this: Changed password for user 'neo4j'. Active database: graph.db Directories in use: home: /var/lib/neo4j config: /var/lib/neo4j/conf logs: /var/lib/neo4j/logs plugins: /plugins import: /var/lib/neo4j/import data: /var/lib/neo4j/data certificates: /var/lib/neo4j/certificates run: /var/lib/neo4j/run Starting Neo4j. 2019-04-30 18:54:15.259+0000 INFO ======== Neo4j 3.4.1 ======== 2019-04-30 18:54:15.286+0000 INFO Starting... 2019-04-30 18:54:17.073+0000 INFO Initiating metrics... 2019-04-30 18:54:17.696+0000 INFO Sending metrics to CSV file at /var/lib/neo4j/metrics 2019-04-30 18:54:17.930+0000 INFO Bolt enabled on 0.0.0.0:7687. 2019-04-30 18:54:20.637+0000 INFO Started. 2019-04-30 18:54:20.710+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.all) 2019-04-30 18:54:20.713+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.idle) 2019-04-30 18:54:20.822+0000 INFO Mounted REST API at: /db/manage 2019-04-30 18:54:20.879+0000 INFO Server thread metrics has been registered successfully 2019-04-30 18:54:21.572+0000 INFO Remote interface available at http://localhost:7474/ So it seems like the password was changed for "neo4j" user when I used your code to connect. Is there anyways you could help me figure out the password? Thank you so much for the help! I'm pretty new to database, this is first semester's class. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#9 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSQKIWHSDCAAJFRKYG62RLPTCKPJANCNFSM4HION7YA .

I have another question to ask now, and thank you so much for the previous help and very quick reply, the password worked:)!

I connected to neo4j now with Docker and now I'd like to run your code and test your model.

You said on the CLEVR-graph dataset page, the next step is to run code:
python -m gql.load , to load the graph to the neo4j database

How should I run this code?
I saw the gql folder on this webpage, should I download the files in this folder and do something?
Could you please tell me what are the specific steps I need to do to run this code??
Because when I type this code in pipenv , I couldn't get anythig.

Also I saw the prediction part with code: python -m e2c.predict
I guess it probably has the similar way to run this code as the code to load the graph??

Please forgive me asking so many questions, I am really new to this and trying to learn
it as much as I can! Thank you again!

@davidhughhenrymack
Copy link
Contributor

davidhughhenrymack commented May 2, 2019 via email

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

No branches or pull requests

2 participants