search cancel

APM - Hotfixes adding extra ^M characters in the properties files


Article ID: 201428


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management


APM 10.7 Hotfixes #29 and #67 is adding extra ^M characters in the properties files and this is causing the properties to be ignored. Below an excerpt of the hotfix.log illustrating this issue:

2020-09-17 17:48:18,626 [main] INFO - Patching
2020-09-17 17:48:18,627 [main] INFO - creating directory structure /Introscope_10.7.0.000029/hotfix/10.7.0-HF29/config
2020-09-17 17:48:18,632 [main] INFO - Copying /Introscope_10.7.0.000029/config/ to /Introscope_10.7.0.000029/hotfix/10.7.0-HF29/config/
2020-09-17 17:48:18,648 [main] INFO - replacing "# Copyright © 2018 CA\\. All Rights Reserved\\." with "# Hotfix 10.7.0-HF29\r\n# Cop
yright (c) 2018 CA. All Rights Reserved." in /Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,702 [main] INFO - replacing "# URL that points to the root of the ACC REST API" with "# Command Center URL used for na
vigating to Command Center from the ATC UI main \r\n# navigation. Link will be hidden if URL value is empty. Default value is empty.\r\n# It's also URL that points to the r
oot of the ACC REST API" in /usd/as61486a/soft/Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,738 [main] INFO - replacing "# Path to a Jetty 6.1.25 XML configuration file.  Either an absolute path, or a path rela
tive to the config directory." with "# Path to a Jetty XML configuration file.  Either an absolute path, or a path relative to the config directory.\r\n" in /Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,748 [main] INFO - inserting ^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,750 [main] INFO - inserting ^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,753 [main] INFO - inserting ^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/
2020-09-17 17:48:18,758 [main] INFO - inserting ^M



APM 10.7#HF29 and #HF67


This issue can be workarounded by using for example does2unix command or by using the vi command with ":%s/\r$//g" to remove the ^M characters, eg:

Then save the file (eg from vi command, :wq!)