AMP Server will not start are config change-prompted reboot

OS Name/Version: Windows Server 2022 Standard

Product Name/Version: ADSModule, Version: AMPService 2.4.8.0

Problem Description:

After following a reboot prompt following a config change, the AMP service will not start. Logs indicate a socket error.

As production services are running on this server, a system reboot to resolve the issue is not an option.

[14:28:23] [ADS Info]             : ADS startup complete in 896ms
[14:28:23] [ADS Info]             : Updating remote source CubeCoders/AMPTemplates
[14:28:24] [FileManager Error]    : Unable to start SFTP server.
[14:28:24] [Core Error]           : InvalidOperationException
[14:28:24] [Core Error]           : [0] (InvalidOperationException) : The specified socket is already in use.
[14:28:24] [Core Error]           :    at kdbmv.ssrok.thtoq(EndPoint p0, Boolean p1)
   at kdbmv.ssrok..ctor(EndPoint ep, String hostname, xqkcu runner)
   at Rebex.Net.Servers.Core.Server.Bind(IPEndPoint endPoint, ServerModule module)
   at FileManagerPlugin.PluginMain.PostInit()
[14:28:24] [Core Error]           : SocketException
[14:28:24] [Core Error]           : [1] (SocketException) : Only one usage of each socket address (protocol/network address/port) is normally permitted
[14:28:24] [Core Error]           :    at Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at Net.Sockets.Socket.Bind(EndPoint localEP)
   at kdbmv.ssrok.thtoq(EndPoint p0, Boolean p1)
[14:28:24] [GSMyAdmin Info]       : Websockets are enabled.
[14:28:24] [GSMyAdmin Info]       : Webserver started on http://0.0.0.0:8080
[14:28:24] [Webserver Info]       : RouterTimer@10Hz with 2 jobs started
[14:28:24] [GSMyAdmin Error]      : Socket exception - Trivial error / user error. Will not be submitted.
[14:28:24] [GSMyAdmin Error]      : [Error] --- Begin Exception Data ---
[Error] OS: Windows (x86_64/None)
[Error] Module: ADSModule, Version: AMPService 2.4.8.0
[Error] Release spec: Mainline - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: 172b4b24-e11e-4d4b-a210-dd41dcfde9d3
[Error] SocketException
[Error] [0] (SocketException) : Only one usage of each socket address (protocol/network address/port) is normally permitted
[Error]    at Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at Net.Sockets.Socket.Bind(EndPoint localEP)
   at Net.Sockets.TcpListener.Start(Int32 backlog)
   at m.Http.HttpBackend.ConnectionLoop()
[Error] --- End Exception Data ---

[14:28:24] [GSMyAdmin Info]       : ####################################
[14:28:24] [GSMyAdmin Info]       : #         Self Diagnostics         #
[14:28:24] [GSMyAdmin Info]       : ####################################
[14:28:24] [GSMyAdmin Info]       : The IP and Port combination requested by the socket is already in use by another application. Either end the other application or re-bind this AMP instance to a different IP/port.
[14:28:24] [GSMyAdmin Info]       : Checking for AMP updates...
[14:28:25] [GSMyAdmin Info]       : AMP is up to date.

Steps to reproduce:

  • Change configuration for reporting metrics such that AMP will prompt for a restart.
  • Allow AMP to proceed with the restart

Actions taken to resolve so far:

  • Attempted manual start of service
  • Attempted repair through app installer

Using Task manager, manually end all of the AMP processes - then restart the service using the services control panel.

We’ve also got a potential fix in testing that should stop this issue from reoccurring on Windows systems.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.