-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APM Server transport error (ERR_SOCKET_TIMEOUT): Socket timeout #4026
Comments
The first log message:
is saying that the APM agent running in your app got a timeout talking to your configured APM Server URL. For some reason, that Are you able to manually run a command from the same machine/VM/container where the APM agent is running? If so, this should be the equivalent of the first request the APM agent is attempting:
A possibility could be that your APM server is down, but I'm not positive. Are you able to look at your APM server logs? |
hi thank you |
Yes, you need to fill that in with the URL for your APM server. For example, the APM server URL for a deployment of mine on cloud.elastic.co is
|
My apm server doesn't have a specific url.
|
Can you confirm that the IP and port that works for you is the same as the I'm not sure what else to say. The APM agent is configured with a URL to talk to the APM server (https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html#server-url). From within that container that is running your app, a simple HTTP GET request to that URL fails. |
What should I do to solve the problems below?
I have no idea why the APM Server transport error (ERR_SOCKET_TIMEOUT): Socket timeout"}` error occurs.
{"log.level":"error","@timestamp":"2024-05-16T05:19:14.619Z","log":{"logger":"elastic-apm-node"},"dt.entity.host":"HOST-40CA2xxxxxxxAA","dt.entity.host_group":"HOST_GROUP-0C777xxxxxxxxA3A","dt.entity.process_group":"PROCESS_GROUP-0AC212xxxxxxxxDB3F8","dt.entity.process_group_instance":"PROCESS_GROUP_INSTANCE-xxxxxxx","dt.host_group.id":"NT","ecs":{"version":"1.6.0"},"message":"APM Server transport error: error fetching APM Server version: timeout (30000ms) fetching APM Server version"} {"log.level":"error","@timestamp":"2024-05-16T05:19:14.621Z","log":{"logger":"elastic-apm-node"},"dt.entity.host":"HOST-40CxxxxxA0AA","dt.entity.host_group":"HOST_GROUP-0C77xxxxxx3A","dt.entity.process_group":"PROCESS_GROUP-0AC21xxxxxx3F8","dt.entity.process_group_instance":"PROCESS_GROUP_INSTANCE-0A26xxxxxxx39ED16","dt.host_group.id":"T","ecs":{"version":"1.6.0"},"message":"APM Server transport error (ERR_SOCKET_TIMEOUT): Socket timeout"}
The container comes up and then you get the following error message:
{"log.level":"debug","@timestamp":"2024-05-16T06:14:59.145Z","log":{"logger":"elastic-apm-node"},"dt.entity.host":"HOST-40CA2xxxxxAA","dt.entity.host_group":"HOST_GROUP-0C7779xxxxxxA3A","dt.entity.process_group":"PROCESS_GROUP-0ACxxxxxx8x3F8","dt.entity.process_group_instance":"PROCESS_GROUP_INSTANCE-094A53xxxxxC472","dt.host_group.id":"NT","ecs":{"version":"1.6.0"},"message":"no active transaction found -cannot build new span"} {"log.level":"debug","@timestamp":"2024-05-16T06:14:59.145Z","log":{"logger":"elastic-apm-node"},"dt.entity.host":"HOST-40CA2xxxx0AA","dt.entity.host_group":"HOST_GROUP-0Cxxxx9DF145xxxA3A","dt.entity.process_group":"PROCESS_GROUP-0AC2xxxxDB3F8","dt.entity.process_group_instance":"PROCESS_GROUP_INSTANCE-094AxxxxxC472","dt.host_group.id":"T","ecs":{"version":"1.6.0"},"message":"intercepted call to http.request {\"id\":null}"}
The text was updated successfully, but these errors were encountered: