You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran distributed locust with master node locust version 2.32.2 and some worker node locust version 2.25.0 (python3.8 default version).
The master node crash with the following message
➜ load-test locust -f locust.py --master
[2024-11-09 14:41:07,519] nasa33/INFO/locust.main: Starting Locust 2.32.2
[2024-11-09 14:41:07,524] nasa33/INFO/locust.main: Starting web interface at http://0.0.0.0:8089
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
File "/home/uniform64/.local/lib/python3.10/site-packages/locust/runners.py", line 1030, in client_listener
if msg.data["version"][0:4] == __version__[0:4]:
TypeError: 'NoneType' object is not subscriptable
2024-11-09T06:41:13Z <Greenlet at 0x7f254a980cc0: <bound method MasterRunner.client_listener of <locust.runners.MasterRunner object at 0x7f254a963100>>> failed with TypeError
[2024-11-09 14:41:13,652] nasa33/CRITICAL/locust.runners: Unhandled exception in greenlet: <Greenlet at 0x7f254a980cc0: <bound method MasterRunner.client_listener of <locust.runners.MasterRunner object at 0x7f254a963100>>>
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
File "/home/uniform64/.local/lib/python3.10/site-packages/locust/runners.py", line 1030, in client_listener
if msg.data["version"][0:4] == __version__[0:4]:
TypeError: 'NoneType' object is not subscriptable
importrandomimportstringfromlocustimportHttpUser, taskdefgenerate_random_string(length):
return"".join(random.choices(string.ascii_lowercase+string.digits,
k=length))
defgenerate_random_bytes(length):
returnrandom.randbytes(length)
classSimpleClient(HttpUser):
@taskdefupload(self):
# random generate a index and some data (both string)index=generate_random_string(random.randint(10, 20))
data=generate_random_bytes(random.randint(100, 200))
self.client.post("/upload", headers={"Index": index}, data=data)
Python version
3.10
Locust version
2.32.2
Operating system
ubuntu22.04
The text was updated successfully, but these errors were encountered:
Unfortunately we cant support significantly different worker versions (maybe within one-two minor revisions should work though). I've added a warning and stopped reading the field that might not exist, so maybe it will work for you now, but that's as far as we can go.
Prerequisites
Description
I ran distributed locust with master node locust version 2.32.2 and some worker node locust version 2.25.0 (python3.8 default version).
The master node crash with the following message
when I use the following command on worker node.
Command line
locust -f locust.py --master
Locustfile contents
Python version
3.10
Locust version
2.32.2
Operating system
ubuntu22.04
The text was updated successfully, but these errors were encountered: