Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot race. 'NoneType' object has no attribute 'read_bytes' #888

Closed
SteeveGL opened this issue Feb 6, 2020 · 2 comments
Closed

Cannot race. 'NoneType' object has no attribute 'read_bytes' #888

SteeveGL opened this issue Feb 6, 2020 · 2 comments

Comments

@SteeveGL
Copy link

SteeveGL commented Feb 6, 2020

Rally version (get with esrally --version): esrally 1.4.0

Invoked command: esrally --distribution-version=7.5.2 --track=eventdata --challenge=append-no-conflicts

Configuration file (located in ~/.rally/rally.ini)):

config.version = 17

[system]
env.name = local

[node]
root.dir = /home/user/.rally/benchmarks
src.root.dir = /home/user/.rally/benchmarks/src

[source]
remote.repo.url = https://github.com/elastic/elasticsearch.git
elasticsearch.src.subdir = elasticsearch

[benchmarks]
local.dataset.cache = /home/user/.rally/benchmarks/data

[reporting]
datastore.type = elasticsearch
datastore.host = ********.eastus2.azure.elastic-cloud.com
datastore.port = 9243
datastore.secure = True
datastore.user = elastic
datastore.password = *********

[tracks]
default.url = https://github.com/elastic/rally-tracks

[teams]
default.url = https://github.com/elastic/rally-teams

[defaults]
preserve_benchmark_candidate = False

[distributions]
release.cache = true

JVM version:
openjdk 11.0.6 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

OS version:
Linux DESKTOP 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

Steps to reproduce:

  1. Run esrally --distribution-version=7.5.2 --track=eventdata --challenge=append-no-conflicts
  2. Got:
[ERROR] Cannot race. 'NoneType' object has no attribute 'read_bytes'
        Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/mechanic.py", line 565, in receiveMsg_StartNodes
    self.mechanic.start_engine()
  File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/mechanic.py", line 680, in start_engine
    self.nodes = self.launcher.start(self.node_configs)
  File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", line 126, in start
    return [self._start_node(node_configuration, node_count_on_host) for node_configuration in node_configurations]
  File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", line 126, in <listcomp>
    return [self._start_node(node_configuration, node_count_on_host) for node_configuration in node_configurations]
  File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", line 160, in _start_node
    t.attach_to_node(node)
  File "/usr/local/lib/python3.6/dist-packages/esrally/telemetry.py", line 65, in attach_to_node
    device.attach_to_node(node)
  File "/usr/local/lib/python3.6/dist-packages/esrally/telemetry.py", line 750, in attach_to_node
    self.read_bytes = disk_start.read_bytes
AttributeError: 'NoneType' object has no attribute 'read_bytes'


Getting further help:
*********************
* Check the log files in /home/user/.rally/logs for errors.
* Read the documentation at https://esrally.readthedocs.io/en/1.4.0/
* Ask a question on the forum at https://discuss.elastic.co/c/elasticsearch/rally
* Raise an issue at https://github.com/elastic/rally/issues and include the log files in /home/user/.rally/logs.

--------------------------------
[INFO] FAILURE (took 21 seconds)
--------------------------------```

**Provide logs (if relevant)**:

@dliappis
Copy link
Contributor

dliappis commented Feb 6, 2020

Thanks very much for your interest in Rally.

This appears to be a user question, and we'd like to direct these kinds of things to the Elasticsearch/Rally forum. If you can stop by there, we'd appreciate it. This allows us to use GitHub for verified bug reports, feature requests, and pull requests.

There's an active community in the forum that should be able to help get an answer to your question. As such, I hope you don't mind that I close this.

@dliappis dliappis closed this as completed Feb 6, 2020
@SteeveGL
Copy link
Author

Related to giampaolo/psutil#1251

Not compatible with WSL.

danielmitterdorfer added a commit to danielmitterdorfer/rally that referenced this issue Feb 11, 2020
With this commit we align the exception handling in the disk I/O
telemetry device on benchmark start and stop. Previously we had a very
broad exception clause on benchmark stop but only a narrow one on
benchmark start but we should align them for consistency.

Relates elastic#888
danielmitterdorfer added a commit that referenced this issue Feb 11, 2020
With this commit we align the exception handling in the disk I/O
telemetry device on benchmark start and stop. Previously we had a very
broad exception clause on benchmark stop but only a narrow one on
benchmark start but we should align them for consistency.

Relates #888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants