Usage Meter 4.8 is unable to send data to the CPN Portal and gets hung while clicking "Send Update to CPN".
search cancel

Usage Meter 4.8 is unable to send data to the CPN Portal and gets hung while clicking "Send Update to CPN".

book

Article ID: 381552

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

Usage Meter 4.8 is unable to send data to the CPN Portal and gets hung while clicking "Send Update to CPN"

Environment

VMware Cloud Usage Meter 4.8

Cause

This is caused due to a network connection timeout when connecting to a Cloud Partner Navigator Portal (CPN).

gw_error.log shows similar log snippets.

2024-03-12 10:47:47.260 ERROR --- [nginx-clojure-worker-1] com.vmware.um.umconnection.api.Journal : Unable to retrieve the Journal logs.
com.vmware.um.common.err.UmException: Unable to call service at https://localhost:8051/api/v2/journal/search-results: 500 - {"timestamp":"2024-03-12T09:47:47.256+00:00","status":500,"error":"Internal Server Error","path":"/api/v2/journal/search-results"}, body was okhttp3.RequestBody$Companion$toRequestBody$2@40147e57
at com.vmware.um.common.platform.UmPlatformClient.callPlatformService(UmPlatformClient.java:420)
at com.vmware.um.common.platform.UmPlatformClient.searchJournal(UmPlatformClient.java:477)
at com.vmware.um.umconnection.api.Journal.read(Journal.java:166)
at com.vmware.um.gw.handler.UmJournalR.processRequest(UmJournalR.java:77)
at com.vmware.um.gw.RestApiHandler.processRestAPI(RestApiHandler.java:122)
at com.vmware.um.gw.ApiEndPoint.invoke(ApiEndPoint.java:243)
at nginx.clojure.java.NginxJavaHandler.process(NginxJavaHandler.java:125)
at nginx.clojure.NginxSimpleHandler.handleRequest(NginxSimpleHandler.java:217)
at nginx.clojure.NginxSimpleHandler.lambda$execute$0(NginxSimpleHandler.java:181)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

Resolution

1. Take snapshot of the Usage Meter appliance.

2. Login to Usage Meter as "usagemeter" user

3. Change the user to Root user using "su root" command

4. Take a backup for the dss_proces.conf file located at /opt/vmware/cloudusagemetering/conf 

root@usagemeter [ /opt/vmware/cloudusagemetering/conf ]# cp /opt/vmware/cloudusagemetering/conf/das_process.conf /opt/vmware/cloudusagemetering/conf/das_process.conf.bak

5. List the files to confirm if the backup of the conf file got created.

6. Edit the dss_proces.conf file using vi editior.

7. Navigate to the line with " -componentParams { " and append the below parameters.

-readTimeoutSeconds 300
-writeTimeoutSeconds 300

8. Navigate to the line with -componentName processWatcher and edit the -timeoutMs value from 15000 to 350000

9. Save the file using :wq!

10. Reboot the appliance by executing below command :

reboot -f

11. Once the Usage Meter appliance is backup & running, login to the usage meter and try sending updates to CPN by navigating to the below path, Settings -> Send Update To Cloud Partner Navigator and clicking on “Send Update to CPN”, it should be successful.

Additional Information

N/A