'Failed to access level' when opening a world from a CIFS mount on Ubuntu
I'm running Ubuntu on my PC and I've been playing minecraft on it with the game directory set to a network attached storage (NAS). Up until 20w14a, It's been running without any problems; but now whenever I try to open or create a world, it says 'Failed to access level'
This is the error that was outputted in the console:
Failed to read level New World (22) data java.io.IOException: No such file or directory at java.base/sun.nio.ch.FileKey.init(Native Method) at java.base/sun.nio.ch.FileKey.create(FileKey.java:43) at java.base/sun.nio.ch.FileLockTable.<init>(FileLockTable.java:90) at java.base/sun.nio.ch.FileChannelImpl.fileLockTable(FileChannelImpl.java:1089) at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1153) at java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1165) at acr.a(SourceFile:24) at cxp$a.<init>(SourceFile:196) at cxp.c(SourceFile:185) at dit.a(SourceFile:1657) at dqr.n(SourceFile:301) at dqr.b(SourceFile:225) at dkc.ap_(SourceFile:18) at djw.a(SourceFile:15) at dka.a(SourceFile:150) at dkz.a(SourceFile:27) at diu.b(SourceFile:86) at dnj.a(SourceFile:451) at diu.a(SourceFile:86) at diu.c(SourceFile:150) at ald.execute(SourceFile:94) at diu.b(SourceFile:150) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:123) at dit.d(SourceFile:1027) at dit.d(SourceFile:632) at net.minecraft.client.main.Main.main(SourceFile:204)
I don't get this error whenever I use 1.15.2 or previous.
Here is my /ect/fstab:
- /etc/fstab: static file system information.
# - Use 'blkid' to print the universally unique identifier for a
- device; this may be used with UUID= as a more robust way to name devices
- that works even if disks are added and removed. See fstab(5).
# - <file system> <mount point> <type> <options> <dump> <pass>
- / was on /dev/sda3 during installation
UUID=fd976496-9f6d-45ea-9023-ce4501f97cfb / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
//192.168.1.120/Vault/Storage/Game\040Cache/Steam /media/Vault cifs exec,vers=3.0,rw,credentials=/home/nick/.server,iocharset=utf8,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,auto 0 0
//192.168.1.120/Vault /media/Storage cifs exec,rw,credentials=/home/nick/.server,iocharset=utf8,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,auto 0 0
I really hope this gets patched soon because I really would like to be able to play 1.16 without storing the files locally
Thanks!
Environment
Ubuntu 18.04.4 LTS
Created Issue:
'Failed to access level' when opening a world from a CIFS mount on Ubuntu
I'm running Ubuntu on my PC and I've been playing minecraft on it with the game directory set to a network attached storage (NAS). Up until 20w14a, It's been running without any problems; but now whenever I try to open or create a world, it says 'Failed to access level'
This is the error that was outputted in the console:
Failed to read level New World (22) data java.io.IOException: No such file or directory at java.base/sun.nio.ch.FileKey.init(Native Method) at java.base/sun.nio.ch.FileKey.create(FileKey.java:43) at java.base/sun.nio.ch.FileLockTable.<init>(FileLockTable.java:90) at java.base/sun.nio.ch.FileChannelImpl.fileLockTable(FileChannelImpl.java:1089) at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1153) at java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1165) at acr.a(SourceFile:24) at cxp$a.<init>(SourceFile:196) at cxp.c(SourceFile:185) at dit.a(SourceFile:1657) at dqr.n(SourceFile:301) at dqr.b(SourceFile:225) at dkc.ap_(SourceFile:18) at djw.a(SourceFile:15) at dka.a(SourceFile:150) at dkz.a(SourceFile:27) at diu.b(SourceFile:86) at dnj.a(SourceFile:451) at diu.a(SourceFile:86) at diu.c(SourceFile:150) at ald.execute(SourceFile:94) at diu.b(SourceFile:150) at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:123) at dit.d(SourceFile:1027) at dit.d(SourceFile:632) at net.minecraft.client.main.Main.main(SourceFile:204)
I don't get this error whenever I use 1.15.2 or previous.
Here is my /ect/fstab:
- /etc/fstab: static file system information.
#- Use 'blkid' to print the universally unique identifier for a
- device; this may be used with UUID= as a more robust way to name devices
- that works even if disks are added and removed. See fstab(5).
#- <file system> <mount point> <type> <options> <dump> <pass>
- / was on /dev/sda3 during installation
UUID=fd976496-9f6d-45ea-9023-ce4501f97cfb / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0//192.168.1.120/Vault/Storage/Game\040Cache/Steam /media/Vault cifs exec,vers=3.0,rw,credentials=/home/nick/.server,iocharset=utf8,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,auto 0 0
//192.168.1.120/Vault /media/Storage cifs exec,rw,credentials=/home/nick/.server,iocharset=utf8,dir_mode=0777,file_mode=0777,uid=1000,gid=1000,auto 0 0I really hope this gets patched soon because I really would like to be able to play 1.16 without storing the files locally
Thanks!
Environment
Ubuntu 18.04.4 LTS
relates to
is duplicated by
Thank you for your report!
We're tracking this issue in MC-177336, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit
Newer editions of Java can be very problematic, as noted by the maintainer of the launcher in the Archlinux AUR. Since I'm seeing what looks like more direct Java issues, I'd make sure you're running it in Java8 before going any further. That's the more 'stable' Java version for MC, I'd try that if you're not already using it to launch with.
Please check if this issue has been fixed in 20w16a or higher.
Please comment if this is still an issue in 20w16a or later.
This is still an issue for me with server version 20w14a. If I downgrade the server snapshot to 20w13b it does work. Using 20w16a gives me the same error.
I tried a couple versions of java and got the exact same error:
Please re-check. While I can't fully reproduce, pre-1 should try harder to make sure that file is there
Apparently still an issue in 1.16-pre2 according to
MC-187764.I can confirm that it's still happening in 1.16-pre2. I'm getting the same error messages when attempting to mount a separate volume for the data directory with Docker.