koaning / skedulord

captures logs and makes cron more fun

Home Page:https://koaning.github.io/skedulord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lord serve not working?

samarpan-rai opened this issue · comments

I tried running lord serve --host 0.0.0.0 --port 8080 but I cannot find the dashboard in the allocated location. Is this broken atm? I have run the command in ubuntu and raspberry pi but I see 404 page not found.

It might be broken ... haven't used that feature in ... a year?

You can still get the overview from the commandline? I was thinking of dropping support for the server anyway since it mainly adds a security issue and doesn't really offer that many features.

I mean ... that's what dependabot keeps telling me

image

It might be broken ... haven't used that feature in ... a year?

You can still get the overview from the commandline? I was thinking of dropping support for the server anyway since it mainly adds a security issue and doesn't really offer that many features.

I think the webserver adds an easy way to view the logs of all the jobs so I could help to debug it. However, if you are planning to drop support then that would be in vain, I suppose.

I'm wondering.

If you go to the logs directory and run python3.7 -m http.server don't you then also get the logfiles?

One thing; could you share the output of the command as well as the URL that you've tried?

If you go to the logs directory and run python3.7 -m http.server don't you then also get the logfiles?

Where exactly is the log directory?

One thing; could you share the output of the command as well as the URL that you've tried?

The output:
afbeelding

I visited localhost, 127.0.0.1 and my local ip address with port 8080. All of them show the same result.
Screenshot at 2020-10-10 18-09-06
Screenshot at 2020-10-10 18-08-58
Screenshot at 2020-10-10 18-08-44

Considering that you have host=0.0.0.0 shouldn't you try the http://0.0.0.0:8080 address?

The base log directory should be ~/.skedulord from the top of my head.

Considering that you have host=0.0.0.0 shouldn't you try the http://0.0.0.0:8080 address?

I am not a network expert but if I understand correctly, listening on host 0.0.0.0 emits it to all IP address which should also include localhost, 127.0.0.1 and local ip address.

Just to be sure, I visited the address and I see the same result.

afbeelding

Does it work locally on your computer with the latest pypi version?

I'm wondering.

If you go to the logs directory and run python3.7 -m http.server don't you then also get the logfiles?

If you mean by log files the heartbeats.jsonl and the jobs directory then, yes.

afbeelding

Mhm ... strange. I'm open to a fix. But I would say that this project has a low priority on my side.

The culprit seems to be gatsby. When you do gatsby build it generates a bunch of files and these "data" were not being added in the setup.py file. I have done a few more things in my PR. The following attempts to summarize it.

  • Update setup files such that the built assets are not ignored during the installation
  • Fix the logo issue by loading it via static query rather than hosting it in app.py
  • Added a "time taken column" in the table