timmo
(Tumsime)
September 3, 2022, 12:50pm
1
Hi,
I have started taking the Elasticsearch Observability Engineer (On-Demand) course. I managed to reach lab 3.3 (Collecting APM data) and suddenly cannot access Pet Clinic application.
How can I restart the Pet Clinic application? Any idea will be appreciated. Thanks
Hello!
You might want to check the logs of the application’s container to see what went wrong.
Maybe you updated some configuration and the app cannot restart?
The logs will help us answer that question
Romain
timmo
(Tumsime)
September 6, 2022, 5:32am
3
Thanks @Romain_Geffraye
This is what I see in the logs:-
APM Server transport error (ECONNREFUSED): connect ECONNREFUSED 127.0.0.1:8200
Sending error to Elastic APM { id: 'cfcb4183094aa872fb417ecc8870dd69' }
APM Server transport error (ECONNREFUSED): connect ECONNREFUSED 127.0.0.1:8200
I have installed elastic-apm-node, details below:-
elastic-apm-node@3.38.0 | BSD-2-Clause | deps: 32 | versions: 125
The official Elastic APM agent for Node.js
https://github.com/elastic/apm-agent-nodejs
keywords: opbeat, elastic, elasticapm, elasticsearch, log, logging, bug, bugs, error, errors, exception, exceptions, catch, monitor, monitoring, alert, alerts, performance, apm, ops, devops, stacktrace, trace, tracing, distributedtracing, distributed-tracing
dist
.tarball: https://registry.npmjs.org/elastic-apm-node/-/elastic-apm-node-3.38.0.tgz
.shasum: 4d0dc9279c0e23e09b3b30aa4a9f9aeccfa59cc0
.integrity: sha512-/d6YuWFtsfkVRpFD0YJ2rYJVq0rI0PGqG/C+cW1JpMZ4IOU8dA9xzUkxbT0G3B8gpHNug07Xo6bJdQa2oUaFbQ==
.unpackedSize: 589.9 kB
dependencies:
@elastic/ecs-pino-format: ^1.2.0 async-value-promise: ^1.1.1 elastic-apm-http-client: 11.0.1 escape-string-regexp: ^4.0.0 lru-cache: ^6.0.0 object-identity-map: ^1.0.2
@opentelemetry/api: ^1.1.0 basic-auth: ^2.0.1 end-of-stream: ^1.4.4 fast-safe-stringify: ^2.0.7 measured-reporting: ^1.51.1 original-url: ^1.2.3
after-all-results: ^2.0.0 cookie: ^0.5.0 error-callsites: ^2.0.4 http-headers: ^3.0.2 monitor-event-loop-delay: ^1.0.0 pino: ^6.11.2
async-cache: ^1.1.0 core-util-is: ^1.0.2 error-stack-parser: ^2.0.6 is-native: ^1.0.1 object-filter-sequence: ^1.0.0 relative-microtime: ^2.0.0
(...and 8 more.)
maintainers:
- trentm <trentm@gmail.com>
- watson <w@tson.dk>
- elasticmachine <infra-root+npm@elastic.co>
- alanstorm <astorm@alanstorm.com>
dist-tags:
2x: 2.17.3 latest: 3.38.0
Configuration looks ok
The configuration looks good.
However, the logs tell you that your application can't connect to the APM server.
Check if your agent is correctly running and if the integration is correctly setup (lab 3.1)
timmo
(Tumsime)
September 12, 2022, 5:44pm
5
Integration is configured correctly and cant find the problem with the agent.
Is it possible to reset the lab and start from the beginning?
Hope that would help to keep track and eventually understand the root cause.
Thanks
Hi @timmo ,
I replaced your lab, so you can restart from the beginning.
Best,
Andre
system
(system)
Closed
October 12, 2022, 8:28pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.