I am running my server off of a Linux VPS. The full details are listed in the crashdump linked below. I used to run my server off of root but then decided to expand and make separate servers for separate games/gameplay options. I downloaded the world and the plugin .phars that I was using and then completely wiped the VPS. I created the new users, uploaded my files, and decided to test it all by joining and received this error: Code: [23:15:00] [Server thread/CRITICAL]: ErrorException: "fopen(/home/spawn/worlds/Waldheim/region/r.0.0.mca): failed to open stream: Permission denied" (EXCEPTION) in "src/pocketmine/level/format/io/region/RegionLoader" at line 73 [23:15:00] [RakLibServer thread/NOTICE]: Blocked ***.***.***.*** for 5 seconds My MCPE kept trying to load it for another 2 minutes until the server crashed. I do not have the console error but here is the crashdump: https://crash.pmmp.io/view/2490 If any of you need any more information to help better analyse the error/crash then please just ask. (Sorry again for my many questions that I am just not smart enough to figure out the answer)
UPDATE: I started the server when posting this thread and I have the console error because it crashed again after a join attempt: Code: [23:18:05] [Server thread/CRITICAL]: ErrorException: "file_put_contents(/home/spawn/worlds/Waldheim/level.dat): failed to open stream: Permission denied" (EXCEPTION) in "src/pocketmine/level/format/io/BaseLevelProvider" at line 130 [23:18:05] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [23:18:05] [Server thread/EMERGENCY]: Please upload the "/home/spawn/crashdumps/Thu_Aug_10-23.18.05-UTC_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [23:18:05] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/2491 or use the ID #2491. Now I have 2 crashdumps.... whoops
Bruh... Please use code tags. Clearly it says that read/write permission is denied. To fix this use `chmod`: PHP: $ cd /your/server/path$ sudo chmod 777 ./
open up an SSH session to your VPS and chmod the worlds folder recursively: Code: sudo chmod -R 777 ./path/to/worlds/from/current/directory
I have seen a little checkbox like that on my File Manager, I checked it and it appears to be working now. Thank you! @Jack Noordhuis and @Muqsit
Okay, now I can actually join the world but after joining (Maybe 2-5 minutes later) it crashes and according to chrash.pmmmp.io I am not the only one experiencing this issue: Here is the crashdump: https://crash.pmmp.io/view/2504
And it is broken yet again, now I have this error: Code: [15:01:25] [Server thread/CRITICAL]: TypeError: "fseek() expects parameter 1 to be resource, null given" (EXCEPTION) in "src/pocketmine/level/format/io/region/RegionLoader" at line 108 [15:01:25] [Server thread/INFO]: Unloading level "world" [15:01:25] [Server thread/INFO]: Unloading level "Waldheim" Killed https://crash.pmmp.io/view/2506
this is correct for your worlds, but you might also want to simply do it on the whole server to finally get rid of all problems.
I am assuming that it would be: Code: sudo chmod -R 777 /home/ (/home is where my servers are located)
well, you better do it for all your individual servers and not for your whole home server e.g.: Code: sudo chmod -R 777 ./home/spawn/ sudo chmod -R 777 ./home/someotherserver/