dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Error in glances.

Open b0red opened this issue 6 years ago • 0 comments

I'm running the the latest version of this container (glances) and I get this error:

`Exception in thread Thread-29:,
Traceback (most recent call last):,
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner,
    self.run(),
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_docker.py", line 656, in run,
    for i in self._stats_stream:,
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 339, in _stream_helper,
    for chunk in json_stream(self._stream_helper(response, False)):,
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/json_stream.py", line 66, in split_buffer,
    for data in stream_as_text(stream):,
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/json_stream.py", line 22, in stream_as_text,
    for data in stream:,
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 345, in _stream_helper,
    data = reader.read(1),
  File "/usr/local/lib/python2.7/dist-packages/urllib3/response.py", line 496, in read,
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining),
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__,
    self.gen.throw(type, value, traceback),
  File "/usr/local/lib/python2.7/dist-packages/urllib3/response.py", line 402, in _error_catcher,
    raise ReadTimeoutError(self._pool, None, 'Read timed out.'),
ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out.,
,`

this is my docker-config.yml:

`glances:
  image: "vimagick/glances`
  hostname: glances
  container_name: glances
  restart: always
  ports:
    - "61208-61209:61208-61209"
  networks:
    - default
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
    - ${USERDIR}/docker/glances/config:/config
    - ${USERDIR}/docker/glances:/etc/glances
  environment:
    - GLANCES_OPT=-w
    - PID=host
    - TZ=${TZ}
    - net=host

Any idea why this happens? The stats show up ok, it's just annoying to have this error.

b0red avatar May 21 '19 20:05 b0red