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

Dynatrace OneAgent (iOS) not running, error code is 1


I got few customised actions and some are init successful, but the rest return nil.
I try to catch that with  Dynatrace.lastErrorCode() Dynatrace.lastErrorMsg() and found the code is 1 and msg is "Dynatrace OneAgent (iOS) not running"

Can someone please help me out if they got this issue before?


DynaMight Legend
DynaMight Legend

The SDK does not seem to be initialized. Ensure the SDK initialized either by auto start or start it manually depending on your preference. Also you can run the OneAgent in DEBUG mode to see what is going on - see 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Dynatrace Champion
Dynatrace Champion

If agent is not running this can have several reasons:

  • agent was misconfigured
  • session is skipped because of capture percentage set to <100%
  • capture was turned off for this application on cluster
  • agent turned off because of no more license credits

when logging is enabled on agent it should be more easy to detect why it did not start up - I suggest to enable logging and check the log or ask for help submitting the full log to our support team.

iOS help:

Featured Posts