menu
#10625916 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 06:01:46 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 5 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 PurePerms 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/PurePerms_dev-5.phar/src/_64FF00/PurePerms/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
	public function __construct(PurePerms $plugin){
$this->plugin = $plugin;

$mySQLSettings = $this->plugin->getConfigValue("mysql-settings");

if(!isset($mySQLSettings["host"]) || !isset($mySQLSettings["port"]) || !isset($mySQLSettings["user"]) || !isset($mySQLSettings["password"]) || !isset($mySQLSettings["db"]))
throw new RuntimeException("Failed to connect to the MySQL database: Invalid MySQL settings");


$this->db = new mysqli($mySQLSettings["host"], $mySQLSettings["user"], $mySQLSettings["password"], $mySQLSettings["db"], $mySQLSettings["port"]);

if($this->db->connect_error)
throw new RuntimeException("Failed to connect to the MySQL database: " . $this->db->connect_error);

$resource = $this->plugin->getResource("mysql_deploy_01.sql");

$this->db->multi_query(stream_get_contents($resource));

while($this->db->more_results()){
$this->db->next_result();
#0 plugins/PurePerms_dev-5.phar/src/_64FF00/PurePerms/provider/MySQLProvider(43): mysqli->__construct(string[23] grand-teton.liara.cloud, string[4] root, object SensitiveParameterValue#164616, string[5] ranks, int 33331)
#1 plugins/PurePerms_dev-5.phar/src/_64FF00/PurePerms/PurePerms(197): _64FF00\PurePerms\provider\MySQLProvider->__construct(object _64FF00\PurePerms\PurePerms#45801)
#2 plugins/PurePerms_dev-5.phar/src/_64FF00/PurePerms/PurePerms(117): _64FF00\PurePerms\PurePerms->setProvider()
#3 pmsrc/src/plugin/PluginBase(119): _64FF00\PurePerms\PurePerms->onEnable()
#4 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1398): pocketmine\plugin\PluginManager->enablePlugin(object _64FF00\PurePerms\PurePerms#45801)
#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