# Facing issue two way communication error on PMM version 2.22.0

**URL:** <https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** pmm\
**Created:** [January 11, 2023, 11:21am UTC](https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565 "2023-01-11T11:21:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chinna](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@Chinna](https://forums.percona.com/u/Chinna)\
**Post date:** [January 11, 2023, 11:21am UTC](https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565/1 "2023-01-11T11:21:50Z")

</div>

Hi

1.) pmm works fine for a period like 2 weeks or 1 months, but facing “failed to established two way communication” issue on some of the agents. we are not using any proxy behind the connectivity for server to agent connection.  
2.) some times restarting pmm-server helps to reconnect agent, but pmm2-admin list command not showing any output, simply stalled. Then again it went to the same issue.  
3.) we have a oneway port opening from client to server.

pmm-admin list output

Failed to get PMM Server parameters from local pmm-agent: pmm-agent is not connected to PMM Server.

pmm-agent service logs

● pmm-agent.service - pmm-agent  
Loaded: loaded (/lib/systemd/system/pmm-agent.service; enabled; vendor preset: enabled)  
Active: active (running) since Wed 2022-12-21 07:26:48 UTC; 3 weeks 0 days ago  
Main PID: 17829 (pmm-agent)  
Tasks: 26 (limit: 4915)  
CGroup: /system.slice/pmm-agent.service  
└─17829 /usr/sbin/pmm-agent --config-file=/usr/local/percona/pmm2/config/pmm-agent.yaml

Jan 11 11:02:54 pmm-agent[17829]: INFO[2023-01-11T11:02:54.388+00:00] Establishing two-way communication channel … component=client  
Jan 11 11:02:59 pmm-agent[17829]: ERRO[2023-01-11T11:02:59.386+00:00] Failed to establish two-way communication channel: context canceled. component=client  
Jan 11 11:03:10 pmm-agent[17829]: INFO[2023-01-11T11:03:10.868+00:00] Connecting to [https://admin:\*\*\*@172.25.xx.xx:8443/](https://admin:***@172.25.xx.xx:8443/) … component=client  
Jan 11 11:03:10 pmm-agent[17829]: INFO[2023-01-11T11:03:10.871+00:00] Connected to 172.25.xx.xx:8443. component=client  
Jan 11 11:03:10 pmm-agent[17829]: INFO[2023-01-11T11:03:10.871+00:00] Establishing two-way communication channel … component=client  
Jan 11 11:03:15 pmm-agent[17829]: ERRO[2023-01-11T11:03:15.868+00:00] Failed to establish two-way communication channel: context canceled. component=client  
Jan 11 11:03:29 pmm-agent[17829]: INFO[2023-01-11T11:03:29.805+00:00] Connecting to [https://admin:\*\*\*@172.25.xx.xx:8443/](https://admin:***@172.25.xx.xx:8443/) … component=client  
Jan 11 11:03:29 pmm-agent[17829]: INFO[2023-01-11T11:03:29.808+00:00] Connected to 172.25.xx.xx:8443. component=client  
Jan 11 11:03:29 pmm-agent[17829]: INFO[2023-01-11T11:03:29.808+00:00] Establishing two-way communication channel … component=client  
Jan 11 11:03:34 pmm-agent[17829]: ERRO[2023-01-11T11:03:34.808+00:00] Failed to establish two-way communication channel: context canceled. component=client

---

<div class="post-metadata">

**Author:** ![Agustin\_G](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/agustin_g/32/14111_2.png) [@Agustin\_G](https://forums.percona.com/u/Agustin_G)\
**Post date:** [February 1, 2023, 3:11pm UTC](https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565/2 "2023-02-01T15:11:42Z")

</div>

Hi Chinna,

Is this by any chance linked to the following?

> [@Failed to establish two-way communication channel: context canceled. component=client](https://forums.percona.com/t/failed-to-establish-two-way-communication-channel-context-canceled-component-client/19566/):
>
> PMM works fine for a period like 2 weeks or 1 months, but facing “failed to established two way communication” issue on some of the agents. we are not using any proxy behind the connectivity for server to agent connection. some times restarting pmm-server helps to reconnect agent, but pmm2-admin list command not showing any output, simply stalled. Then again it went to the same issue. we have a oneway port opening from client to server.

---

<div class="post-metadata">

**Author:** ![Chinna](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@Chinna](https://forums.percona.com/u/Chinna)\
**Post date:** [February 2, 2023, 6:19am UTC](https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565/3 "2023-02-02T06:19:29Z")

</div>

Hi Agustin\_G

Yes, Both are linked the same

---

<div class="post-metadata">

**Author:** ![Agustin\_G](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/agustin_g/32/14111_2.png) [@Agustin\_G](https://forums.percona.com/u/Agustin_G)\
**Post date:** [February 3, 2023, 12:35am UTC](https://forums.percona.com/t/facing-issue-two-way-communication-error-on-pmm-version-2-22-0/19565/4 "2023-02-03T00:35:44Z")

</div>

Sounds good. Feel free to update over there, so we focus on one discussion at a time 🙂
