menu
#7556840 Failed to write to temporary file /home/container/worlds/HCF#5/level.dat.0.tmp: file_put_contents(/home/container/worlds/HCF#5/level.dat.0.tmp): Failed to open stream: Permission denied

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: None
Report date: 2022-09-22 22:24:37 +0000 UTC
Server uptime: 0 days 0 hours 5 minutes 3 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: linux
System banner: Linux c9dc86bb-2009-4b8e-aa6d-17367b086cc5 5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) x86_64

Error information

Message: Failed to write to temporary file /home/container/worlds/HCF#5/level.dat.0.tmp: file_put_contents(/home/container/worlds/HCF#5/level.dat.0.tmp): Failed to open stream: Permission denied
File: pmsrc/src/utils/Filesystem
Line: #266
Error level: RuntimeException
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
		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/world/format/io/data/BedrockWorldData(173): pocketmine\utils\Filesystem::safeFilePutContents(string[38] /home/container/worlds/HCF#5/level.dat, string[526] ..............DayCycleStopTime.......Difficulty.......ForceGameType....GameType.)
#1 pmsrc/src/world/World(1140): pocketmine\world\format\io\data\BedrockWorldData->save()
#2 pmsrc/src/world/WorldManager(399): pocketmine\world\World->save(false)
#3 pmsrc/src/world/WorldManager(360): pocketmine\world\WorldManager->doAutoSave()
#4 pmsrc/src/Server(1822): pocketmine\world\WorldManager->tick(int 6000)
#5 pmsrc/src/Server(1704): pocketmine\Server->tick()
#6 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#7 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/PocketMine(328): pocketmine\server()
#9 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show