# Help Request - php fpm Collector "Something Went Wrong"

**URL:** https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534
**Category:** Help
**Tags:** cloud
**Created:** [June 13, 2024, 7:52am UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534 "2024-06-13T07:52:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DR-DinoMight](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/dr-dinomight/32/3737_2.png) [@DR-DinoMight](https://community.netdata.cloud/u/DR-DinoMight)
#### Post date: [June 13, 2024, 7:52am UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534/1 "2024-06-13T07:52:44Z")

</div>

Hi I’m hoping someone could help,

I’m currently in the process of setting up a PHP-FPM on two nodes, but I’m getting the following error when trying to add the intergration.

 ![SCR-20240613-idmz](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/7/7d9484eea977304fc6b4cb3a836f892fafab88c2.png)

```auto
{
    "errorMsgKey": "AgentError",
    "errorMessage": "Module phpfpm configuration schema not found.",
    "errorCode": "EmXjjnbmr0-1102072370"
}

```

I went through the setup guide and uncommented the `pm.status` (and I also have custom config that may help debug `pm.status_listen = 127.0.0.1:9001`)

I then added the new config on both server using

```auto
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/phpfpm.conf

```

which results in

```auto
jobs:
  - name: 'app_server_2' #unique name per server
    socket: '/run/php/php8.1-fpm.sock'

```

and when I run the debug log I see data points been selected, and to the untrained eye it looks like it’s work however I do get this one error.

```auto
ERR phpfpm/phpfpm.go:91 error on decoding response from socket '/run/php/php8.1-fpm.sock': invalid character 'I' looking for beginning of value collector=phpfpm job=app_server_1

```

but as you can see from the config above I don’t have a ‘I’ character?

Hope some is able to help, and thank you in advance.

(P.s sorry for the accidental post ealier I hit shift+enter out of muscle memory and didn’t realise it would post 😅 )

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [June 13, 2024, 10:23am UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534/2 "2024-06-13T10:23:44Z")

</div>

Hey, @DR-DinoMight.

> ERR phpfpm/phpfpm.go:91 error on decoding response from socket ‘/run/php/php8.1-fpm.sock’: invalid character ‘I’ looking for beginning of value collector=phpfpm job=app\_server\_1

This error is not about “phpfpm.conf” but the response from the PHP-FPM instance. This is the [function that does the query](https://github.com/netdata/netdata/blob/e1c60d11c1838bb7b59755fc54a904c25762f51a/src/go/collectors/go.d.plugin/modules/phpfpm/client.go#L124-L151):

1. create connection
2. set timeout
3. query
4. read response (bytes)
5. JSON decode response

The 5th step fails, the response is not JSON data.

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [June 13, 2024, 10:35am UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534/3 "2024-06-13T10:35:20Z")

</div>

I added debug logging of the response on the decoding error in [17870](https://github.com/netdata/netdata/pull/17870). It will be available in tomorrow’s nightly release. You will be able to see the response body in the debug mode. I hope it will help us to understand the problem.

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [June 13, 2024, 11:59am UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534/4 "2024-06-13T11:59:36Z")

</div>

> [@DR-DinoMight](#):
>
> but I’m getting the following error when trying to add the intergration.

Fixed in [go.d phpfpm add config schema by ilyam8 · Pull Request #17872 · netdata/netdata · GitHub](https://github.com/netdata/netdata/pull/17872)

---

<div class="post-metadata">

### Author: ![DR-DinoMight](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/dr-dinomight/32/3737_2.png) [@DR-DinoMight](https://community.netdata.cloud/u/DR-DinoMight)
#### Post date: [June 13, 2024, 2:18pm UTC](https://community.netdata.cloud/t/help-request-php-fpm-collector-something-went-wrong/5534/5 "2024-06-13T14:18:28Z")

</div>

Oh thank you for the quick update!

I’ll look at updating shortly, the debug should surely help me find out the reason as to why what the server is sending instead of the expected data.
