MEDIA NODES are not created

I have downgraded the Openvidu server fromt2.large to t2.medium and later on due to performance issue we have upgraded to same instance t2.large,After upgradation media nodes won’t be shown in openvidu inspector ,So we restarted the openvidu but we don’t get the media nodes back.

When i tried in inspector it as showing an error adding media nodes to cluster.

Please, more information is always needed for this kind of problems:

  1. What version do you have deployed?
  2. What is the 500 error log you are having in your server?
  3. What region you have deployed?
  4. Check in /opt/openvidu/.env that AWS_IMAGE_ID is defined.

Regards,
Carlos

1.Using openvidu pro version 2.17.1
2.In ap-south-1 region we have deployed openvidu and kurento media server
3.AWS_IMAGE-ID was defined in /opt/openvidu/.env

Should we define openvidu AWS_IMAGE-ID or kurento media server AWS_IMAGE-ID?

In aws we have openvidu server and one kurento media server but Kurento media server was not showing in the inspector

No, it should be there as it is. I was thinking that maybe the parameter was not there.

  • It still not working by clicking “Autodiscover” ?
  • Did you check what error are you having in OpenVidu Server logs while creating Media nodes?
sudo su
cd /opt/openvidu
./openvidu logs

Please check the logs of Openvidu server here

openvidu-server_1 | [INFO] 2022-06-16 05:53:46,242 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:53:46,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [ERROR] 2022-06-16 05:53:46,250 [I/O dispatcher 1] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Sending event of type “cdr” to Elasticsearch failure: Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
openvidu-server_1 | [ERROR] 2022-06-16 05:53:54,709 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:53:54,710 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:53:54,710 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:53:54,710 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,522 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,522 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,522 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,522 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,684 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,684 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,684 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,684 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,834 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,834 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,837 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:53:55,837 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - Autoscaling modifiyng cluster
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingConfig [maxNodes=5, minNodes=4, maxAvgLoad=70.0, minAvgLoad=30.0]
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - SystemStatus [numNodes=0, totalLoad=0.0, avgLoad=NaN, runningNodes=, launchingNodes=, waitingIdleToTerminateNodes=, canceledNodes=]
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingResult [doNothing=false, numNodesToLaunch=4, relaunchWaitingIdleToTerminateNodes=, relaunchCanceledNodes=, terminateLaunchingNodes=, nodesToTerminate=]
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,242 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:53:56,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [ERROR] 2022-06-16 05:53:56,254 [I/O dispatcher 1] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Sending event of type “cdr” to Elasticsearch failure: Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,008 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,008 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,008 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,009 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,641 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,642 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,642 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,642 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,667 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,668 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,668 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,668 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,687 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,687 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,687 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:05,687 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - Autoscaling modifiyng cluster
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingConfig [maxNodes=5, minNodes=4, maxAvgLoad=70.0, minAvgLoad=30.0]
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - SystemStatus [numNodes=0, totalLoad=0.0, avgLoad=NaN, runningNodes=, launchingNodes=, waitingIdleToTerminateNodes=, canceledNodes=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,241 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingResult [doNothing=false, numNodesToLaunch=4, relaunchWaitingIdleToTerminateNodes=, relaunchCanceledNodes=, terminateLaunchingNodes=, nodesToTerminate=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,244 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:06,244 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [ERROR] 2022-06-16 05:54:06,253 [I/O dispatcher 1] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Sending event of type “cdr” to Elasticsearch failure: Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
openvidu-server_1 | [ERROR] 2022-06-16 05:54:14,616 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:14,616 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:14,616 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:14,616 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,454 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,454 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,454 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,456 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,591 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,591 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,591 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,591 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,723 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,723 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,723 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:15,723 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - Autoscaling modifiyng cluster
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingConfig [maxNodes=5, minNodes=4, maxAvgLoad=70.0, minAvgLoad=30.0]
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - SystemStatus [numNodes=0, totalLoad=0.0, avgLoad=NaN, runningNodes=, launchingNodes=, waitingIdleToTerminateNodes=, canceledNodes=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingResult [doNothing=false, numNodesToLaunch=4, relaunchWaitingIdleToTerminateNodes=, relaunchCanceledNodes=, terminateLaunchingNodes=, nodesToTerminate=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,244 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:16,244 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [ERROR] 2022-06-16 05:54:16,251 [I/O dispatcher 1] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Sending event of type “cdr” to Elasticsearch failure: Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,365 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,367 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,367 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,367 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,383 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,383 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,383 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,384 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,425 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,426 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,426 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,426 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,608 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,608 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,608 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:25,608 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - Autoscaling modifiyng cluster
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingConfig [maxNodes=5, minNodes=4, maxAvgLoad=70.0, minAvgLoad=30.0]
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - SystemStatus [numNodes=0, totalLoad=0.0, avgLoad=NaN, runningNodes=, launchingNodes=, waitingIdleToTerminateNodes=, canceledNodes=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,242 [Timer-2] io.openvidu.server.pro.infrastructure.autoscaling.AutoscalingApplier - AutoscalingResult [doNothing=false, numNodesToLaunch=4, relaunchWaitingIdleToTerminateNodes=, relaunchCanceledNodes=, terminateLaunchingNodes=, nodesToTerminate=]
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-2] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,243 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,244 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Launching new ‘aws’ instance of type ‘kms’
openvidu-server_1 | [INFO] 2022-06-16 05:54:26,244 [pool-7-thread-1] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Running command “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh”
openvidu-server_1 | [ERROR] 2022-06-16 05:54:26,252 [I/O dispatcher 1] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Sending event of type “cdr” to Elasticsearch failure: Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]
openvidu-server_1 | [INFO] 2022-06-16 05:54:33,094 [http-nio-0.0.0.0-5443-exec-5] io.openvidu.server.rest.SessionRestController - REST API: GET /openvidu/api/sessions
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,208 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,208 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,208 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager -
openvidu-server_1 | An error occurred (AccessDenied) when calling the DecodeAuthorizationMessage operation: User: arn:aws:sts::565252864231:assumed-role/SSM-Role/i-00fde4b53dc787fe3 is not authorized to perform: sts:DecodeAuthorizationMessage because no identity-based policy allows the sts:DecodeAuthorizationMessage action
openvidu-server_1 |
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,208 [pool-7-thread-3] io.openvidu.server.pro.infrastructure.InfrastructureManager - Error launching Media Node instance
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,358 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Script “/opt/openvidu/cluster/aws/openvidu_launch_kms.sh” returned an invalid JSON string through the standard output. Looking for error output…
openvidu-server_1 | [ERROR] 2022-06-16 05:54:35,358 [pool-7-thread-5] io.openvidu.server.pro.infrastructure.onpremise.OnpremiseInfrastructureManager - Error output found. Content:

When searching for Auto discover the error is as follows

I think I know what is happening. When the Cloudformation is deployed a role and a policy is assigned to the specific instance created.

But if you create an instance by hand and move all its files (which I think this is what you did), the role and policy is not assigned to that new instance. Another possibility is that you changed or added a new policy and OpenVidu is not understanding that.

You need to assign that role to your instance. It should be in your Cloudformation resources:


When this role is assigned to your new instance, it should work. I do not recommend anyways to create resources apart from those created by Cloudformation.

Another option is to redeploy with the new type of instance.

Thanks Cruizba when i assigned role to new instance the issue sorted out

I’m glad that was the issue.

You’re welcome!