Controller not auth with remote

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: ubuntu 22.04 lts

Product Name/Version: 2.4.0.4

Problem Description:
Auth failure to remote server from controller

![Screenshot_1|690x130](upload://aEv8ZuJHnYNIbt4XfeyNzLqcBB4.jpeg)
![Screenshot_2|667x336](upload://ArngXxHYAUq3on0dPzvbUDoObvn.jpeg)


13:03:00
Authentication attempt for user AMP_SYSTEM from 192.168.1.143
13:03:05
TaskCanceledException
[0] (TaskCanceledException) : The operation was canceled.
at AMPAPI.RemoteInstance.GetResponseDynamic (String Module, String Method, Object Parameters) at AMPAPI.RemoteInstance+API_Core.Login (String username, String password, String token, Boolean rememberMe) at GSMyAdmin.Authentication.RemoteAMPAuth.Authenticate (m.Http.IHttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
IOException
[1] (IOException) : Unable to read data from the transport connection: Operation aborted.
at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException (Net.Sockets.SocketError error) at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.GetResult (Int16 token) at Net.Http.HttpConnection.FillAsync () at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed)
SocketException
[2] (SocketException) : Operation aborted
13:04:00
Authentication attempt for user AMP_SYSTEM from 192.168.1.143
13:04:05
TaskCanceledException
[0] (TaskCanceledException) : The operation was canceled.
at AMPAPI.RemoteInstance.GetResponseDynamic (String Module, String Method, Object Parameters) at AMPAPI.RemoteInstance+API_Core.Login (String username, String password, String token, Boolean rememberMe) at GSMyAdmin.Authentication.RemoteAMPAuth.Authenticate (m.Http.IHttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
IOException
[1] (IOException) : Unable to read data from the transport connection: Operation aborted.
at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException (Net.Sockets.SocketError error) at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.GetResult (Int16 token) at Net.Http.HttpConnection.FillAsync () at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed)
SocketException
[2] (SocketException) : Operation aborted

Steps to reproduce:

  • unsure it was working last night and woke up thismore to make a ARk server and couldn’t
  • Step 2
  • Step 3

Actions taken to resolve so far:

sudo apt update && sudo apt upgrade -y

sudo su -l amp

ampinstmgr --nocache upgradeall

and have restarted both machines

Is that log from the controller or the target? If this is home hosted, have you checked that none of your IP addresses have changed?

g’day mate , yes home hosted alll servers have static ip , above is from Target below is from controller

[02:55:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[02:56:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[02:56:00] [Core Error]           : HttpRequestException
[02:56:00] [Core Error]           : [0] (HttpRequestException) : Connection refused
[02:56:00] [Core Error]           :   at AMPAPI.RemoteInstance.GetResponseDynamic (String Module, String Method, Object Parameters) 
  at AMPAPI.RemoteInstance+API_Core.Login (String username, String password, String token, Boolean rememberMe) 
  at InstanceManagerPlugin.RemoteInstanceManager.Login (String username, String password, String token) 
[02:56:00] [Core Error]           : SocketException
[02:56:00] [Core Error]           : [1] (SocketException) : Connection refused
[02:57:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[02:58:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[02:58:00] [Core Error]           : HttpRequestException
[02:58:00] [Core Error]           : [0] (HttpRequestException) : Connection refused
[02:58:00] [Core Error]           :   at AMPAPI.RemoteInstance.GetResponseDynamic (String Module, String Method, Object Parameters) 
  at AMPAPI.RemoteInstance+API_Core.Login (String username, String password, String token, Boolean rememberMe) 
  at InstanceManagerPlugin.RemoteInstanceManager.Login (String username, String password, String token) 
[02:58:00] [Core Error]           : SocketException
[02:58:00] [Core Error]           : [1] (SocketException) : Connection refused
[02:59:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:00:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:01:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:02:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:03:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:04:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:05:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:06:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:07:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:08:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:09:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:10:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:11:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:12:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:13:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:14:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:15:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:16:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:17:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:18:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:19:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:20:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:21:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:22:00] [Auth Activity]        : Authentication token for AMP_SYSTEM requested by UpdateRemoteInstancesList on behalf of iceymidgit
[03:22:00] [Core Info]            : Checking for AMP updates...
[03:22:01] [Core Info]            : AMP is up-to-date.

The instance isn’t running :slight_smile:

above is controller

no it is running , i just gave u an error spot of log my bad.

below is remote

Are you able to browse to the target?

yes i can browse target …AMP Application Management Panel - YouTube

On the target, run ampinstmgr repairauth target http(s)://controller-url-goes-here/ - replacing the URL of course.

sorry didn’t work Still the same result.

Can I just confirm that you’re managing the instances from the controller and not the target?

yes my controller is R Pi and remote is ubuntu server is HP DL180 , it was fine until they did a reboot for a security update last night

the remote just repeats

Authentication attempt for user AMP_SYSTEM from 192.168.1.143

00:59:05

TaskCanceledException

[0] (TaskCanceledException) : The operation was canceled.

at AMPAPI.RemoteInstance.GetResponseDynamic (String Module, String Method, Object Parameters) at AMPAPI.RemoteInstance+API_Core.Login (String username, String password, String token, Boolean rememberMe) at GSMyAdmin.Authentication.RemoteAMPAuth.Authenticate (m.Http.IHttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)

IOException

[1] (IOException) : Unable to read data from the transport connection: Operation aborted.

at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.ThrowException (Net.Sockets.SocketError error) at Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.GetResult (Int16 token) at Net.Http.HttpConnection.FillAsync () at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed)

SocketException

[2] (SocketException) : Operation aborted

Basically either the controller can’t talk to the target, or vice versa. It’s timing out and the task gets stopped.

Check the firewall rules, check they can ping each other, check that wget -qO- http://OTHER-URL on each of them dumps out a load of HTML.

remote to controller

controller to remote

Screenshot_4

If you make a new instance, can you manage it?

1 Like

YES i can create a instance on remote system without controller but i can’t manage it, as it says please connect to your controller at http:// blah to manage this instance

if i try on the controller it says

it is like to connection times out every so often and it can’t connect as i can create a instance on windows server and sometimes manage it and sometimes not only been having these issue after the 2.4 update

Check AMPs logs, I can’t think what’d cause that error save for knackers permissions.