Major upgrade
Perform a major upgrade
-
Read the release notes for information about changes in Java Agent.
-
Plan for server downtime.
Plan to route client applications to another server until the process is complete and you have validated the result. Make sure the owners of client applications are aware of the change, and let them know what to expect.
-
Download the agent binaries from the BackStage download site.
-
Back up the directories for the agent installation and the web application container configuration:
-
$ cp -r /path/to/java_agents/agent_type /path/to/backup $ cp -r /path/to/agent_type/webapps/agentapp /path/to/backup
-
In remote configuration mode, back up as described in AM’s Maintenance guide.
-
-
Redirect client traffic away from protected web applications.
-
Stop the web applications where the agent is installed.
-
Remove the old Java Agent, as described in Remove Java Agent.
-
Install the new agent.
The installer creates new versions of the following files, with configuration that is relevant to the new version of the agent:
-
Using the agent’s release notes and AM’s release notes, check for changes and update the configuration.
To prevent errors, do not copy configuration files from the previous installation to the new installation. Use the new version of the files and update then as necessary. -
In local configuration mode, update
AgentConfiguration.properties
manually to include properties for your environment, using backed-up files for guidance.The
AgentBootstrap.properties
file created by the installer contains bootstrap properties relevant to the new version of the agent. -
In remote configuration mode, change the agent configuration using the AM admin UI.
-
-
Secure communication between AM and the agent with appropriate keys. For information, refer to Configure AM servers to communicate with Java Agents.
-
Start the web applications where the agent is installed.
-
Check that the agent is performing as expected:
-
Check the correct version of the agent is running:
-
Set the log level to
trace
, as described in Manage logs. -
In
/path/to/java_agents/agent_type/Agent_n/logs/debug
, search for lines containing the stringX-ForgeRock-Edge-Metadata
. The version number is given in the header.For example, the log file can contain the following header:
--header "X-ForgeRock-Edge-Metadata: JPA 2024.9
.
-
-
Navigate to a protected page on the website and confirm whether you can access it according to your configuration.
-
Check logs files for warnings and errors.
-
-
Allow client traffic to flow to the protected web applications.