Description of problem: Running apply-updates on a Windows machine to update a standalone agent reports the update may have failed and logs the following exception: Unexpected error:D:\rhq-agent\jbossas\standalone\configuration\standalone-full.xml (The system cannot find the path specified) java.io.FileNotFoundException: D:\rhq-agent\jbossas\standalone\configuration\standalone-full.xml (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at org.rhq.prod.UpdateProperties.processSecureSocketProtocol(UpdateProperties.java:105) at org.rhq.prod.UpdateProperties.main(UpdateProperties.java:446) Unexpected error:D:\rhq-agent\bin\rhq-server.properties (The system cannot find the file specified) java.io.FileNotFoundException: D:\rhq-agent\bin\rhq-server.properties (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at org.rhq.prod.UpdateProperties.loadFileContents(UpdateProperties.java:285) at org.rhq.prod.UpdateProperties.processSecureSocketProtocol(UpdateProperties.java:157) at org.rhq.prod.UpdateProperties.main(UpdateProperties.java:446) Version-Release number of selected component (if applicable): 3.3.7 How reproducible: Always Steps to Reproduce: 1. Install 3.3.0 agent in C:\opt 2. Execute apply-update.bat C:\opt\rhq-agent Actual results: Console and update.log contains the following exception/error: Unexpected error:D:\rhq-agent\jbossas\standalone\configuration\standalone-full.xml (The system cannot find the path specified) java.io.FileNotFoundException: D:\rhq-agent\jbossas\standalone\configuration\standalone-full.xml (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at org.rhq.prod.UpdateProperties.processSecureSocketProtocol(UpdateProperties.java:105) at org.rhq.prod.UpdateProperties.main(UpdateProperties.java:446) Unexpected error:D:\rhq-agent\bin\rhq-server.properties (The system cannot find the file specified) java.io.FileNotFoundException: D:\rhq-agent\bin\rhq-server.properties (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at org.rhq.prod.UpdateProperties.loadFileContents(UpdateProperties.java:285) at org.rhq.prod.UpdateProperties.processSecureSocketProtocol(UpdateProperties.java:157) at org.rhq.prod.UpdateProperties.main(UpdateProperties.java:446) Expected results: No failure and update is applied. Additional info: The issue here is that the :success block of the script always applies additional server configuration regardless of the target type.
Moving to ON_QA as available for test with build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=534002 http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/110/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip maps to ER01 build of JON 3.3.8.
Verified on JON 3.3.8 ER02 build Installed 3.3.0 standalone agent on Windows machine and applied the JON 3.3.8 update with standalone agent as target. The update is successful. There are no errors in console and in update.log
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2017-0285.html