Error: "Connection failure to host: [TCP]server:port number:NODELAY;STREAM"
Description




Cause
  • Firewall rules are not properly set for the Sage 100 program; How to configure Firewall for Sage 100 Advanced and Premium
  • The service may be corrupt or another application is using the same port number as Sage 100 ERP.
  • The root cause is often due to a problem with the network environment. The suggested resolutions are potential workarounds.
Resolution
[BCB:3:Network warning:ECB]



It is also possible to get "NODELAY;STREAM" error if Sage 100 Application Server Configuration - Server tab - has the "CmdAsUser" checkbox. If this is selected, uncheck this checkbox and select Apply to save the settings and then Exit.

Warning: changing settings may require stopping and starting the Application Server service which would disconnect Sage 100 users.

To resolve these issues, try the following potential resolutions or workarounds. Note: The issue may be due to network/environmental problems, Sage 100 Customer Support cannot guarantee resolution. Sage 100 Customer Support is not responsible for troubleshooting network or environmental issues!

If error occurs with all tasks and the port number in error is random port number from 49152 - 65535, then program process Inbound Rules needs to be created on the Windows Server under Windows Firewall Advanced Security.

  • Set Inbound Rules
    1. Open Administrative Tools, Windows Firewall with Advanced Security console
    2. In the left pane of the console, select Inbound Rules
    3. Right-click select New Rule
    4. Select Program click Next
    5. Select "This program path:" and browse to \..\mas90\home\pvxwin32.exe (i.e. C:\Sage\MAS90\Home\pvxwin32.exe) on server, or \..\mas90\home\pvxwin64.exe for 64-bit installations of Sage 100
    6. Select Next until get to 'Specify the name and Description of this Rule" screen
    7. Enter name for Inbound Rule
    8. Select Finish

If using the Client/Server ODBC Driver in Sage 100 Advanced, follow the steps below:

  1. In the left pane of the console, select Inbound Rules
  2. Right-click select New Rule
  3. Select Program click Next
  4. Select "This program path:" and browse to \..\mas90\Home\pvxiosvr.exe (i.e. C:\Sage\MAS90\Home\Pvxiosvr.exe) on server
  5. Select Next until get to 'Specify the name and Description of this Rule" screen
  6. Enter name for Inbound Rule
  7. Select Finish

To remove corruption from the Sage 100 service, disable and reinstall the service. Then create new files:

  • To uninstall the Sage 100 ERP service:
    1. From the Windows desktop on the Sage 100 server, click the Start button. On the Programs menu, point to Sage Software, and then click Uninstall Application Server Service.
    2. In the Service field, select the service, and then select the port of the service.
    3. Click the Remove button.
    4. Click Yes to confirm.
  • To reinstall the Application Server Service:
    1. From the Windows desktop on the Sage 100 server, click the Start button. On the Programs menu, point to Sage Software, and then click Application Server Service Setup.
    2. Select the path to the Sage 100 folder
    3. Click OK to add the service.
  • Note: The service is added based on the settings on the Server tab of Application Server Configuration.

To refresh the Application Server Configuration files in caase they were corrupted:

  1. Stop the Application Server and close the Application Server Configuration application.
  2. On Server go to the Task Manager and kill all PVXWIN32.exe's.
  3. On the Sage 100 server, rename the following files:
    • ..\MAS90\MAS_System\SY_Console.m4t
    • ..\MAS90\MAS_System\SY_Workstation.m4t
    • ..\MAS90\Home\Lib\_Appserv\Locate.pvk
    • ..\MAS90\Home\Lib\_Appserv\Sessions.pvk
  4. Go to All Programs and find the Application Server Configuration and Open it, once it has created the files you can close it.
  5. Restart the Application for Sage 100 ERP Advanced or Premium
    1. From the Windows Desktop at the Sage 100 ERP server, click Start
    2. On the Programs menu, point to the Sage Software or Sage program folder
    3. Select click Application Server Configuration
    4. Click the Server tab. Clear the KeepAlives check box
    5. Click the Clients tab. On the Re-Connect list, select None
  • Note: New Locate.pvk and Sessions.pvk files are created when the Application is restarted. If Sage 100 is normally run as a Service, start the Application first and follow the steps above, then make sure at least one user can log in. Then have that user log out and stop the Application, then Start the Service and allow users to log in.)
  • Note: If there is on-going network corruption, then these refreshed files may become corrupted again.

If problem continues, consider changing the port number:

  1. At the Sage 100 ERP server, set the service to Manually Start.
  2. From the Windows Desktop on the Sage 100 server, click Start. On the Programs menu, point to Sage Software or Sage program folder, then click Application Server Configuration.
  3. Click the Server tab. In the Sockets field, change the socket number to any unused number between 9,000 and 10,000. (If using a firewall, make sure the port is not blocked.)
  4. Click the Start button
  5. If the service starts and runs as an application on the new port number, remove the previous service, and create a new one with the new port number.
    • Remove the original service using Uninstall Application Server Service.
    • Create a new service using Application Server Service Setup

If the message is occurring only for specific users:

  1. Have all users exit Sage 100.
  2. Log on to Sage 100 as Administrator.
  3. From Administrative Tools, select User Maintenance.
  4. Select the first user, and click the Preferences tab.
  5. Select the Spawn Tasks from Application Server check box, and click Accept.
  6. Proceed for remaining users.
  7. Click Done.

If Sage 100 Advanced or Premium is running as a Service, try running Sage 100 as an Application instead:

  1. Stop the Sage 100 service (in Windows, Control Panel, Administrative Tools, Services)
  2. On the Sage 100 server from the Windows Task bar, click Start, Program Files, Sage, Application Server Configuration.
  3. Click Start
[BCB:155:Chat 100 US:ECB]
Steps to duplicate
Related Solutions

How to configure Windows Firewall for Sage 100 Advanced and Premium (video)
How to use PowerShell cmdlet 'Test-NetConnection' to test access to Port on Server?
Windx Client Connection "error: Unable to connect to Server: '[Servername]'. The server cannot be found."
What is data corruption? What are some causes of data corruption?