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.


Example Server Log

[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: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

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

Related Articles

How many players can I host with my plan?

We allow unlimited slots on all plans, however, the actual amount of players your server can run...

How to Install Minecraft Bedrock Dedicated Server (BDS)

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

Which server location should I choose?

  We recommend picking the location that is geographically closest to you. If you're not sure...

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 Install Behavior Packs on Your Minecraft Server

We have a video tutorial on how to install an add-on / behavior pack on your Minecraft server:...