sharvine
Contributor
Contributor

Content gateway - Internal Server Error

Hello Everyone,

has anyone faced this issue while enabling the content gateway on UAG.
2022-04-04 16:24:52.391 [main] INFO c.a.a.agent.service.AgentServiceImpl - VMware Content Gateway Configuration ID: XXXXXXXXX-XXXX-XXXXX-XXXXXXXX

2022-04-04 16:24:52.391 [main] INFO c.a.a.agent.service.AgentServiceImpl - Processing Agent Configurations...
2022-04-04 16:24:52.391 [main] INFO c.a.a.agent.service.AgentServiceImpl - The agent has detected that some VMware components have already been configured...
2022-04-04 16:24:52.564 [main] INFO c.a.a.agent.service.AirWatchApi - Getting configuration for Content Gateway
2022-04-04 16:24:52.567 [main] INFO c.a.a.agent.service.AirWatchApi - Connecting to VMware UEM console Content Gateway config V3 endpoint url...
2022-04-04 16:24:54.094 [main] INFO c.a.a.agent.service.AirWatchApi - Creating Content Gateway config json file /opt/vmware/content-gateway/conf/config.json
2022-04-04 16:24:54.095 [main] ERROR c.a.a.agent.service.AirWatchApi - Exception occurred while fetching CG configuration from API :HTTP/1.1 500 Internal Server Error
2022-04-04 16:24:54.095 [main] ERROR c.a.a.agent.service.AirWatchApi - Error while masking content gateway response json string Value {"activityId":"f841c120-6ab6-4def-a928-0ca4d90891b7","errorCode":1000,"message":"Internal Server Error"} of type org.json.JSONObject cannot be converted to JSONArray
2022-04-04 16:24:54.095 [main] INFO c.a.a.a.c.AirWatchConfigurationFactory - Payload for CG :

null
2022-04-04 16:24:54.096 [main] ERROR c.a.a.a.c.AirWatchConfigurationFactory - Error while setting key value from json array Value {"activityId":"f841c120-6ab6-4def-a928-0ca4d90891b7","errorCode":1000,"message":"Internal Server Error"} of type org.json.JSONObject cannot be converted to JSONArray
2022-04-04 16:24:54.096 [main] ERROR c.a.a.agent.service.AgentServiceImpl - Configuration fetched for : CG is null! Please check config details entered in admin UI
2022-04-04 16:24:54.096 [main] INFO c.a.a.agent.service.AgentServiceImpl - CG installer execution for UNINSTALL mode SUCCESS!!
2022-04-04 16:24:54.116 [main] INFO c.a.a.agent.utils.AgentHAProxyUtil - Rewriting HA proxy config with SNI rules: []
2022-04-04 16:24:54.142 [main] INFO c.a.a.agent.service.AgentServiceImpl - Creating /opt/vmware/appliance-agent/config/.local-configs.xml
2022-04-04 16:24:54.156 [main] INFO c.a.a.agent.service.AgentServiceImpl - Creating /opt/vmware/gateway/conf/uem-edge-service-callback.properties
2022-04-04 16:24:54.157 [main] INFO c.a.a.a.c.e.AirWatchEdgeServicesPropertiesWriter - Edge Service Response Properties for cg :
2022-04-04 16:24:54.157 [main] INFO c.a.a.a.c.e.AirWatchEdgeServicesPropertiesWriter - cg.success = true
2022-04-04 16:24:54.157 [main] INFO c.a.a.a.c.e.AirWatchEdgeServicesPropertiesWriter - cg.service.configFailure = true
2022-04-04 16:24:54.157 [main] INFO c.a.a.a.c.e.AirWatchEdgeServicesPropertiesWriter - cg.port =
2022-04-04 16:24:54.158 [main] INFO c.a.a.a.c.e.AirWatchEdgeServicesPropertiesWriter - cg.message = content-gateway service is stopped and disabled successfully!
2022-04-04 16:24:54.172 [main] INFO c.a.a.a.ApplianceAgentApplication - Appliance Agent Application Job is done Stopping ....

Labels (1)
0 Kudos
1 Reply
Kjaspreet
VMware Employee
VMware Employee

Hello! 

Please check out this KB article that might be relevant to the issue. 

Also, since this is specific to your setup, please reach out to our support team for further assistance. 

I hope this helps. 

Thank you,

Jaspreet

0 Kudos