Symptom
After you upgrade SAP Business One to 10.0 SP 2511, some Server Tools components can no longer be reached from other machines, even though their services are running on the server.
Example
- Before the upgrade, your firewall allows port 40000. This was enough, because all Server Tools components shared one Tomcat instance on that port.
- After the upgrade, the License Service listens on port 40002 and the Job Service on port 40004.
- The firewall still only allows port 40000. Connections to the License Service and the Job Service from other machines are blocked.
- You open ports 40002 and 40004. The components respond again.
Why it goes unnoticed
- The upgrade finishes without an error, and all services show as running on the server.
- The System Landscape Directory (SLD) and the Extension Manager stay on port 40000, so the most visible tools keep working.
- The problem only shows when another machine tries to reach a component on one of the new ports.
When it typically happens
- After an upgrade from a version lower than 10.0 SP 2511.
- When a firewall or network rule only allows the ports you used before.
Cause
Before 10.0 SP 2511, all Server Tools components shared one Tomcat instance. As of SP 2511, SAP splits them into several Tomcat instances, each with its own Windows or Linux service and its own port. This lets you restart or redeploy one component without affecting the others. Firewall rules that were set up for the old single port do not cover the new ones.
Who is affected
All of the following must apply:
- You run SAP Business One 10.0 SP 2511 or higher, on Microsoft SQL Server or as the version for SAP HANA.
- You upgraded from a version lower than 10.0 SP 2511.
- A firewall or network rule between the Server Tools server and other machines only allows the ports from before the upgrade.
Which ports are in use now
These are the default ports. If you entered different ports in the installation wizard, use yours.
SAP Business One on Microsoft SQL Server (Windows services):
- Port 40000: SAP Business One Server Tools Service (64-bit) runs the System Landscape Directory (SLD) and the Extension Manager.
- Port 40002: SAP Business One License Service (64-bit) runs the License Service.
- Port 40004: SAP Business One Job Service (64-bit) runs the Job Service.
- Port 40005: SAP Business One Service Layer Controller (64-bit) runs the Mobile Service and the Service Layer Configuration Manager.
SAP Business One, version for SAP HANA (Linux services):
- Port 40000:
sapb1servertools.serviceruns the System Landscape Directory (SLD), the Extension Manager and the Backup Service. - Port 40002:
sapb1servertools-license.serviceruns the License Service. - Port 40003:
sapb1servertools-analytics.serviceruns Analytics. - Port 40004:
sapb1servertools-jobservice.serviceruns the Job Service. - Port 40005:
sapb1servertools-servicelayercontroller.serviceruns the Mobile Service and the Service Layer Configuration Manager.
Only the Service Layer Controller moved to a new port. The ports of the Service Layer load balancer and the Service Layer nodes stay the same.
Check your server
On a Windows server, open PowerShell and list the Server Tools ports that are listening:
Get-NetTCPConnection -State Listen -LocalPort 40000,40002,40003,40004,40005 -ErrorAction SilentlyContinue |
Select-Object LocalPort, OwningProcessOn a SAP HANA server, run:
ss -ltnp | grep -E ':4000[0-5] 'Then test from a client or another server in your landscape. On Windows, run this for each port:
Test-NetConnection -ComputerName <SERVER_NAME> -Port 40002How to read the result
- A port is listed on the server, and
TcpTestSucceededisTruefrom the other machine: that component is reachable. - A port is listed on the server, but
TcpTestSucceededisFalsefrom the other machine: a firewall or network rule blocks it. You are affected. - A port is not listed on the server: the component is not running, or it uses a different port that you entered during the installation. Check the services first.
- A successful port test only shows that the network path is open. It does not prove that the component works. Use the checks under “Confirm the result” for that.
Prevent the issue on 10.0 SP 2511
SAP asks you to adjust your network and firewall settings to the new ports. Do this before or right after the upgrade:
- Note the ports you enter in the installation wizard. You can change them in several windows of the wizard during the installation or upgrade.
- Open these ports on the server firewall and on any firewall between the server and the machines that connect to it.
- Update any other network rules, such as reverse proxies or monitoring checks, that point to port 40000 for the moved components.
On Windows, you can add an inbound rule for the default ports like this:
New-NetFirewallRule -DisplayName "SAP Business One Server Tools" -Direction Inbound -Protocol TCP -LocalPort 40000,40002,40004,40005 -Action AllowOn a SAP HANA server with firewalld, run:
firewall-cmd --permanent --add-port=40000/tcp --add-port=40002/tcp --add-port=40003/tcp --add-port=40004/tcp --add-port=40005/tcp
firewall-cmd --reloadKeep in mind:
- Open only the ports your landscape needs, and limit them to the machines that need access, according to your security policy.
- Each component now runs in its own Tomcat instance with its own memory limit. Together, the maximum memory is 10,752 MB on the SQL Server version and 13,824 MB on the version for SAP HANA. Check that your server has enough memory.
- SAP lists a separate Analytics instance on port 40003 only for the version for SAP HANA. On the SQL Server version, the default ports are 40000, 40002, 40004 and 40005.
- On the version for SAP HANA, you can restart all Server Tools components at once with
systemctl restart sapb1servertools-group.target. - To undo the Windows firewall rule, run
Remove-NetFirewallRule -DisplayName "SAP Business One Server Tools". On Linux, run thefirewall-cmdcommand again with--remove-portinstead of--add-port. - On-premise, you adjust the firewall yourself. With a hosting partner or SAP Business One Cloud, ask your partner to open the new ports before the upgrade.
Where the Tomcat instances are
On the SQL Server version, all instances are in <INSTALLATION_FOLDER>\SAP\SAP Business One SetupFiles\tomcat-instances\`, in these subfolders: `B1ServerTools64, B1ServerTools64License, B1ServerTools64JobService and B1ServerTools64ServiceLayerController.
On the version for SAP HANA, all instances are in /usr/sap/SAPBusinessOne/Common/tomcat-instances/, in these subfolders: sapb1servertools, sapb1servertools-license, sapb1servertools-analytics, sapb1servertools-jobservice and sapb1servertools-servicelayercontroller.
Confirm the result
- Run
Test-NetConnectionagain from a client and from each server that connects to Server Tools. Every port you use should returnTcpTestSucceeded : True. - Log on to SAP Business One from a client. A successful logon shows that the License Service is reachable.
- Open the System Landscape Directory and the Extension Manager, and check that your add-ons are listed.
- Check that scheduled jobs and alerts run as planned, which shows that the Job Service works.
- Open the Service Layer Configuration Manager. If you use them, log on with the mobile app and open Analytics on the version for SAP HANA.
- Check your monitoring. Alerts that still test port 40000 for the moved components need the new ports.