It's been a while since I got to work on an MC server, so obviously I decided to upgrade the entire server: I switched from spigot to papermc and I was using version 1.18.2 and I wanted to upgrade to 1.20.4 before backing up the world. When I first started the server, I ran into this error:
Thanks for your help and have Happy Holidays!
Here's the log:[Server thread/ERROR]: Failed to read chunk
And after some research I thought it was just a problem of write and read permissions to give to the file or to the entire folder, and so I did, but always in vain.[18:25:05] [Worker-Main-2/INFO]: Preparing spawn area: 5%
[18:25:05] [IO-Worker-1/WARN]: Failed to read chunk [0, 1]
java.nio.file.AccessDeniedException: ./world/entities/r.0.0.mca
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:181) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:298) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:357) ~[?:?]
at dmj.<init>(SourceFile:126) ~[server-1.20.4.jar:?]
at dmj.<init>(SourceFile:111) ~[server-1.20.4.jar:?]
at dmk.b(SourceFile:45) ~[server-1.20.4.jar:?]
at dmk.a(SourceFile:52) ~[server-1.20.4.jar:?]
at dmh.b(SourceFile:186) ~[server-1.20.4.jar:?]
at dmh.a(SourceFile:236) ~[server-1.20.4.jar:?]
at biw$b.run(SourceFile:60) ~[server-1.20.4.jar:?]
at biu.h(SourceFile:91) ~[server-1.20.4.jar:?]
at biu.a(SourceFile:146) ~[server-1.20.4.jar:?]
at biu.run(SourceFile:102) ~[server-1.20.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
[18:25:05] [Server thread/ERROR]: Failed to read chunk [0, 1]
java.util.concurrent.CompletionException: java.nio.file.AccessDeniedException: ./world/entities/r.0.0.mca
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
at java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:674) ~[?:?]
at java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) ~[?:?]
at java.util.concurrent.CompletableFuture.thenApplyAsync(CompletableFuture.java:2178) ~[?:?]
at dmg.a(SourceFile:54) ~[server-1.20.4.jar:?]
at dnj.c(SourceFile:307) ~[server-1.20.4.jar:?]
at dnj.b(SourceFile:269) ~[server-1.20.4.jar:?]
at dnj.a(SourceFile:237) ~[server-1.20.4.jar:?]
at dnj.a(SourceFile:226) ~[server-1.20.4.jar:?]
at amn.a(SourceFile:1274) ~[server-1.20.4.jar:?]
at aml.b(SourceFile:403) ~[server-1.20.4.jar:?]
at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?]
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
at bir.d(SourceFile:156) ~[server-1.20.4.jar:?]
at anb$b.d(SourceFile:561) ~[server-1.20.4.jar:?]
at bir.x(SourceFile:130) ~[server-1.20.4.jar:?]
at anb$b.x(SourceFile:570) ~[server-1.20.4.jar:?]
at anb.d(SourceFile:280) ~[server-1.20.4.jar:?]
What am I doing wrong? I gave permissions to each folder/file even though it doesn't seem like the right thing to do, but why hasn't anything been unlocked yet?mcziobasi@autoapi:/opt$ ls -l
total 4
drwxrwxrwx 6 mcziobasi mcziobasi 4096 Dec 28 15:17 minecraft
mcziobasi@autoapi:/opt$ cd minecraft
mcziobasi@autoapi:/opt/minecraft$ ls -l
total 48044
-rw-r--r-- 1 mcziobasi mcziobasi 2 Dec 29 02:11 banned-ips.json
-rw-r--r-- 1 mcziobasi mcziobasi 2 Dec 29 02:11 banned-players.json
-rw-r--r-- 1 mcziobasi mcziobasi 10 Dec 28 02:27 eula.txt
drwxr-xr-x 8 mcziobasi mcziobasi 4096 Dec 28 02:29 libraries
drwxr-xr-x 2 mcziobasi mcziobasi 4096 Dec 29 02:11 logs
-rw-r--r-- 1 mcziobasi mcziobasi 2 Dec 29 02:11 ops.json
-rwxrwxrwx 1 mcziobasi mcziobasi 49150256 Dec 7 14:04 server.jar
-rw-r--r-- 1 mcziobasi mcziobasi 1304 Dec 29 02:11 server.properties
-rw-r--r-- 1 mcziobasi mcziobasi 327 Dec 29 02:11 usercache.json
drwxr-xr-x 3 mcziobasi mcziobasi 4096 Dec 28 02:29 versions
-rw-r--r-- 1 mcziobasi mcziobasi 2 Dec 28 02:29 whitelist.json
drwxrwxrwx 16 root root 4096 Dec 29 02:11 world
mcziobasi@autoapi:/opt/minecraft$ cd world
mcziobasi@autoapi:/opt/minecraft/world$ ls -l
total 116
drwxr-xr-x 3 root root 4096 Dec 28 17:31 DIM-1
drwxr-xr-x 3 root root 4096 Dec 28 17:31 DIM1
drwxr-xr-x 2 root root 4096 Dec 28 18:51 advancements
drwxr-xr-x 2 root root 20480 Dec 28 15:18 data
drwxr-xr-x 2 mcziobasi mcziobasi 4096 Dec 28 18:23 datapacks
drwxr-xr-x 2 root root 20480 Dec 28 15:23 entities
-rw-r--r-- 1 root root 11064 Dec 28 15:17 icon.png
drwxr-xr-x 3 root root 4096 Dec 28 18:51 itemsadder
-rw------- 1 mcziobasi mcziobasi 2132 Dec 29 02:11 level.dat
-rw------- 1 mcziobasi mcziobasi 2132 Dec 29 02:08 level.dat_old
drwxr-xr-x 2 mcziobasi mcziobasi 4096 Dec 28 18:23 playerdata
drwxr-xr-x 2 mcziobasi mcziobasi 4096 Dec 28 18:24 poi
drwxr-xr-x 2 mcziobasi mcziobasi 4096 Dec 28 18:23 region
drwxr-xr-x 2 root root 4096 Dec 28 18:51 region_custom_blocks
drwxr-xr-x 2 root root 4096 Dec 28 18:51 region_custom_liquids
drwxr-xr-x 2 root root 4096 Dec 28 18:52 region_various_blocks
-rw-r--r-- 1 mcziobasi mcziobasi 3 Dec 29 02:11 session.lock
drwxr-xr-x 2 root root 4096 Dec 28 18:52 stats
-rw-r--r-- 1 root root 16 Dec 28 15:17 uid.dat
Thanks for your help and have Happy Holidays!