Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Controller install job - Failed

SOLVED
Highlighted
Producer

Issue Controller install job - Failed

Its on premise.

OS Red Hat Enterprise Linux Server release 7.3 (Maipo)

16 GB RAM & 4vCPUs & 150GB Storage.

Software: AppDynamics Version 4.4.2.0

 

While installing the job for controller its getting failed. Below is the error message

 

Task failed: Update Events Service URL in the controller configuration on host: localhost with message: com.appdynamics.orcha.shared.exceptions.CommandEvaluationException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:93) at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask$0.callCurrent(Unknown Source) at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:74) at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask.callCurrent(Unknown Source) at com.appdynamics.orcha.dsl.TaskDelegate.getTaskSpecForContext(TaskDelegate.groovy:160) at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.prepareTask(DefaultPlaybookExecutor.java:339) at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.executeTasksParallel(DefaultPlaybookExecutor.java:194) at com.appdynamics.orcha.core.OrchaRunnerImpl.runPlaybook(OrchaRunnerImpl.java:220) at com.appdynamics.platformadmin.core.tasks.OrchaStage.runPlay(OrchaStage.java:333) at com.appdynamics.platformadmin.core.tasks.OrchaStage.execute(OrchaStage.java:237) at com.appdynamics.platformadmin.controller.job.stages.UpdateControllerESStage.execute(UpdateControllerESStage.java:200) at com.appdynamics.platformadmin.core.job.JobProcessor.run(JobProcessor.java:236) at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:117) at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:45) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer' at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:160) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:272) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603) at Script1$_run_closure1$_closure2.doCall(Script1.groovy:12) at Script1$_run_closure1$_closure2.doCall(Script1.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:168) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:574) at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:83) ... 17 more

 

Please suggest me to resolve this issue.

Issue Controller install job - Failed
13 REPLIES 13
Creator

Re: Issue Controller install job - Failed

I have the same issue..

New Poster

Re: Issue Controller install job - Failed

I too facing the same issue

New Poster

Re: Issue Controller install job - Failed

I have the same issue.

Please suggest me to resolve this issue.

Creator

Re: Issue Controller install job - Failed

Have the exact same issue...

more details below:

 

