yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 278 forks source link

ERROR: need more than 1 value to unpack #47

Closed tazhate closed 11 years ago

tazhate commented 11 years ago

root@vm010-000-219-015:~# yandex-tank 01:26:51 INFO: No config passed via cmdline, using ./load.ini 01:26:51 INFO: Loading configs... 01:26:51 INFO: Loading plugins... 01:26:52 INFO: Performing test 01:26:52 INFO: Configuring plugins... 01:26:52 INFO: Configuring StepperWrapper... 01:26:52 WARNING: Graphite uploader is not configured and will not send any data 01:26:52 INFO: Preparing test... 01:26:52 INFO: Checking tank resources... 01:26:52 INFO: Making stpd-file: ./_e4d1065f866c213b4c98a888d6529488.stpd 01:26:52 INFO: Exception: Traceback (most recent call last): File "/usr/lib/yandex-tank/Tank/ConsoleWorker.py", line 213, in perform_test self.core.plugins_prepare_test() File "/usr/lib/yandex-tank/tankcore.py", line 278, in plugins_prepare_test plugin.prepare_test() File "/usr/lib/yandex-tank/Tank/Plugins/Phantom.py", line 100, in prepare_test self.config = self.phantom.compose_config() File "/usr/lib/yandex-tank/Tank/Plugins/PhantomUtils.py", line 90, in compose_config streams_config += stream.compose_config() File "/usr/lib/yandex-tank/Tank/Plugins/PhantomUtils.py", line 251, in compose_config self.stepper_wrapper.prepare_stepper() File "/usr/lib/yandex-tank/Tank/stepper/main.py", line 181, in prepare_stepper self.make_stpd_file() File "/usr/lib/yandex-tank/Tank/stepper/main.py", line 272, in make_stpd_file ammo_type=self.ammo_type, File "/usr/lib/yandex-tank/Tank/stepper/main.py", line 52, in init self.af = AmmoFactory(ComponentFactory(kwargs)) File "/usr/lib/yandex-tank/Tank/stepper/main.py", line 27, in init** self.load_plan = factory.get_load_plan() File "/usr/lib/yandex-tank/Tank/stepper/config.py", line 59, in get_load_plan return lp.create(self.rps_schedule) File "/usr/lib/yandex-tank/Tank/stepper/load_plan.py", line 211, in create for step_config in rps_schedule]) File "/usr/lib/yandex-tank/Tank/stepper/load_plan.py", line 164, in produce load_type, params = step_config.split('(') ValueError: need more than 1 value to unpack

01:26:52 ERROR: need more than 1 value to unpack 01:26:52 INFO: Trying to shutdown gracefully... 01:26:52 INFO: Finishing test... 01:26:52 INFO: Finishing monitoring 01:26:52 INFO: Post-processing test... 01:26:52 WARNING: Failed to end active test: 200 01:26:52 WARNING: Loadosophia.org uploading disabled, please set loadosophia.token option to enable it, get token at https://loadosophia.org/service/upload/token/ 01:26:53 INFO: Artifacts dir: ./2013-10-30_01-26-53.r80xUD 01:26:53 INFO: Done graceful shutdown 01:26:53 INFO: Done performing test with code 1

Ubuntu 12.04.3 LTS installed via ppa.

load.ini

[phantom] address=0.0.0.0:80 # Target's address and port. rps_schedule=line(1, 100, 10m) # load scheme headers = [Host: domain.ru] [Connection: close] [Cookies: None] uris = /index.php /media

0.0.0.0 - is my ip and domain.ru is my domain, i've changed it for privacy.

direvius commented 11 years ago

Tank does not support inline comments. Try this:

[phantom]
# Target's address and port.
address=0.0.0.0:80
# load scheme
rps_schedule=line(1, 100, 10m)
headers = [Host: domain.ru]
  [Connection: close]
  [Cookies: None]
uris = /index.php
  /media
doctornkz commented 11 years ago

tank SUPPORTS inline comments. Use ";" , not "#" !

direvius commented 11 years ago

and use 127.0.0.1 instead of 0.0.0.0, if you want to shoot to localhost

tazhate commented 10 years ago

@direvius please read last string in my message:

"0.0.0.0 - is my ip and domain.ru is my domain, i've changed it for privacy."