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

KGQAn Server startup issue #6

Open
DamianMYM opened this issue Mar 5, 2024 · 11 comments
Open

KGQAn Server startup issue #6

DamianMYM opened this issue Mar 5, 2024 · 11 comments

Comments

@DamianMYM
Copy link

Hello Reham,

I still can not initiate the KGQAn server I really appreciate your work and I hope I can run it successfully. (I started a new one due to a long time waiting for your response lol).

This time I set up the correct path and started kgqan server again, it could load the model properly.
BUT, I had been waiting for like 1h and nothing shown on the terminal after automately downloading everything, which I should have expected this message: Server started http://0.0.0.0:8899
image

image I do have another terminal operating the word-embedding server simultaneously like this. image

This is really strange and I have no idea how to solve it.

Looking forward to your reply.

Many thanks,
Damian

@Reham-Osama
Copy link
Collaborator

Hi Damian,

Sorry for the late reply, Can you please pull the latest changes, It was a logging error that should be fixed now

Please let me know if you are facing any other errors.

@DamianMYM
Copy link
Author

Hello Reham,

Thanks for your patient reply!

One last question for server mode, I successfully launched the server, and sent the request both by CURL and POSTMAN followed by the instructions from your home page.
Unfortunately, there is no response at all.

Due to other works, I tried this today and found the issue. I am really into your work and sorry for so many questions.

Many thanks,
Damian

@Reham-Osama
Copy link
Collaborator

Hello Damian,

Can you please send me the curl request you are sending, and the server log corresponding to this request?

@DamianMYM
Copy link
Author

 `curl -X POST -H "Content-Type: application/json" \
 -d '{"question": "Who founded Intel?", "knowledge_graph": "dbpedia", "max_answers": 3}' \
 http://0.0.0.0:8899`
 Simply followed your example. And unfortunately, there is nothing about this request.

@Reham-Osama
Copy link
Collaborator

When you check the server logs themselves, i.e. the window where it prints Server started http://0.0.0.0:8899
Are there any lines that follow this line?

@DamianMYM
Copy link
Author

No, nothing, only printed this line, and then nothing returned.
Server started http://0.0.0.0:8899

@Reham-Osama
Copy link
Collaborator

Hi Damian,
I tested a new installation of the system, and followed the steps and it worked for me returning this output
[{"question": "Who founded Intel?", "sparql": " SELECT ?var1 ?type WHERE { <http://dbpedia.org/resource/Intel> <http://dbpedia.org/property/founders> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type . } }", "values": ["http://dbpedia.org/resource/Robert_Noyce", "http://dbpedia.org/resource/Gordon_Moore"], "named_entites": ["Intel", "var1"], "extracted_relation": [["Intel", "var1", "founded"]], "score": 0.771619810277574, "nodes": ["http://dbpedia.org/resource/Intel"], "edges": ["http://dbpedia.org/property/founders"]}, {"question": "Who founded Intel?", "sparql": " SELECT ?var1 ?type WHERE { ?var1 <http://dbpedia.org/ontology/knownFor> <http://dbpedia.org/resource/Intel> . OPTIONAL { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type . } }", "values": ["http://dbpedia.org/resource/Andrew_Grove", "http://dbpedia.org/resource/Gordon_Moore", "http://dbpedia.org/resource/Arthur_Rock"], "named_entites": ["Intel", "var1"], "extracted_relation": [["Intel", "var1", "founded"]], "score": 0.6947743530520285, "nodes": ["http://dbpedia.org/resource/Intel"], "edges": ["http://dbpedia.org/ontology/knownFor"]}]

For your case, it seems that the request does not reach the server, which maybe is because of a network error, Can you make sure that the machine you are using has port 8899 open? If not, you can change the port number in src.kgqan.server.py Line 12 for another port that will work with your machine

@DamianMYM
Copy link
Author

image

Hi Reham,

Thanks for your reply, though as the image shows my instance is still not working.

Since received your message, here are the things I tried.

  1. I checked the firewall, which is closed definitely. Also, the network works fine.
  2. And then I tried another port, which can work properly while using the ssh command to communicate with my machine. BUT still.
  3. I checked the log, and there is still nothing in there.

May I ask if it could be working by batching inputs perhaps? As I haven't tried the other way. And I feel so sorry for taking the time to answer my questions.

Many thanks,
Damian

@Reham-Osama
Copy link
Collaborator

Hi Damian,

Can you try this command and let me know the result telnet 0.0.0.0 8899

@DamianMYM
Copy link
Author

image

I can see that It has connected.

@Reham-Osama
Copy link
Collaborator

Hi Damian,
This is so strange, Can you try restarting the server and see if the error persists ?

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