Plugins directory won't generate: mkdir(): No such file or directory

If the plugins directory won't generate, it can mean plugins either won't be loaded or could prevent the server from starting entirely. This error is quite rare, as it typically requires a very uncommon user error to occur.

This usually occurs if a regular file has been created named "plugins" - meaning: rather than existing as a directory (a folder), it already exists as a text file of the same name.

To solve this issue, you would just need to connect via FTP and delete the file named "plugins" so that it can be regenerated as a directory.


[Server] Server thread/CRITICAL ErrorException: "mkdir(): No such file or directory" (EXCEPTION) in "src/pocketmine/Server" at line 1432
[Server] Server thread/DEBUG #0 (): pocketmine\{closure}(integer 2, string mkdir(): No such file or directory, string phar:///pmmp_65_1.2.phar/src/pocketmine/Server.php, integer 1432, array Array())
[Server] Server thread/DEBUG #1 src/pocketmine/Server(1432): mkdir(string /plugins/, integer 511)
[Server] Server thread/DEBUG #2 src/pocketmine/PocketMine(553): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///pmmp_65_1.2.phar/, string /, string /plugins/)
[Server] Server thread/DEBUG #3 /pmmp_65_1.2.phar(1): require(string phar:///pmmp_65_1.2.phar/src/pocketmine/PocketMine.php)
If you require any further assistance, please contact our support at:

Mitchell Smith

Managing Director @ Shockbyte

  • pocketmine, plugins, startup, Minecraft Pocket Edition, minecraft bedrock edition
  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

How to Add Mobs to a Bedrock Edition Minecraft Server

Bedrock Dedicated Servers which is Mojang's official Vanilla Minecraft server software for...

How to Enable Cheats on Your Bedrock Server

When playing Minecraft, there are 2 main gamemodes - Creative, and Survival. In Bedrock, in order...

How to Enable Coordinates on Your Minecraft Bedrock Server

This guide explains how you can enable coordinates on your Minecraft Bedrock Edition Server. This...

How to Install Addons on Existing Worlds

Download the behavior pack you'd like to use - it should be a file with a .mcpack or .mcaddon...

How to Install Minecraft Bedrock Dedicated Server (BDS)

We have a video tutorial on how to install Bedrock Dedicated Server:   Bedrock Dedicated...