Complete this prerequisite procedure if the following are true:
- You are performing a fresh install of VNA 22.2.5 and you are choosing a custom installation directory (you are choosing a custom installation directory at the absolute path to install (default install folder /opt/CA) prompt).
- You are upgrading VNA to 22.2.5 and during the original install, you chose a custom installation directory.
VNA - 22.2.5 release only
OS - Linux
1. Log in to the machine where you are installing or upgrading VNA.
2. Start the upgrade by issuing the following command:
./CA_VNA-<version>-Linux.txe
For example:
CA_VNA-22.2.5.727-Linux.txe
3. Accept the license.
The Java Version is evaluated
4. Abort the installation process by pressing the Ctrl+C keys on your keyboard.
For example:
Host Evaluation
---------------
Memory required: 16 GB, available: 16 GB..................................[ OK ]
COREs required: 4, available: 4...........................................[ OK ]
Java version 11 is installed.
^C
The CA_VNA_Install_bak directory and the install.sh file are created. You will use the install.sh file to install VNA in a later step.
5. Update the CA_VNA_Install_bak/wildfly.service file by completing the following steps:
1. Issue the following commands:
cd CA_VNA_Install_bak
vi wildfly.service
2. On line 12 in the service file, update the value for the ExecStart variable to the VNA installation directory.
Example 1:
If the VNA installation directory is /opt, then update the following line from:
ExecStart=/opt/CA/VNA/wildfly/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND
to:
ExecStart=/opt/VNA/wildfly/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND
Example 2:
If the VNA installation directory is /es/VNA, then update following line from:
ExecStart=/opt/CA/VNA/wildfly/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND
to:
ExecStart=/es/VNA/VNA/wildfly/bin/launch.sh $WILDFLY_MODE $WILDFLY_CONFIG $WILDFLY_BIND
3. Save the file.
6. Rename the CA_VNA_Install_bak folder to CA_VNA_install by issuing the following commands:
cd ..
mv CA_VNA_Install_bak CA_VNA_Install
7. Install VNA by running the install.sh file.
8. Delete the install.sh file.
A standalone installation for a custom path of 22.2.5 also run in to the same issue
Note: If the upgrade stop in Copying APM configuration files message and also receive the error message "./install.sh: line 761: [: -eq: unary operator expected", check if the Mysql Service if is running:
[[email protected]_H ~]# service mysql status
Redirecting to /bin/systemctl status mysql.service
● mysql.service - MySQL Server
Loaded: loaded (/etc/systemd/system/mysql.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Fri 2023-02-17 12:11:03 -03; 14min ago
MM DD HH:MM:SS VNA_H systemd[1]: Starting MySQL Server...
MM DD HH:MM:SS VNA_H mysql.server[19433]: /CA/MySql/support-files/mysql.server: line 239: my_print_defaults: command not found
MM DD HH:MM:SS VNA_H systemd[1]: Started MySQL Server.
[[email protected]_H ~]# service mysql start
Redirecting to /bin/systemctl start mysql.service
[[email protected]_H ~]# service mysql status
Redirecting to /bin/systemctl status mysql.service
● mysql.service - MySQL Server
Loaded: loaded (/etc/systemd/system/mysql.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Fri 2023-02-17 12:25:38 -03; 2s ago
Process: 22357 ExecStart=/CA/MySql/support-files/mysql.server start (code=exited, status=0/SUCCESS)
MM DD HH:MM:SS VNA_H systemd[1]: Starting MySQL Server...
MM DD HH:MM:SS VNA_H mysql.server[22357]: /CA/MySql/support-files/mysql.server: line 239: my_print_defaults: command not found
MM DD HH:MM:SS VNA_H systemd[1]: Started MySQL Server.