Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264979

Fresh installations print NoSuchFileException for server.properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1
    • None
    • Ubuntu 22.04, OpenJDK 17.0.7+7-Ubuntu-0ubuntu122.10.2
    • Confirmed
    • Dedicated Server
    • Low
    • Platform

      When starting the server for the first time, it prints a NoSuchFileException for server.properties:

       

      Unpacking org/slf4j/slf4j-api/2.0.1/slf4j-api-2.0.1.jar (libraries:org.slf4j:slf4j-api:2.0.1) to libraries/org/slf4j/slf4j-api/2.0.1/slf4j-api-2.0.1.jar
      Starting net.minecraft.server.Main
      [10:26:07] [ServerMain/ERROR]: Failed to load properties from file: server.properties
      java.nio.file.NoSuchFileException: server.properties
      at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
      at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
      at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) ~[?:?]
      at java.nio.file.Files.newByteChannel(Files.java:380) ~[?:?]
      at java.nio.file.Files.newByteChannel(Files.java:432) ~[?:?]
      at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:422) ~[?:?]
      at java.nio.file.Files.newInputStream(Files.java:160) ~[?:?]
      at ahi.b(SourceFile:62) ~[server-1.20.1.jar:?]
      at ahf.a(SourceFile:137) ~[server-1.20.1.jar:?]
      at ahg.<init>(SourceFile:12) ~[server-1.20.1.jar:?]
      at net.minecraft.server.Main.main(SourceFile:115) ~[server-1.20.1.jar:?]
      at net.minecraft.bundler.Main.lambda$run$0(Main.java:54) ~[?:?]
      at java.lang.Thread.run(Thread.java:833) ~[?:?]
      [10:26:07] [ServerMain/WARN]: Failed to load eula.txt
      [10:26:07] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
      minecraft@gameservers-cli:~/servers/vanilla$ 

      It does create the server.properties just fine. As it is expected that this file does not already exist on first run, a stacktrace should not be shown.

            Unassigned Unassigned
            mfnalex mfnalex
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: