Skip to content

gProfiler partial DNS resolution error #327

@akuzkohqs

Description

@akuzkohqs

We have installed gProfiler in Docker containers in both, local (Docker engine, run in EC2 container with unrestricted outgoing connectivity) and remote (AWS Fargate with SYS_PTRACE enabled).

We saw no single metric uploaded in gProfiler dashboard yet.

Docker container base: node:13.7.0

Additional commands:

RUN apt update && apt install -y curl git && \
    curl -SL https://github.com/Granulate/gprofiler/releases/latest/download/gprofiler --output /tmp/gprofiler && \
    chmod +x /tmp/gprofiler 

Startup made from Docker entrypoint:

/tmp/gprofiler -cu --token ${GP_PAT} --service-name SERVICE_NAME --disable-pidns-check --perf-mode disabled --no-java --no-python --no-php --no-ruby --nodejs-mode none &

We also tried simplified command without any differences, same errors, etc.:

/tmp/gprofiler -cu --token ${GP_PAT} --service-name SERVICE_NAME --disable-pidns-check --perf-mode disabled

The problem is that while service listed in gProfiler there are massive errors like this:

  | 2022-03-29T16:57:06.890+03:00 | [13:57:06] Successfully uploaded profiling data to the server
  | 2022-03-29T16:57:11.902+03:00 | [13:57:11] Failed sending logs to server
  | 2022-03-29T16:57:11.902+03:00 | Traceback (most recent call last):
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 449, in _make_request
  | 2022-03-29T16:57:11.902+03:00 | File "<string>", line 3, in raise_from
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 444, in _make_request
  | 2022-03-29T16:57:11.902+03:00 | File "http/client.py", line 1346, in getresponse
  | 2022-03-29T16:57:11.902+03:00 | File "http/client.py", line 307, in begin
  | 2022-03-29T16:57:11.902+03:00 | File "http/client.py", line 268, in _read_status
  | 2022-03-29T16:57:11.902+03:00 | File "socket.py", line 586, in readinto
  | 2022-03-29T16:57:11.902+03:00 | File "ssl.py", line 971, in recv_into
  | 2022-03-29T16:57:11.902+03:00 | File "ssl.py", line 833, in read
  | 2022-03-29T16:57:11.902+03:00 | File "ssl.py", line 590, in read
  | 2022-03-29T16:57:11.902+03:00 | socket.timeout: The read operation timed out
  | 2022-03-29T16:57:11.902+03:00 | During handling of the above exception, another exception occurred:
  | 2022-03-29T16:57:11.902+03:00 | Traceback (most recent call last):
  | 2022-03-29T16:57:11.902+03:00 | File "requests/adapters.py", line 449, in send
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 786, in urlopen
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/util/retry.py", line 550, in increment
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/packages/six.py", line 770, in reraise
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 710, in urlopen
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 451, in _make_request
  | 2022-03-29T16:57:11.902+03:00 | File "urllib3/connectionpool.py", line 341, in _raise_timeout
  | 2022-03-29T16:57:11.902+03:00 | urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='profiler.granulate.io', port=443): Read timed out. (read timeout=5)
  | 2022-03-29T16:57:11.902+03:00 | During handling of the above exception, another exception occurred:
  | 2022-03-29T16:57:11.902+03:00 | Traceback (most recent call last):
  | 2022-03-29T16:57:11.902+03:00 | File "gprofiler/log.py", line 191, in try_send_log_to_server
  | 2022-03-29T16:57:11.902+03:00 | File "gprofiler/client.py", line 110, in post
  | 2022-03-29T16:57:11.902+03:00 | File "gprofiler/client.py", line 95, in _send_request
  | 2022-03-29T16:57:11.902+03:00 | File "requests/sessions.py", line 542, in request
  | 2022-03-29T16:57:11.902+03:00 | File "requests/sessions.py", line 655, in send
  | 2022-03-29T16:57:11.902+03:00 | File "requests/adapters.py", line 529, in send
  | 2022-03-29T16:57:11.902+03:00 | requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='profiler.granulate.io', port=443): Read timed out. (read timeout=5)

We have tested network connectivity and we are able to open profiler.granulate.io using curl and other tools from inside the Docker container(s). Certificate is valid as well.

We may provide additional details if requested.

Thank you for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions