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

About gbuild and ghttp #106

Open
xqx1568 opened this issue May 24, 2021 · 4 comments
Open

About gbuild and ghttp #106

xqx1568 opened this issue May 24, 2021 · 4 comments

Comments

@xqx1568
Copy link

xqx1568 commented May 24, 2021

I met a strange problem today.
When I use command bin/gbuild dbpedia201604 triples.txt to build a new db, I got the message bellow.
image
I think it means my biuld has some error, my db file is 4k.
image
When I run service by command: bin/gtttp db, the program could not listen on the port successfully.
image
image
Could you help me?
free -g
image

@YuqqiZhou
Copy link
Collaborator

I cannot locate the problem from picture. So I can only give some suggestion. Your system memory is enough., it's not the problem.

  1. In picture 1, gbuild shows that your txt file have 5 triples.
    1. Make a file, for example t.sql.
    1. And type in this sql: select * where {?s ?p ?o.}
    1. bin/gquery dbpedia201604 t.sql
  1. In picture 3,when you run bin/ghttp dbpedia201604, if success, you should see the words below:
    total preID num is xxx
    important pre ID is: xx xx xx
    get candidate preID...
    But I don't see it in the picture. The picture shows that the 9000 port has alraedy been acquired by ghttp. If anything goes well, the last lines you should see are:
    transaction log has been created.
    queryLog: xxx.log
    backup path: ./backups
    And if you have met these lines, open another terminal and type lsof -i:9000 to check. If my suggestion doesn't work, please send me the whole output of gbuild & ghttp to locate the problem.

@fyulingi
Copy link
Collaborator

I think your bin/gbuild is ok, since the program have read 198969727 triples when runing "gbuild" (line 8). The triple num: 5 is showed when inserting some statistics of your new db to system.db, it's information of your system.db, not dbpedia201604.db.
And if you want to see the size of a folder with all files in it, you need the command "du -h --max-depth=1" instead of "ls -l".

@xqx1568
Copy link
Author

xqx1568 commented Jun 7, 2021

image
When I use ghttp, I will get this problem.
I think it is because I have used the error command ctrl-C to stop ghttp.
But whether I create a new database or reinstall gStore, this problem is always here.
Can you tell me what I can do now?

@YuqqiZhou
Copy link
Collaborator

It seems that the system.db directory has some err. Try to type 'bin/ginit' to reinit the directory. If that fails, you can try deleting the entire gStore directory , not just to recompile it

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

3 participants