ERROR: apmservices.cloudproxy start failed.

book

Article ID: 220371

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Cloud Proxy - Editing the "config/application.yml", for log file size and  log retention from the guide below: 

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/migrate-agents-using-cloud-proxy.html

 -> Cloud Proxy Logging

-> Update the Log File History and Size

Example:

logging.file.max-history:14

logging.file.total-size-cap:1GB

 

Gives error: 

Job for apmservices-cloudproxy.service failed because the control process exited with error code. See "systemctl status apmservices-cloudproxy.service" and "journalctl -xe" for details.
APM-ACC-BraodcomApp00103 [/opt/ca/cloudproxy/logs]=>systemctl status apmservices-cloudproxy.service
— apmservices-cloudproxy.service - APM Cloud Proxy service
   Loaded: loaded (/usr/lib/systemd/system/apmservices-cloudproxy.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/apmservices-cloudproxy.service.d
           â””─filelimit.conf
   Active: activating (auto-restart) (Result: exit-code) since Wed 2021-07-21 11:09:35 EDT; 10s ago
  Process: 24538 ExecStop=/opt/ca/cloudproxy/apmservices.cloudproxy.sh stop (code=exited, status=0/SUCCESS)
  Process: 24707 ExecStart=/opt/ca/cloudproxy/apmservices.cloudproxy.sh start (code=exited, status=1/FAILURE)
 Main PID: 12515 (code=exited, status=143)

ERROR: apmservices.cloudproxy start failed.
while scanning a simple key
 in 'reader', line 59, column 1:
    logging.file.total-size-cap:1GB
    ^
could not find expected ':'
 in 'reader', line 60, column 1:
    logging.file.max-history:5
    ^
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:463)
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:278)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:235)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:162)
        at org.yaml.snakeyaml.composer.Composer.

 

 

Cause

A space missing after ":"

Correction has been requested for the Doc: 

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/migrate-agents-using-cloud-proxy.html

Environment

Release : SAAS

Component :

Resolution

Cause: Guide is incorrectly documented. A space is needed  

Customer tried with a space after the ':'  and it worked. 

Resolution:

Correct syntax with space:

logging.file.max-history: 14

logging.file.total-size-cap: 1GB