Symptom
You are trying to uninstall some or all of the server components for SAP Business One, version for SAP HANA using the uninstall wizard; however, you encounter an error.
Image/data in this SAP Note is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental
Solution
If you encounter a similar issue, and in order to reduce downtime for the customer, we recommend to perform a forced uninstallation and then a clean installation, which can be done with the following steps:
- Back up the whole server, if possible.
- Back up the SAP Business One, version for SAP HANA instance.
- Execute the following command as root to list all SAP Business One related rpm packages:
rpm -qa | grep B1
[img][/img]
- If all the packages listed in step 3 are SAP Business One related, use the following command to uninstall them all:
rpm -qa | grep B1 | xargs rpm -evOtherwise, uninstall them one by one with the "rpm -ev" command:
[img][/img]
- Drop the schema SBOCOMMON and SLDDATA; to do that, right-click the items marked in the following screenshots and choose Delete:
[img]
[/img]
Note: For SAP Business One version 10.0 FP2208 and later, also drop schema B1AS. - Drop the user COMMON; to do that, right-click the items marked in the following screenshots and choose Delete:
[img][/img]
Note: For SAP Business One version 10.0, also drop all B1_xxxxxx_RW, B1_xxxxxx_RO, SAPB1_DB_USER_xxxxxx, B1_SBOCOMMON and B1_SBOCOMMON_RW users.
- Rename the folder /usr/sap/SAPBusinessOne.
- Check the port occupied by the deleted tomcat and end its process, for example check 'lsof -i:40000' and use the command: kill <pid no>. You can also use other commands to identify the PID such as 'fuser 40000/tcp' OR 'ss -lntp | grep 40000'. Please repeat the same steps for the Service Layer port (50000), all Service Layer load balancers ports (usually 50001~50004) and Web Client (443). Alternatively, a server reboot will also release all of these ports.
- Remove the SAP service control file, using the command: rm -rf /etc/init.d/sapb1servertools.
- Launch the installation wizard to install server components. To do that, change to the directory <installation media>/Packages.linux/ServerComponents/, and execute the command "./install" :
[img][/img]
For SAP Business One version 10.0, all database administration tasks must be performed at tenant level (usually NDB@NDB) instead of System ID (usually NDB) level.
How to Get Support:
-
- If you are still facing an issue after completing the above steps, please create an SAP Business One support incident from the SAP LaunchPad under the component SBO-BC-SRV.
- Attach the following logs to the SAP Business One Support incident:
- /var/log/SAPBusinessOne/*