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

API not working #7

Open
majd1239 opened this issue Feb 27, 2018 · 6 comments
Open

API not working #7

majd1239 opened this issue Feb 27, 2018 · 6 comments

Comments

@majd1239
Copy link

I downloaded the model and started the api and the web UI.
I'm getting 404 responses when I try to use the api and 'Network communication failed' when trying to use the web ui.

When I try to do ./wsd web-app:test, it just get stuck and there is no output.

Please help.

Thanks

@alexanderpanchenko
Copy link
Contributor

Hello,

Can you please provide the list of commands you issued starting from the git clone and your exact environment to try to reproduce.

@majd1239
Copy link
Author

git clone -> ./wsd model:download ->./wsd web-app:start

I'm running it on a google compute instance. OS is Debian.

Here is the IP address for the web UI: http://35.225.249.66:8080
And for the api: http://35.225.249.66:9000

@alexanderpanchenko
Copy link
Contributor

alexanderpanchenko commented Feb 27, 2018 via email

@majd1239
Copy link
Author

majd1239 commented Mar 1, 2018

I don't see any routes for predictWordSense in https://github.com/uhh-lt/wsd/blob/master/api/conf/routes

/predictSense works, but it doesn't have the models listed in the api documentation:
simwords, clusterwords ,hybridwords and cosets

@alexanderpanchenko
Copy link
Contributor

alexanderpanchenko commented Mar 1, 2018 via email

@fmarten
Copy link
Collaborator

fmarten commented Mar 2, 2018

Hi @majd1239,

the problem is very likely download related. When you download the full model it will need approximately 300GB of free disk space to fully install it.

Other people had similar problems with the download of the very large model. Please take a look at my other answer #6 (comment) to see whether the DB is fully installed.

This download phase does essentially two things,

  1. it downloads db and images tar into data/backup/
  2. unpacks them both and puts them into place (./pgdata and ./imgdata) for docker.

The mere fact that these folders are in place does not say that it was successful, as docker creates those folders if they do not exist.

We are working on a solution with better error reporting.
For now it should be fine, if you figure out at which point you are in the process. And see whether you have to rerun it or free some disk space first.

If you get stuck just write us here. It is good to know what exact problems people run into.

Does this help?

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