Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Error retrieving data #23

Closed
cloudsantos opened this issue May 16, 2016 · 3 comments
Closed

Error retrieving data #23

cloudsantos opened this issue May 16, 2016 · 3 comments

Comments

@cloudsantos
Copy link

Hi,
i have configured and ran the docker images/container but when i go to the Azure/Application insight portal i receive the 'Error Retrieving Data',

The container log is:
......

Starting to collect events from: MetricCollectionPythonBoostrapper
docker : Traceback (most recent call last):
At line:1 char:1

  • docker logs --tail=30 3657bfccd9fa *> log.txt

    • CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

    File "python/bootstrap.py", line 49, in
    methodsmethod
    File "python/bootstrap.py", line 43, in
    methods = {'collect': lambda: program.run_collect_performance_counters(docker_socket=_docker_socket,
    sdk_file=_sdk_info_file, docker_info_file=_docker_info_path, collect_interval=collect_interval),

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/program.py", line 49, in
    run_collect_performance_counters

    collector.collect_stats_and_send()

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 76, in
    collect_stats_and_send

    self._update_containers_state(containers=containers)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 175, in
    _update_containers_state

    list(executor.map(lambda c: self._update_container_state(c), containers))

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 549, in result_iterator

    yield future.result()

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 395, in result

    return self.__get_result()

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result

    raise self._exception

    File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

    result = self.fn(_self.args, *_self.kwargs)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 175, in

    list(executor.map(lambda c: self._update_container_state(c), containers))

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 181, in
    _update_container_state

    ikey = self._get_container_sdk_ikey(container)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 205, in
    _get_container_sdk_ikey

    return None if sdk_info_file_content is None else sdk_info_file_content.split('=')[1]

IndexError: list index out of range

Python bootstrapper MetricCollectionPythonBoostrapper has exited with exit code: 1

@cloudsantos
Copy link
Author

Docker version

Client:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: windows/amd64

Server:
Version: ucp/1.0.1
API version: 1.22
Go version: go1.5.3
Git commit: ef7f862
Built:
OS/Arch: linux/amd64

@Yonisha
Copy link
Contributor

Yonisha commented May 23, 2016

Hi cloudsantos,

The issue has been fixed in v0.9.2.
Can you please pull the latest version and check if the issue resolved?

@cloudsantos
Copy link
Author

Issue solved ☺!!!
Thank you
Best regards
Santo

Santo Orlando | Cloud Solution Architect
Avanade Italy| Piazzale dell’Industria,40, Roma
Mobile: +39 3481434120
www.avanade.comhttp://www.avanade.com/

From: Yoni Shalom [mailto:notifications@github.com]
Sent: lunedì 23 maggio 2016 08:18
To: Microsoft/ApplicationInsights-Docker ApplicationInsights-Docker@noreply.github.com
Cc: Santo Orlando santo.orlando@avanade.com; State change state_change@noreply.github.com
Subject: Re: [Microsoft/ApplicationInsights-Docker] Error retrieving data (#23)

Hi cloudsantos,

The issue has been fixed in v0.9.2.
Can you please pull the latest version and check if the issue resolved?


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-220895745

@Yonisha Yonisha closed this as completed May 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants