Octavian-ai / english2cypher

A model to transform english into Cypher queries, based off the CLEVR-graph dataset
The Unlicense
76 stars 20 forks source link

Authentication problem #9

Open scrman opened 5 years ago

scrman commented 5 years ago

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 commented 5 years ago

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 https://github.com/Octavian-ai/english2cypher/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSQKIUIAFBZTT3H5PJSAPTPSHHKXANCNFSM4HION7YA .

scrman commented 5 years ago

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 commented 5 years ago

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 https://github.com/Octavian-ai/english2cypher/issues/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 https://github.com/Octavian-ai/english2cypher/issues/9#issuecomment-488077496, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSQKIWHSDCAAJFRKYG62RLPTCKPJANCNFSM4HION7YA .

scrman commented 5 years ago

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 commented 5 years ago

Surething!

"python -m gql.load” means “Run the script named load in the module gql”, so you want to run it in the folder containing the folder gql

On April 30, 2019 at 9:13:23 PM, scrman (notifications@github.com) wrote:

python -m gql.load