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.

error: argument --master-port: invalid int value bug

See original GitHub issue

Describe the bug

locust: error: argument --master-port: invalid int value: ‘tcp://172.30.44.4:8089’

Expected behavior

Locust runs correctly without producing this error. As --master-port wasn’t even supplied.

Actual behavior

When invoking locust in master mode using the following: locust -f /scripts/locust-script.py --master the following error occurs locust: error: argument --master-port: invalid int value: 'tcp://172.30.44.4:8089'

Steps to reproduce

Start locust in the container using the command: locust -f /scripts/locust-script.py --master Error occurs.

Environment settings

  • OS: RHEL
  • Python version: Python 3.6 from image registry.redhat.io/rhel8/python-36
  • Locust version: Using latest.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:53 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
cyberwcommented, May 22, 2020

This should not happen any more now that we have renamed the env var for master port to LOCUST_MASTER_NODE_PORT (the original issue I mean, some of the followup discussion here might still apply, but that should be a separate ticket)

4reactions
cjbehmcommented, Jan 24, 2020

ahh ok. i see what’s happening; it’s a clash between auto-populated ENV variables that come from creating “Service” objects in k8s. It only clicked now, but naming a Service “locust-master” in k8s results in an environment value that is “LOCUST_MASTER_SERVICE” (and a bunch of other values). And those auto names happen to overlap some of the names that locust looks at.

I’m not sure what the best solution is; documentation could help but that’s always fragile. Obviously short-term I can just just different names for the k8s objects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python argparse error: error: argument count: invalid int value
I am trying to run below code in jupyter notebook. import argparse parser = argparse.ArgumentParser ...
Read more >
connect-timeout: invalid int value - Fix error: argument
In case a connection timeout was configured, the check crashed with error: argument --connect-timeout: invalid int value This has been fixed.
Read more >
MPLAB XC16 C Compiler User's Guide - Mouser Electronics
3.7.4 Options for Controlling Warnings and Errors . ... int type must be able to hold at least a 16-bit value, but it...
Read more >
Privilege Management for Unix and Linux Version History
"5622.1 Policy Server error getting peer name - Invalid IP protocol" when configured to unix domain sockets. 9. pbdbutil --sudo -U (unlock locked...
Read more >
RHSA-2022:5069 - Security Advisory - Red Hat 고객 포털
Important: OpenShift Container Platform 4.11.0 bug fix and security ... Wrong error code provided when request contains invalid argument ...
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