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

Running ndlib-rest on Windows 10? #9

Open
szymanskim opened this issue Jun 11, 2018 · 8 comments
Open

Running ndlib-rest on Windows 10? #9

szymanskim opened this issue Jun 11, 2018 · 8 comments
Assignees

Comments

@szymanskim
Copy link

szymanskim commented Jun 11, 2018

Is it possible to run app on Windows 10?
I get empty UI while running prebuilt Docker image.
image
Console logs points to node.js:
image

When I am building the image by myself, it fails again
image

Local testing
image

Running gunicorn:
image
fcntl looks like Linux command.

@GiulioRossetti
Copy link
Owner

I'll try to reproduce the docker error as soon as possible.

In the meantime check if your current installation of ndlib is updated: from your local testing screen it seems that your version does not have the SWIRModel class.

@szymanskim
Copy link
Author

szymanskim commented Jun 11, 2018

You're right. It was outdated, but I was sticking to the README.md file libraries versions (maybe the file should be updated ;))

Now, the server starts but nothing more.
image

Only sometimes throws:
image

It listens on :5000 but it does not respond
image

@GiulioRossetti
Copy link
Owner

Ok, it seems that - at least on Windows - there is an issue with the log file generation. It should not prevent the service from running though.

Remember that ndlib-rest by itself provide access only to the remote experiment server, not to the visual framework (which, still being in an early beta, is shipped separately). Once started ndrest.py you can access the REST api as specified in the documentation page: http://localhost:5000/docs

If you want to run the viz service, once installed and executed ndlib-rest, you have to check-out and configure the following repository: https://github.com/GiulioRossetti/NDLib_viz

@szymanskim
Copy link
Author

The problem is I cannot access the REST API, I got 404. If I understand you correctly, this URL should be working.
image

@GiulioRossetti
Copy link
Owner

GiulioRossetti commented Jun 11, 2018

Quite strange...
Try to comment ndrest.py lines 52-53 and 77 to 82. Maybe is the logging service that for some reasons forbid the service to execute properly.

import logging
from logging.handlers import RotatingFileHandler
....

# Request Logging
logger = logging.getLogger('werkzeug')
handler = RotatingFileHandler('logs/access.log.gz', maxBytes=1000, backupCount=1)
handler.setLevel(logging.INFO)
logger.addHandler(handler)
app.logger.addHandler(handler)

@szymanskim
Copy link
Author

I've tried and nothing new happened, unfortunately

@raginigupta6
Copy link

Hey, having the same problem. The URL throws 404. Any leads? Thanks in advance

@GiulioRossetti
Copy link
Owner

Hi, unfortunately, I don't have a Windows machine to reproduce the issue at the moment.
A workaround could be using the docker image instead of directly installing the rest service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants