APM agent detects my system as a container?

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

TIP 1: select at least one tag that further categorizes your topic. For example server for APM Server related questions, java for questions regarding the Elastic APM Java agent, or ui for questions about the APM App within Kibana.

TIP 2: Check out the troubleshooting guide first. Not only will it help you to resolve common problems faster but it also explains in more detail which information we need before we can properly help you.

Kibana version: 7.1.1

Elasticsearch version: 7.1.1

APM Server version: 7.1.1

APM Agent language and version: elastic-apm-agent-1.18.0.RC1.jar

Browser version: Chrome 84.0.4147.89

Original install method (e.g. download page, yum, deb, from source, etc.) and version: rpm install

Fresh install or upgraded from other version? fresh

Is there anything special in your setup? No

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): started my java application with tomcat shows unexpected info in the log file catalina.out

Steps to reproduce:

  1. Modify the setenv.sh file to contain the agent parameters
  2. Start the service
  3. Check the logs

Errors in browser console (if relevant): no

Provide logs and/or server output (if relevant):

My setenv.sh is configured as follows:

CATALINA_OPTS="$CATALINA_OPTS -javaagent:/opt/app/environment/liferay/runtime/tomcat-9.0.33/elastic-apm-agent-1.18.0.RC1.jar -Delastic.apm.service_name=liferay -Delastic.apm.application_packages=com.liferay,com.es -Delastic.apm.server_urls=http://192.168.1.2:8200 -Delastic.apm.log_level=DEBUG -Delastic.apm.log_file=/opt/app/environment/liferay/runtime/tomcat-9.0.33/logs/agent.log"

Starting the application outputs the following:

2020-08-05 09:31:47,920 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 11:pids:/
2020-08-05 09:31:47,922 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 10:hugetlb:/
2020-08-05 09:31:47,923 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 9:cpuset:/
2020-08-05 09:31:47,923 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 8:memory:/
2020-08-05 09:31:47,924 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 7:freezer:/
2020-08-05 09:31:47,924 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 6:devices:/
2020-08-05 09:31:47,925 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 5:net_prio,net_cls:/
2020-08-05 09:31:47,926 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 4:blkio:/
2020-08-05 09:31:47,926 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 3:perf_event:/
2020-08-05 09:31:47,927 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 2:cpuacct,cpu:/
2020-08-05 09:31:47,928 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 1:name=systemd:/user.slice/user-0.slice/session-3605.scope
2020-08-05 09:31:47,929 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - container ID is null

Does the agent detects that is running inside a container like Kubernetes? Cause it's not. It's a CentOS 7.8 VM server.

The app is working, and the restults from the agent are visible under Kibana, however, I don't understand why it outputs the log above.

Thanks!
Catalin

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.