Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO error: /home/venndev/PocketMine/worlds/world/db: Invalid argument! #6415

Closed
VennDev opened this issue Aug 9, 2024 · 6 comments
Closed
Labels
Category: Core Related to internal functionality Resolution: Invalid

Comments

@VennDev
Copy link

VennDev commented Aug 9, 2024

Steps to reproduce the issue

  • Use command: wget -q -O - https://get.pmmp.io | bash -s - and after ./start.sh

OS and versions

  • PocketMine-MP: 5.17.1
  • PHP: 8.3
  • Server OS: Ubuntu 22.04.3 LTS
  • Game version: Win10

Plugins

  • none

Crashdump, backtrace or other files

[06:21:20.550] [Server thread/CRITICAL]: pocketmine\world\format\io\exception\CorruptedWorldException: "IO error: /home/venndev/PocketMine/worlds/world/db: Invalid argument" (EXCEPTION) in "pmsrc/src/world/format/io/leveldb/LevelDB" at line 116
--- Stack trace ---
  #0 pmsrc/src/world/format/io/WorldProviderManager(44): pocketmine\world\format\io\leveldb\LevelDB->__construct(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #1 pmsrc/src/world/format/io/WritableWorldProviderManagerEntry(47): pocketmine\world\format\io\WorldProviderManager->pocketmine\world\format\io\{closure}(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #2 pmsrc/src/world/WorldManager(270): pocketmine\world\format\io\WritableWorldProviderManagerEntry->fromPath(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #3 pmsrc/src/Server(1169): pocketmine\world\WorldManager->generateWorld(string[5] world, object pocketmine\world\WorldCreationOptions#50224)
  #4 pmsrc/src/Server(1030): pocketmine\Server->startupPrepareWorlds()
  #5 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/venndev/PocketMine/, string[33] /home/venndev/PocketMine/plugins/)
  #6 pmsrc/src/PocketMine(378): pocketmine\server()
  #7 /home/venndev/PocketMine/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPtrBfZs.tar/src/PocketMine.php)
--- Previous ---
LevelDBException: "IO error: /home/venndev/PocketMine/worlds/world/db: Invalid argument" (EXCEPTION) in "pmsrc/src/world/format/io/leveldb/LevelDB" at line 102
  #0 pmsrc/src/world/format/io/leveldb/LevelDB(102): LevelDB->__construct(string[40] /home/venndev/PocketMine/worlds/world/db, array[2])
  #1 pmsrc/src/world/format/io/leveldb/LevelDB(113): pocketmine\world\format\io\leveldb\LevelDB::createDB(string[38] /home/venndev/PocketMine/worlds/world/)
  #2 pmsrc/src/world/format/io/WorldProviderManager(44): pocketmine\world\format\io\leveldb\LevelDB->__construct(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #3 pmsrc/src/world/format/io/WritableWorldProviderManagerEntry(47): pocketmine\world\format\io\WorldProviderManager->pocketmine\world\format\io\{closure}(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #4 pmsrc/src/world/WorldManager(270): pocketmine\world\format\io\WritableWorldProviderManagerEntry->fromPath(string[38] /home/venndev/PocketMine/worlds/world/, object PrefixedLogger#50253)
  #5 pmsrc/src/Server(1169): pocketmine\world\WorldManager->generateWorld(string[5] world, object pocketmine\world\WorldCreationOptions#50224)
  #6 pmsrc/src/Server(1030): pocketmine\Server->startupPrepareWorlds()
  #7 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/venndev/PocketMine/, string[33] /home/venndev/PocketMine/plugins/)
  #8 pmsrc/src/PocketMine(378): pocketmine\server()
  #9 /home/venndev/PocketMine/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPtrBfZs.tar/src/PocketMine.php)
--- End of exception information ---
[06:21:20.568] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[06:21:20.579] [Server thread/EMERGENCY]: Please upload the "/home/venndev/PocketMine/crashdumps/Fri_Aug_9-06.21.20-UTC_2024.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[06:21:21.761] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/11387803?access_token=abaa8a262b4a9e69 or use the ID #11387803.
[06:21:21.763] [Server thread/EMERGENCY]: Forcing server shutdown
@ShockedPlot7560
Copy link
Member

Lack of information to reproduce it

@ShockedPlot7560 ShockedPlot7560 added Category: Core Related to internal functionality Status: Lacks Information labels Aug 10, 2024
@VennDev
Copy link
Author

VennDev commented Aug 11, 2024

world.zip
This is folder World when run first server and it generated!

@dktapps
Copy link
Member

dktapps commented Aug 13, 2024

If you're using WSL you need to make sure it's WSL2. This is a known problem with the old WSL.

@VennDev
Copy link
Author

VennDev commented Aug 13, 2024

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy

4.4.0-19041-Microsoft

@dktapps

@dktapps
Copy link
Member

dktapps commented Aug 13, 2024

Yep that's the old WSL. You need to update to WSL2.

@VennDev
Copy link
Author

VennDev commented Aug 13, 2024

Yep that's the old WSL. You need to update to WSL2.

Thanks y so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core Related to internal functionality Resolution: Invalid
Projects
None yet
Development

No branches or pull requests

3 participants