cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what is mean 'Failed to connect to 127.0.0.1 port 8001: Connection refused'

ghlee
Newcomer

I have a question.

I deployed oneagent on AWS k8s.

But I cannot monitor they are.

So, I confirmed ../log/os/[ruxitagent_host_.. ]

It shows like this

" 2020-05-26 01:47:33.592 UTC [11c99eea] warning [native] Unable to do initial setup because no server is reachable. Last error: Failed to connect to 127.0.0.1 port 8001: Connection refused "

What does mean like?

It may oneagent try to connect web server in localhost ?

and it is default port 8001?

2 REPLIES 2

Julius_Loman
Leader

How exactly did you deploy the agent? Can you share the details?

Tao_Zhang
Newcomer

I have exactly same issue, just different port '8020'. It worked fine until an automatic upgrade or restart, then it gives the error. Can anybody help here?


2020-07-08 07:25:01.987 UTC [993ff803] info [native] Applied configuration from file: /opt/dynatrace/oneagent/agent/conf/ruxitagent.conf

2020-07-08 07:25:01.994 UTC [993ff803] info [native] OsAgent net namespace: net:[4026531956]

2020-07-08 07:25:01.994 UTC [993ff803] info [native] OsAgent pid namespace: pid:[4026531836]

2020-07-08 07:25:01.994 UTC [993ff803] info [native] Pid namespace available in /proc/self/status: false

2020-07-08 07:25:01.994 UTC [993ff803] info [native] Detected kernel version: 3.10.0-1062.12.1.el7.x86_64

2020-07-08 07:25:01.994 UTC [993ff803] info [native] Unix socket detection is on

2020-07-08 07:25:02.001 UTC [993ff803] info [native] ConfigFromServer: Loading agent runtime configuration from /var/lib/dynatrace/oneagent/a

gent/runtime/0x0000000000000000_os_0/runtimeConfiguration_v2

2020-07-08 07:25:02.005 UTC [993ff803] info [native] ConfigFromServer: Runtime configuration revision 54889213539892583 loaded.

2020-07-08 07:25:02.005 UTC [993ff803] info [native] ConfigFromServer: Loading JS agent from /var/lib/dynatrace/oneagent/agent/runtime/shared

/jsagent-10195200626110504.zip

2020-07-08 07:25:02.040 UTC [993ff803] info [native] ConfigFromServer: JS agent version 10195200626110504 loaded.

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting integer property 'sensor.stringTruncationLimit.webrequest' to 4096

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting integer property 'correlation.tagging.version' to 2

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting integer property 'tc.adaptive.TC.RootPathThreshold' to 1000

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting integer property 'tc.subPath.TC.Exponent' to -1

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'debugReEnableOldAutoSensorDotnet' to false

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'sampling.dotnet.enabled' to true

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'correlation.enableV4TraceContextExtension' to false

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'ambient.TC..dotnet.enabled' to false

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'debugEnableRedisTransformerNative' to true

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'debugEnableCustomTracingNative' to false

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'appDomainRegistry.dotnet.enabled' to true

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting boolean property 'threadRegistry.dotnet.enabled' to true

2020-07-08 07:25:02.041 UTC [993ff803] info [native] Setting string property 'agent.osapi.filterrules.exclusions' to 'disk(linux,tmpfs,*);dis

k(linux,rootfs,*);disk(linux,*,/dev);disk(linux,cgroup,*);disk(linux,debugfs,*);disk(linux,iso9660,*);disk(linux,udf,*);disk(linux,squashfs,*);d

isk(aix,cdrfs,*);disk(*,hsfs,*);nic(solaris,mac)'

2020-07-08 07:25:02.042 UTC [993ff803] info [native] POSIX clock type CLOCK_MONOTONIC detected

2020-07-08 07:25:02.343 UTC [993ff803] info [native] High-resolution POSIX timer detected.

2020-07-08 07:25:02.449 UTC [972fb8c3] debug [native] Unable to get EC2 Spot instance-action. Error: curl_easy_perform() failed: Couldn't conn

ect to server

2020-07-08 07:25:02.649 UTC [993ff803] info [native] OSIID: Directory (/var/lib/dynatrace/oneagent/agent/config/) already exists.

2020-07-08 07:25:02.651 UTC [993ff803] info [native] HostName candidate ck-prd-eu-ck1

2020-07-08 07:25:02.651 UTC [993ff803] info [native] Attempting to update /var/lib/dynatrace/oneagent/agent/config/ruxitagentproc.conf

2020-07-08 07:25:02.658 UTC [993ff803] info [native] Using ConcurrentCachedStrings for String Caching, cacheSize=5120

2020-07-08 07:25:02.661 UTC [993ff803] info [native] Connection to initial gateways failed using http://localhost:8020/communication

2020-07-08 07:25:02.661 UTC [993ff803] warning [native] Unable to do initial setup because no server is reachable. Last error: Failed to connect to localhost port 8020: Connection refused

2020-07-08 07:25:02.661 UTC [993ff803] info [native] Dispatcher started - using non working URL http://localhost:8020/communication

2020-07-08 07:25:02.663 UTC [993ff803] info [native] ----------------------------------------------------------------------------------------------

2020-07-08 07:25:02.663 UTC [993ff803] info [native] Dynatrace Agent for System Monitoring Copyright (C) 2012-2020 Dynatrace LLC. www.dynatrace.com

2020-07-08 07:25:02.663 UTC [993ff803] info [native] ----------------------------------------------------------------------------------------------

2020-07-08 07:25:02.663 UTC [993ff803] info [native] Version ..................... 1.195.138.20200630-145046, build date 2020.06.30 14:50:46, SCM Rev. 35b0e9f37400a4b27686cdc1c024f73b13ab92ce

2020-07-08 07:25:02.663 UTC [993ff803] info [native] Command line is oneagentos -Dcom.compuware.apm.WatchDogPort=50000 -Dcom.compuware.apm.WatchDogTimeout=900