AMP icon indicating copy to clipboard operation
AMP copied to clipboard

No online targets could be found for the required platform with a provisioning score above 0

Open xigasa opened this issue 1 year ago • 4 comments

Operating System

Debian 11 bullseye, Ubuntu 22.04, Windows 10 64 bit

AMP Version and Build Date

2.6.0.6 - 20241120.1 / 2.6.0.8 - 20250122.3

AMP Release Stream

Mainline

I confirm that

  • [X] I have searched for an existing bug report for this issue.
  • [X] I am using the latest available version of AMP.
  • [X] my operating system is up-to-date.

Intended Action

Deploy Template from controller to target

Expected Behaviour

The template to deploy on one of the available servers

Actual Behaviour

Controller is giving error "No online targets could be found for the required platform with a provisioning score above 0", its not logging any information even after putting logs into debug mode about the provisioning score even being attempted or calculated/ reaching out to targets for said score.

Reproduction

Create target in VPS (Tested in AWS and CloudServer, any version os) setup Wireguard vpn so vps(Target) can communicate locally / encrypted until it reaches the subnet with the target servers on it. Create target amp installation on subnet successfully pair target to controller. Tested full deployment/management of an Minecraft instance to verify functionality. Remove Said test instance. Follow [Configuring AMP for Enterprise or Advanced Usage] Guide to configure template role/perms/create template eg. 4gb Minecraft. Test template deployment and then you get said msg about provisioning score not above 0.

Here is the chat where Potato King had the same issue and iceofwraith2 started to help then went ghost. I also found digging threw 30 or 40 previous tickets I found someone else having the same/similar issue and Mike troubleshoot it and then stated he would look into it more and add a debug tag to the provisioning score in the next update so it would show the score in the logs however it didn't seem to make it into the last update as the ticket I had found was for a couple older version of amp I believe. https://discord.com/channels/266012086423912458/1316594901806350358

This was also tested locally as in no vps and all on the same network and same result.

Just re-tested in amp 2.6.0.8 - 20250122.3

xigasa avatar Dec 30 '24 12:12 xigasa

Still present in current release.

xigasa avatar Apr 02 '25 23:04 xigasa

This is embarrassing that we didn't get back to you sooner. I apologize! The following logging is added for the next release. This should help determine why it's coming up with a 0 score:

Calculating provision fitness...
Provision fitness score: 8
Calcuation takes the lowest number from these values - Remaining Instance Slots: 32, Free RAM: 17GB, CPU Ratio: 8 (CPU Cores / Total Instances)

IceOfWraith avatar Apr 03 '25 04:04 IceOfWraith

Much Appreciated! Cant wait to figure out what I'm configuring wrong bc there's zero reason my scores should be 0 lol I've given them 128gb ram 20 cores and allows 64 instances and till still tell me my score is zero lol. NGL this issues been going on so long i legit JUST switched to pterodactyl and in the process of moving my game servers off of amp as well as testing out other solutions. Now at least im only stuck with pterodactyl until the next release/once i figure out why its assigning my servers a score of 0 lol! (Ps is there a way to view/test this early? Ex. the beta branch or something?)

xigasa avatar Apr 03 '25 17:04 xigasa

Indeed, you can open up Terminal/SSH and run ampinstmgr switch ADS01 development (might have the ADS01 and development backwards there). Do that on the controller and target if you're using that type of setup.

Be wary that the development build is bug prone so you'll want to switch back to mainline using the same command above.

IceOfWraith avatar Apr 03 '25 18:04 IceOfWraith

Closing this due to inactivity. If you still have an issue after the logging was added, please reply here and I'll reopen it.

IceOfWraith avatar Jul 16 '25 05:07 IceOfWraith