question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locust web interface not starting on Windows

See original GitHub issue
C:\Development\Test>locust -f main.py
[2013-02-27 19:30:11,346] INFO/locust.main: Starting web monitor on port 8089
[2013-02-27 19:30:11,348] INFO/locust.main: Starting Locust 0.6.2

…And then it never gets past this point. I am using the example locust file from the website for main.py

from locust import Locust, TaskSet, task

def index(l):
    l.client.get("/")

def stats(l):
    l.client.get("/stats/requests")

class UserTasks(TaskSet):
    # one can specify tasks like this
    tasks = [index, stats]

@task
def page404(self):
    self.client.get("/does_not_exist")

class WebsiteUser(Locust):
    host = "http://127.0.0.1:8089"
    min_wait = 2000
    max_wait = 5000
    task_set = UserTasks

I am running Windows 7. Any ideas on what I could be doing wrong? Would be happy to clarify more information.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

28reactions
thanhmacommented, Feb 22, 2018

I had the same problem.

After hopeless searching, I tried navigating http://localhost:8089 and web interface appeared like miracle.

Give it a try guys.

9reactions
NullP0intercommented, Mar 25, 2019

Strange http://127.0.0.1:8089/ doesn’t work but http://localhost:8089/ does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Can't reach Locust WebInterface ... - Stack Overflow
I wanted to test Locust for my Project on Windows 10. The Script seems to run properly (no Errors in CMD), but i...
Read more >
Getting started — Locust 2.14.0 documentation
Getting started¶. A Locust test is essentially a Python program. This makes it very flexible and particularly good at implementing complex user flows....
Read more >
0 1 - Get Started with Locust : Setup On Windows - YouTube
Mercurytours site is now - http://demo.guru99.com/test/newtours/index.phpVisit: http://qamilestone.comPlaylist: Get Started with ...
Read more >
locust - PyPI
To get started right away, head over to the documentation. ... Locust has a user friendly web interface that shows the progress of...
Read more >
Locust makes performance testing easy - /dev/solita
You can run Locust either in headless mode or using a web interface. Example of running in the headless mode: (env) ➜ locust-tests...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found