menu
#9718910 Failed to write to temporary file /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml.0.tmp: file_put_contents(/home/container/worlds/EBhsZW-0QAA=/worlddefend.yml.0.tmp): Failed to open stream: Permission denied

Submitted by PocketMine-MP 5.7.0

General information

Version: 5.7.0
Git commit: 22b9e703
Plugin involvement: Indirect
Report date: 2023-12-03 05:58:53 +0000 UTC
Server uptime: 0 days 0 hours 13 minutes 48 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: linux
System banner: Linux 68db3733-71c4-4cfe-a9e3-72c0b2fbe383 5.15.0-73-generic #80-Ubuntu SMP Mon May 15 15:18:26 UTC 2023 x86_64

Error information

Warning: the WorldDefend plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: Failed to write to temporary file /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml.0.tmp: file_put_contents(/home/container/worlds/EBhsZW-0QAA=/worlddefend.yml.0.tmp): Failed to open stream: Permission denied
File: pmsrc/src/utils/Filesystem
Line: #263
Type: RuntimeException
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
		try{
ErrorToExceptionHandler::trap(fn() => $context !== null ?
file_put_contents($temporaryFileName, $contents, $flags, $context) :
file_put_contents($temporaryFileName, $contents, $flags)
);
}catch(\ErrorException $filePutContentsException){
$context !== null ?
@unlink($temporaryFileName, $context) :
@unlink($temporaryFileName);
throw new \RuntimeException("Failed to write to temporary file $temporaryFileName: " . $filePutContentsException->getMessage(), 0, $filePutContentsException);
}

$renameTemporaryFileResult = $context !== null ?
@rename($temporaryFileName, $fileName, $context) :
@rename($temporaryFileName, $fileName);
if(!$renameTemporaryFileResult){
/*
* The following code works around a bug in Windows where rename() will periodically decide to give us a
* spurious "Access is denied (code: 5)" error. As far as I could determine, the fault comes from Windows
* itself, but since I couldn't reliably reproduce the issue it's very hard to debug.
#0 pmsrc/src/utils/Config(239): pocketmine\utils\Filesystem::safeFilePutContents(string[51] /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml, string[134] ---.build: false.pvp: false.no-decay: false.keep-inventory: false.keep-experienc)
#1 pmsrc/src/utils/Config(162): pocketmine\utils\Config->save()
#2 pmsrc/src/utils/Config(117): pocketmine\utils\Config->load(string[51] /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml, int 2, array[8])
#3 plugins/WorldDefend.phar/src/taylordevs/WorldDefend/world/WorldManager(128): pocketmine\utils\Config->__construct(string[51] /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml, int 2, array[8])
#4 plugins/WorldDefend.phar/src/taylordevs/WorldDefend/world/WorldManager(67): taylordevs\WorldDefend\world\WorldManager::createConfig(string[51] /home/container/worlds/EBhsZW-0QAA=/worlddefend.yml)
#5 plugins/WorldDefend.phar/src/taylordevs/WorldDefend/world/WorldManager(75): taylordevs\WorldDefend\world\WorldManager::checkData(object pocketmine\world\World#197641)
#6 plugins/WorldDefend.phar/src/taylordevs/WorldDefend/event/CommandEvent(40): taylordevs\WorldDefend\world\WorldManager::getProperty(object pocketmine\world\World#197641, string[7] cmd-ban)
#7 pmsrc/src/event/RegisteredListener(61): taylordevs\WorldDefend\event\CommandEvent->onCommand(object pocketmine\event\server\CommandEvent#229969)
#8 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\server\CommandEvent#229969)
#9 pmsrc/src/Server(1409): pocketmine\event\Event->call()
#10 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#228824, string[27] whitelist add NaturalAndrus)
#11 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[28] /whitelist add NaturalAndrus)
#12 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#200137)
#13 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#84546)
#14 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#200137, string[50] M./whitelist add NaturalAndrus.ND..r.s0%;N.t./...H)
#15 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[53] 3.../..,I..,.QHLIQ.K,)-J.q.K)*-f.sYq..^............<.)
#16 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 2, string[62] .......;...0\...-w.&......9.....}..2v.......|?i)B...fr..s.....)
#17 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#179063)
#18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#19 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#21 pmsrc/src/Server(1682): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701583133.8716)
#22 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#23 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#24 pmsrc/src/PocketMine(357): pocketmine\server()
#25 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show