New Instansen licens Fix

OS Name/Version:

  • Windows 10 21H1

Product Name/Version: (Always use the full version number - not ‘Latest’)

  • AMP Version 2.4.0.4

Problem Description:

  • The locks show that my license is not recognized and therefore I can not make new instances.

“No valid AMP license was found. Please run ampinstmgr reactivate FiveM02 to reactivate this instance.”

  • and this with every new instant I create

  • I have the problem since I made an update

As first issue

17:12:22 Waiting for AMP instance to start...
         AMP instance FiveM02 is now running.

17:13:00 Instance FiveM02 has stopped. 

As second edition

Anonymous

Failure to make API call to FiveM02 (http://127.0.0.1:8086/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.

HttpRequestException
[0] (HttpRequestException) : An error occurred while sending the request.
at ADSModule.WebMethods.<MakeInstanceRequest>() at ADSModule.WebMethods.<Servers>()
WebException

[1] (WebException) : Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
SocketException

[2] (SocketException) : Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:8086
at Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) at Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

Steps to reproduce:

  • Created new instans

Actions taken to resolve so far:

  • System Neustart und auch den key datai manuel rein kopiert in die instans
  • ampinstmgr reactivate FiveM02

There are all prots Open in network

Re-enter the key under Configuration → New Instance Defaults.

Thank you for your quick reply
Unfortunately I still have the problem

The problem is still there

Make sure the instance is actually running, if it won’t start - check that instances own logs.

[15:42:06] [Program Info]         : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30
[15:42:06] [Program Info]         : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[15:42:06] [Program Info]         : Running in a HyperV environment.
[15:42:06] [Core Warning]         : Current time zone is set to Mitteleuropäische Zeit - It is recommended you switch to UTC+0 to avoid time-zone related issues
[15:42:06] [Program Info]         : OS: Windows / x86_64
[15:42:06] [Program Info]         : CPU: AMD Ryzen 7 1800X Eight-Core Processor (6C/12T)
[15:42:06] [Program Info]         : AMP Instance ID: 42505fbf-504c-4cb0-8815-24d573903cff
[15:42:06] [Core Info]            : Loaded FiveMModule version 1.0.0.0 by CubeCoders Limited
[15:42:06] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[15:42:06] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[15:42:07] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[15:42:07] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[15:42:07] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[15:42:07] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[15:42:07] [Core Info]            : Licence Present: AMP Professional Edition (Licenced to thomas Bohm)
[15:42:07] [FileManager Notice]   : No SSH keypair available for embedded server, generating new keypair...
[15:42:07] [FileManager Notice]   : Generated new keypair with fingerprint ffuIhrWF759MLuS6l0+wPN5I27Ge7JdbULtPA5dzIXc=
[15:42:07] [FileManager Notice]   : Using keypair with fingerprint ffuIhrWF759MLuS6l0+wPN5I27Ge7JdbULtPA5dzIXc=
[15:42:07] [ModuleLoader Info]    : SFTP Server started on 0.0.0.0:2228
[15:42:07] [Core Error]           : No valid AMP licence was found. Please run `ampinstmgr reactivate FiveM01` to reactivate this instance.

So run the command it gives you and try starting it again.

Yes more times I have also restarted my systeam more times

Show me the output of you running that command.

:admin

17:47:01

Waiting for AMP instance to start...

AMP instance FiveM01 is now running.

Managed remote instance FiveM01 at http://127.0.0.1:8085/

Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous

17:47:22

Failure to make API call to FiveM01 (http://127.0.0.1:8085/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.

HttpRequestException

[0] (HttpRequestException) : An error occurred while sending the request.

at ADSModule.WebMethods.<MakeInstanceRequest>() at ADSModule.WebMethods.<Servers>()

WebException

[1] (WebException) : Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.

at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

SocketException

[2] (SocketException) : Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:8085

at Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) at Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

17:48:00

Instance FiveM01 has stopped.

I have also redone the instans more times

You need to do this on a command prompt, not in AMP itself.

How do you do that I have windows and do it through the web interface and there I just click on the instans

You open up a command prompt (Start → Run → “cmd.exe”) then type in the ampinstmgr ... command.

Hello This is the output When I enter the following command “ampinstmgr reactivate FiveM01”

C:\Users\Assindia>ampinstmgr reaktivieren FiveM01
[Info] AMP Instance Manager v2.3.4.4 gebaut 26/07/2022 20:09
[Info] Release spec: Freigabe - erstellt von CUBECODERS/buildbot auf CCL-DEV
Bitte geben Sie den Wert für den Lizenzschlüssel ein

[Info] Checking licence key...
[Info] Licence Type:  AMP Professional
[Info] Current Usage: 5
[Info] Reactivating instance FiveM01...
[Error] FileNotFoundException
[Error] [0] (FileNotFoundException) : Die Datei oder Assembly "mHttp, Version=0.1.6296.32466, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
[Error] ReflectionTypeLoadException
[Error] [0] (ReflectionTypeLoadException) : Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen.
[Error]    bei InstanceManagerPlugin.LocalInstanceManager.GetProvisionArguments(String ModuleName)
[Error] FileNotFoundException
[Error] [0] (FileNotFoundException) : Die Datei oder Assembly "mHttp, Version=0.1.6296.32466, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
[Error] ReflectionTypeLoadException
[Error] [0] (ReflectionTypeLoadException) : Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen.
[Error]    bei InstanceManagerPlugin.LocalInstanceManager.GetProvisionArguments(String ModuleName)
[Info] Done.

It goes now

You’re using an old version of the AMP Instance Manager. Please update.