snakemake / snakeface

The snakemake interface, currently works like a notebook (under development)
https://snakeface.readthedocs.io/
Mozilla Public License 2.0
17 stars 6 forks source link

The wms /create_workflow endpoint was not found #24

Open fgvieira opened 2 years ago

fgvieira commented 2 years ago

Hi all,

I've been looking for a way to monitor my workflows (how many are running, what is their status, which jobs failed, which jobs are pending and why, etc..) and decided to give snakeface a try.

I went through the docs and it seems quite easy, so I started snakeface, opened a browser and introduced the token. All went well. :)

$ snakeface
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
January 12, 2022 - 10:48:47
Django version 3.0.8, using settings 'snakeface.settings'
Starting ASGI/Channels version 3.0.3 development server at http://127.0.0.1:5000/
Quit the server with CONTROL-C.
HTTP GET / 302 [0.03, 127.0.0.1:45776]
Enter token: <TOKEN>
HTTP GET /login/notebook/ 200 [0.03, 127.0.0.1:45776]
Enter token: e3e58c87-8299-49d9-8a0d-ac5eaba5fe9a
HTTP POST /login/notebook/ 302 [0.48, 127.0.0.1:45812]
HTTP GET / 200 [0.02, 127.0.0.1:45812]
HTTP GET /static/fonts/themify.woff 200 [0.01, 127.0.0.1:45812]
GET /service-info
HTTP GET /api/service-info 200 [0.01, 127.0.0.1:45820]

However, when performing a dryrun of my workflow:

export WMS_MONITOR_TOKEN=<TOKEN>
snakemake --wms-monitor http://127.0.0.1:5000 --wms-monitor-arg id=3 [...] -n

I got an error:

The wms /create_workflow endpoint was not found

and snakeface also complained:

GET /create_workflow
Not Found: /create_workflow
HTTP GET /create_workflow?id=3 404 [0.01, 127.0.0.1:45822]

I searched around but could not find any help. Any idea of what might be going on? Thanks,

vsoch commented 2 years ago

If I had to guess, it might be that it failed to authenticate you (and your server requires it) https://github.com/snakemake/snakeface/blob/0928c8607608c0518d6cb279a4a506c5e1f85431/snakeface/apps/api/views.py#L75 but I can probably give you a better answer with some quick debugging! Could you point me to the workflow you are using so either this evening / the weekend I can take a look? It's probably time for some maintenance of snakeface anyway so I'm happy to test in full.

fgvieira commented 2 years ago

Just tried with the example workflow and got the same error.

Briefly, the steps were:

thanks for your help,