INFO  [2018-03-27 14:42:36,959] com.appdynamics.orcha.core.executor.TaskExecutor: Task [Starting the database] completed executing in [186] ms.
INFO  [2018-03-27 14:42:36,987] class com.appdynamics.platformadmin.core.job.JobProcessor: Platform/Job [1/0a8d32ac-ef51-450e-862b-88942d02c340]: Sequence number 25, stage name Run get hostname for database playbook, stage id: 95
INFO  [2018-03-27 14:42:37,551] com.appdynamics.orcha.core.OrchaRunnerImpl: Running playbook C:\AppDynamics\Platform\platform-admin\conf\..\archives\platform-configuration\..\controller\4.4.2.0\playbooks\get-hostname-for-db.orcha with variables file C:\AppDynamics\Platform\platform-admin\conf\..\archives\platform-configuration\..\controller\4.4.2.0\playbooks\controller.groovy
INFO  [2018-03-27 14:42:37,554] com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor: Executing : Test connection to database
INFO  [2018-03-27 14:42:37,608] com.appdynamics.orcha.core.executor.TaskExecutor: Task [Test connection to database] completed executing in [23] ms.
WARN  [2018-03-27 14:42:37,610] com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor: Ignoring error for task Test connection to database
INFO  [2018-03-27 14:42:37,626] com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor: Executing : Get hostname from database response
INFO  [2018-03-27 14:42:37,684] com.appdynamics.orcha.core.executor.TaskExecutor: Task [Get hostname from database response] completed executing in [16] ms.
INFO  [2018-03-27 14:42:37,713] class com.appdynamics.platformadmin.core.job.JobProcessor: Platform/Job [1/0a8d32ac-ef51-450e-862b-88942d02c340]: Sequence number 26, stage name Set hostname for granting database permission, stage id: 96
INFO  [2018-03-27 14:42:37,731] class com.appdynamics.platformadmin.core.job.JobProcessor: Platform/Job [1/0a8d32ac-ef51-450e-862b-88942d02c340]: Sequence number 81, stage name Update ES config in Controller DB, stage id: 97
INFO  [2018-03-27 14:42:37,740] com.appdynamics.platformadmin.controller.job.stages.UpdateControllerESStage: Updating the Events Service URL in the Controller: http://AppDynamics:9080
INFO  [2018-03-27 14:42:38,235] com.appdynamics.orcha.core.OrchaRunnerImpl: Running playbook C:\AppDynamics\Platform\platform-admin\conf\..\archives\platform-configuration\..\controller\4.4.2.0\playbooks\configure-controller.orcha with variables file C:\AppDynamics\Platform\platform-admin\conf\..\archives\platform-configuration\..\controller\4.4.2.0\playbooks\controller.groovy
INFO  [2018-03-27 14:42:38,237] com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor: Executing : Update Events Service URL in the controller configuration
ERROR [2018-03-27 14:42:38,263] com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor: Error while evaluating task Update Events Service URL in the controller configuration
! org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer'
! at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:160)
! at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:272)
! at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
! at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
! at Script1$_run_closure1$_closure2.doCall(Script1.groovy:12)
! at Script1$_run_closure1$_closure2.doCall(Script1.groovy)
! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
! at java.lang.reflect.Method.invoke(Unknown Source)
! at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
! at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
! at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
! at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
! at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
! at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
! at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:168)
! at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:574)
! at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:83)
! ... 17 common frames omitted
! Causing: com.appdynamics.orcha.shared.exceptions.CommandEvaluationException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer'
! at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
! at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
! at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
! at java.lang.reflect.Constructor.newInstance(Unknown Source)
! at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
! at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
! at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
! at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
! at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
! at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:93)
! at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask$0.callCurrent(Unknown Source)
! at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:74)
! at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask.callCurrent(Unknown Source)
! at com.appdynamics.orcha.dsl.TaskDelegate.getTaskSpecForContext(TaskDelegate.groovy:160)
! at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.prepareTask(DefaultPlaybookExecutor.java:339)
! at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.executeTasksParallel(DefaultPlaybookExecutor.java:194)
! at com.appdynamics.orcha.core.OrchaRunnerImpl.runPlaybook(OrchaRunnerImpl.java:220)
! at com.appdynamics.platformadmin.core.tasks.OrchaStage.runPlay(OrchaStage.java:333)
! at com.appdynamics.platformadmin.core.tasks.OrchaStage.execute(OrchaStage.java:237)
! at com.appdynamics.platformadmin.controller.job.stages.UpdateControllerESStage.execute(UpdateControllerESStage.java:200)
! at com.appdynamics.platformadmin.core.job.JobProcessor.run(JobProcessor.java:236)
! at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:117)
! at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:45)
! at java.util.concurrent.FutureTask.run(Unknown Source)
! at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
! at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
! at java.lang.Thread.run(Unknown Source)
ERROR [2018-03-27 14:42:38,276] com.appdynamics.orcha.core.OrchaRunnerImpl: Error executing:
ERROR [2018-03-27 14:42:38,278] class com.appdynamics.platformadmin.core.job.JobProcessor: Platform/Job [1/0a8d32ac-ef51-450e-862b-88942d02c340]: Stage [Update ES config in Controller DB] failed due to [Task failed: Update Events Service URL in the controller configuration
on host: localhost
with message: com.appdynamics.orcha.shared.exceptions.CommandEvaluationException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer'
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
    at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:93)
    at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask$0.callCurrent(Unknown Source)
    at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:74)
    at com.appdynamics.orcha.dsl.TaskDelegate$evaluateSimpleTask.callCurrent(Unknown Source)
    at com.appdynamics.orcha.dsl.TaskDelegate.getTaskSpecForContext(TaskDelegate.groovy:160)
    at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.prepareTask(DefaultPlaybookExecutor.java:339)
    at com.appdynamics.orcha.core.executor.DefaultPlaybookExecutor.executeTasksParallel(DefaultPlaybookExecutor.java:194)
    at com.appdynamics.orcha.core.OrchaRunnerImpl.runPlaybook(OrchaRunnerImpl.java:220)
    at com.appdynamics.platformadmin.core.tasks.OrchaStage.runPlay(OrchaStage.java:333)
    at com.appdynamics.platformadmin.core.tasks.OrchaStage.execute(OrchaStage.java:237)
    at com.appdynamics.platformadmin.controller.job.stages.UpdateControllerESStage.execute(UpdateControllerESStage.java:200)
    at com.appdynamics.platformadmin.core.job.JobProcessor.run(JobProcessor.java:236)
    at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:117)
    at com.appdynamics.platformadmin.core.job.JobProcessor.call(JobProcessor.java:45)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '8090' with class 'java.lang.String' to class 'java.lang.Integer'
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:160)
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:272)
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
    at Script1$_run_closure1$_closure2.doCall(Script1.groovy:12)
    at Script1$_run_closure1$_closure2.doCall(Script1.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:168)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(ScriptBytecodeAdapter.java:574)
    at com.appdynamics.orcha.dsl.TaskDelegate.evaluateSimpleTask(TaskDelegate.groovy:83)
    ... 17 more
]

New Poster

Re: Issue Controller install job - Failed

i have the same issue too !!!!

Creator

Re: Issue Controller install job - Failed

same!!!

Re: Issue Controller install job - Failed

Hi All,

 

We have already identified this issue and fixing it in the next release.

 

Here is the workaround:

 

In EnterpiseConsole_Home)Directory/archives/controller/{version}/playbooks/configure-controller.orcha

change lines

 

FROM

 

int port = controllerPrimaryPort

 

TO

 

String port = controllerPrimaryPort

 

and save the file and retry the installation.

 

Regards,

Saradhi

Producer

Re: Issue Controller install job - Failed

Thanks for your support.

Adventurer

Re: Issue Controller install job - Failed

We have same problem too.