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.

Distributed command line cannot run

See original GitHub issue

Describe the bug

I use the command to run but cannot start a swarming. Please like the picture locust -f load.py --master[2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: Traceback (most recent call last): [2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: File “/Users/user/PycharmProjects/APILoadTest/venv/bin/locust”, line 10, in <module> [2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: sys.exit(main()) [2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,423] Marcs-MacBook-Pro.local/ERROR/stderr: File “/Users/user/PycharmProjects/APILoadTest/venv/lib/python3.8/site-packages/locust/main.py”, line 495, in main [2020-07-01 16:03:38,424] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,424] Marcs-MacBook-Pro.local/ERROR/stderr: runners.locust_runner = MasterLocustRunner(locust_classes, options) [2020-07-01 16:03:38,424] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,424] Marcs-MacBook-Pro.local/ERROR/stderr: File “/Users/user/PycharmProjects/APILoadTest/venv/lib/python3.8/site-packages/locust/runners.py”, line 346, in init [2020-07-01 16:03:38,425] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,425] Marcs-MacBook-Pro.local/ERROR/stderr: self.server = rpc.Server(self.master_bind_host, self.master_bind_port) [2020-07-01 16:03:38,425] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,425] Marcs-MacBook-Pro.local/ERROR/stderr: File “/Users/user/PycharmProjects/APILoadTest/venv/lib/python3.8/site-packages/locust/rpc/zmqrpc.py”, line 41, in init [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: self.socket.bind(“tcp://%s:%i” % (host, port)) [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: File “zmq/backend/cython/socket.pyx”, line 550, in zmq.backend.cython.socket.Socket.bind [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: File “zmq/backend/cython/checkrc.pxd”, line 26, in zmq.backend.cython.checkrc._check_rc [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: zmq.error [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: . [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: ZMQError [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: : [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: Address already in use [2020-07-01 16:03:38,426] Marcs-MacBook-Pro.local/ERROR/stderr: `

Expected behavior

Hope it can run well

Actual behavior

Cannot start swarming even though click the button of starting a swarming, it cannot go 截屏2020-07-01 下午3 22 40

Steps to reproduce

Environment

  • OS: Mac OS
  • Python version:3.8
  • Locust version:2.4
  • Locust command line that you ran: locust -f YouthBombAPI.py --slave
  • Locust file contents (anonymized if necessary):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
MarcStevencommented, Jul 3, 2020

Yeah, right, restart it and then it disappeared.

0reactions
cyberwcommented, Jul 7, 2020

I have tried to improve the logging in https://github.com/locustio/locust/pull/1471

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't distribute a Mac command line tool - Stack Overflow
I've created a simple command line tool with Xcode that we need to use internally in our company and distribute to clients.
Read more >
Cannot run command with distribution whose name contains ...
The name of the installed distribution contains space (e.g. "a b" ). Try to invoke with this distribution by wsl.exe -d "a b"...
Read more >
Running a command on the client - TechNet - Microsoft
Hi, I need to run the following command on clients : C:\Program Files\7-Zip\Uninstall.exe /S So I put this commande in run.bat file on...
Read more >
Configuring vSwitch or vNetwork Distributed Switch from the ...
This article provides commands and information to restore management network connectivity via the correct vmnic interface. Resolution. Notes: In ...
Read more >
Apache Hadoop Distributed Copy – DistCp Guide
Command Line Options; Architecture of DistCp ... snap2 doesn't have 1.txt before running sync command, the command will still succeed.
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