menu
#10625492 No connection could be made because the target machine actively refused it

Submitted by PocketMine-MP 5.10.0

General information

Version: 5.10.0
Git commit: daeba951
Plugin involvement: Direct
Report date: 2024-04-03 05:46:58 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 6 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: win
System banner: Windows NT WIN-CDSNGNQ927H 10.0 build 20348 (Windows Server 2022) AMD64

Error information

Warning: the EconomyAPI plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: No connection could be made because the target machine actively refused it
File: plugins/EconomyAPI-PM5.phar/src/onebone/economyapi/provider/MySQLProvider
Line: #43
Type: mysqli_sql_exception
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

/** @var EconomyAPI */
public function __construct(private EconomyAPI $plugin){
$this->plugin = $plugin;
}

public function open(){
$config = $this->plugin->getConfig()->get("provider-settings", []);

$this->db = new \mysqli(
$config["host"] ?? "127.0.0.1",
$config["user"] ?? "onebone",
$config["password"] ?? "hello_world",
$config["db"] ?? "economyapi",
$config["port"] ?? 3306);
if($this->db->connect_error){
$this->plugin->getLogger()->critical("Could not connect to MySQL server: ".$this->db->connect_error);
return;
}
if(!$this->db->query("CREATE TABLE IF NOT EXISTS user_money(
#0 plugins/EconomyAPI-PM5.phar/src/onebone/economyapi/provider/MySQLProvider(43): mysqli->__construct(string[23] grand-teton.liara.cloud, string[4] root, object SensitiveParameterValue#164327, string[10] economyapi, int 33331)
#1 plugins/EconomyAPI-PM5.phar/src/onebone/economyapi/EconomyAPI(426): onebone\economyapi\provider\MySQLProvider->open()
#2 plugins/EconomyAPI-PM5.phar/src/onebone/economyapi/EconomyAPI(334): onebone\economyapi\EconomyAPI->initialize()
#3 pmsrc/src/plugin/PluginBase(119): onebone\economyapi\EconomyAPI->onEnable()
#4 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1398): pocketmine\plugin\PluginManager->enablePlugin(object onebone\economyapi\EconomyAPI#44732)
#6 pmsrc/src/Server(1034): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45231)
#7 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[50] C:\Users\Administrator\Desktop\EspinasMc\RolePlay\, string[58] C:\Users\Administrator\Desktop\EspinasMc\RolePlay\plugins\)
#8 pmsrc/src/PocketMine(364): pocketmine\server()
#9 pmsrc(11): require(string[94] phar://C:/Users/Administrator/Desktop/EspinasMc/RolePlay/PocketMine-MP.phar/src/)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show