Skip to content

Unable to finish/report stat collector: ECONNREFUSED from inside a container #89

@stonier

Description

@stonier

Similar issues: #44, #57, #81,

I'm getting the following error when trying to run telemetry from within a github action container:

[Workflow Telemetry] Finishing ...
[Workflow Telemetry] Finishing step tracer ...
[Workflow Telemetry] Finished step tracer
[Workflow Telemetry] Finishing stat collector ...
Error: [Workflow Telemetry] Unable to finish stat collector
Error: [Workflow Telemetry] Error
Error: Error: connect ECONNREFUSED 12[7](https://github.com/stargate-mercury/stargate-zen/actions/runs/14536726715/job/40786473936?pr=83#step:8:7).0.0.1:7777
[Workflow Telemetry] Finishing process tracer ...
[Workflow Telemetry] Finished process tracer
[Workflow Telemetry] Reporting step tracer result ...
[Workflow Telemetry] Reported step tracer result
[Workflow Telemetry] Reporting stat collector result ...
Error: [Workflow Telemetry] Unable to report stat collector result
Error: [Workflow Telemetry] Error
Error: Error: connect ECONNREFUSED [12](https://github.com/stargate-mercury/stargate-zen/actions/runs/14536726715/job/40786473936?pr=83#step:8:12)7.0.0.1:7777

I have enabled --privileged, mounted /sys/ and even opened the port in the container as suggested in #81.

For a simple example of the problem, refer to:

See also a copy of the workflow yaml file below:

name: telemetry

on:
  workflow_dispatch:
  pull_request:
    branches:
      - devel
    paths:
      - .github/workflows/telemetry-inside-image.yaml

permissions:
  # For telemetry
  actions: read
  pull-requests: write
  # For checkout
  contents: read

jobs:
  telemetry:
    runs-on: [ubuntu-latest]
    container:
      image: ghcr.io/catthehacker/ubuntu:runner-22.04
      volumes:
        - /sys/:/sys/ 
      options: --privileged
      ports:
        - 7777
    steps:
    - name: Telemetry
      uses: catchpoint/workflow-telemetry-action@v2
      with:
          comment_on_pr: false
          job_summary: true
    - name: Zen
      shell: bash
      run: ls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions