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

Results page is empty in Windows 10 #77

Open
skunkyevil opened this issue Feb 4, 2022 · 3 comments
Open

Results page is empty in Windows 10 #77

skunkyevil opened this issue Feb 4, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@skunkyevil
Copy link

skunkyevil commented Feb 4, 2022

Notebooker is a great and promising project, however I could not get it it working in Windows.

I had to figure out some specific dependency versions to be able to make it (almost fully) working in Docker
(in particular, pymongo==3.6, papermill==1.2.1)
I say "almost" because tests related to scheduling fail (and had some runtime errors related to git functionality).

In Windows 10 I tried do the same that worked in Docker: the same Anaconda version (2020.07 python=3.7), the same mongodb version (4.4.1), pymongo 3.6 and papermill 1.2.1.

Example notebooks get executed fine and results get stored into database. But when I want to see them, the web interface gives empty results table.
I've checked the underlying request:
http://127.0.0.1:11828/core/get_all_available_results?limit=100&report_name=sample/plot_random
it also gives empty output ([ ])

@jonbannister
Copy link
Collaborator

Hey, thanks for your feedback. I have a couple of questions:

  1. Please could you give me a very quick overview of how you're running it within docker?
  2. Please could you send a traceback of the failing tests?
  3. Please could you send a screenshot of the frontpage?
  4. How are you executing the notebooks? From within the webapp? If not, it sounds perhaps like your webapp is pointing to a different database, so worth checking the logging output when it starts up to see it's pointing to the mongo db you expect it to be in.

@jonbannister jonbannister added the bug Something isn't working label Feb 10, 2022
@skunkyevil
Copy link
Author

cd docker
docker-compose up

But I had to introduce some modifications beforehand.

In setup.py:

        "pytest>=6.2.0",
        "pymongo==3.6",
        "papermill==1.2.1",

In order for setup to complete (except pymongo version, that is needed for webapp to work without failures)

In docker-compose.yaml:

Replaced
command: ["notebooker_webapp"]
with
command: ["tail", "-f", "/dev/null"]
because that entry point didn't work for me (is it valid?), so I executed notebooker webapp later via

    docker exec -it docker_notebooker /bin/sh
    notebooker-cli --mongo-host mongodb:27017 --mongo-user root --mongo-password toor start-webapp --port 11828

pytest output.txt

I think you mean screenshots when I'm running notebooker in Windows (because I have an issue with empty results there). So I've attached 2 screenshots: frontpage and an empty results page when I click the first item
frontpage screenshot
sample plot random screenshot

Within the webapp only. The mongo db initializer args in logging corresponds to the args I used when starting webapp

@jonbannister
Copy link
Collaborator

Aha, something fishy may be happening with the slashes, I'll have a little dig. Thanks for the heads-up on the docker bit: that can also be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants