Upgrading the P4 Plan server - Linux
You must have superuser permissions to upgrade the P4 Plan Server. Before upgrading, make sure you back up the database and stop the service.
1. Download the new server version
Web browser
Download the latest P4 Plan Server version for Linux
Wget
Run the following command:
$ wget -O NewP4PlanServer.zip https://hansoft.com/downloads/latest-linux-server/
2. Back up the database and stop the service
Go to the location where the P4 Plan server binaries are stored:
$ cd [dir]
If you do not know where the P4 Plan Server is running, use the following command to find it:
$ ps -aux | grep HPMServer
Run the following command to back up the database and stop the service:
$ sudo ./HPMServer -BackupAndStop
This will back up all databases, reset the transaction log, and stop the server. No users can access P4 Plan at this point.
If your server directory name is "HansoftServer" or "HelixPlanServer" you should rename it to "P4PlanServer" and reconfigure the service. For example:
sudo HansoftServer/HPMServer -RemoveService
sudo mv HansoftServer P4PlanServer
sudo P4PlanServer/HPMServer -AddService -RunAsUser hansoft -RunAsGroup hansoft
3. Install the new version
Unzip the package into the directory where you installed the old server and overwrite the old files.
$ unzip NewP4PlanServer.zip
Select [A]ll to replace all old files.
4. Upgrade
Run the -Upgrade command through the HPMServer:
$ sudo ./HPMServer -Upgrade
This will fix file permissions.
5. Start the service
Run the -StartService command through the HPMServer:
$ sudo ./HPMServer -StartService
6. Validate that the server is running
- Check the latest log file in the Log directory to make sure the server is listening on the correct port.
- Log in to the P4 Plan client and make sure you are prompted to upgrade to a new version.