Bookworm-project / BookwormDB

Tools for text tokenization and encoding
MIT License
84 stars 12 forks source link

OneClick Bookworm "Status" stuck on "building" #51

Open tpmccallum opened 9 years ago

tpmccallum commented 9 years ago

Hi, Thanks for your help in advance,

The only way I can think of diagnosing this and moving forward is to provide 2 zip files and ask that you compare them with your knowing eye. I have compared everything and I can not get my zip to build/work, in the OneClick Bookworm, for some reason.

I have provided links to my zip and a cut back version of one of your zip files that works. 1) the zip file that I created (BookwormDB) http://ec2-54-66-214-94.ap-southeast-2.compute.amazonaws.com/here/BookwormDB.zip

2) a zip file which I downloaded from the bookworm site which works (I have reduced the number of records for easier analysis) (comparo) http://ec2-54-66-214-94.ap-southeast-2.compute.amazonaws.com/here/comparo.zip

Really looking forward to getting this working, have a large number of PDFs to analyse.

Thanks again. Tim

tpmccallum commented 9 years ago

Alternatively, I can install this on my own server - what are the components which would produce the same visual result as the bookworms like OL at < http://bookworm.culturomics.org/OL/ >? Thanks so much

sa501428 commented 9 years ago

Hey Tim,

Sorry for the delay. The GUI part is forked from this repo: https://github.com/Bookworm-project/BookwormGUI

The changes that need to be made are as follows:

Once you generate a bookworm, it should create a my_bookworm_name.json file This file should replace the options.json file in the static folder. Then change line 30 in static/js/a.js:

        url: "static/options.json"       -->       url: "static/my_bookworm_name.json"

Let me know how it goes.

sa501428 commented 9 years ago

Also thank you for the notifications regarding OneClick. Will work on them as soon as I get a chance.

tpmccallum commented 9 years ago

Hi, Thank you so much for getting back to me. I now have my server producing a similar looking output to the one click site at < http://bookworm.culturomics.org/ >

I have already made my bookworm in my home directory so will need to start the installation process over because it does not want to rebuild a second time (for me) using the make command.

Can you please help me understand the file system requirements. Does my bookworm have to be in the apache directory?

I think if I understand the file system then I will be able to reinstall again successfully.

Thanks so much in advance for your reply

Tim

On 20 February 2015 at 10:50, sa501428 notifications@github.com wrote:

Hey Tim,

Sorry for the delay. The GUI part is forked from this repo: https://github.com/Bookworm-project/BookwormGUI

The changes that need to be made are as follows:

Once you generate a bookworm, it should create a my_bookworm_name.json file This file should replace the options.json file in the static folder. Then change line 30 in static/js/a.js:

    url: "static/options.json"       -->       url: "static/my_bookworm_name.json"

Let me know how it goes.

— Reply to this email directly or view it on GitHub https://github.com/Bookworm-project/BookwormDB/issues/51#issuecomment-75170565 .

sa501428 commented 9 years ago

No problem. Ben will correct me if the API has changed, but the setup for oneclick is as follows:

Frontend

      /var/www/your_bookworm_gui_directory

API bindings (APIimplementation.py,dbbindings.py,knownHosts.py)

      /usr/lib/cgi-bin/

The mysql server must be referenced in the configuration file so that it's properly queried (may need to be updated in the python files). This is probably at

      /home/youruser/.my.cnf