Problem SkyFactory server error

Discussion in 'Server Tech Support' started by Daaavid, Oct 18, 2016.

  1. Daaavid

    Daaavid Guest

    Hi,

    I tried to start a server on skyfactory 2.5. but when I started it it showed a error. I don't know what to do so if anyone can help me please? If I use server 2.5.0 everything works but if I use 2.5.5 the latest than I get this error and I want to use 2.5.5

    Code:
    Starting server
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256M; suppor
    t was removed in 8.0
    Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with
    the Serial old collector is deprecated and will likely be removed in a future r
    elease
    A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge
    tException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.j
    ava:43)
            at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.
    java:12)
    Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
            at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
            at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
            ... 6 more
    Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 8 more
    Exiting...
    Press any key to continue . . .
    Thnx
     
  2. Daaavid

    Daaavid Guest

    nobody know's?
     
  3. Henry Link

    Henry Link Popular Member

    I think we need more info. What is the OS and what are you using to start the server? When you updated the server did you also update the jar files used and the startup script?
     
  4. Daaavid

    Daaavid Guest

    I use windows server 2012 R2, I installed Java 8 111 (64-bit), I downloaded the server from the ftb launcher and to start it's a .bat and inside it it's this code

    Code:
    @if NOT "%FTB_VERBOSE%"=="yes" (
        @echo off
    )
    
    call settings.bat
    
    if NOT EXIST minecraft_server.1.7.10.jar (
        goto install
    )
    if NOT EXIST libraries\%LAUNCHWRAPPER% (
        goto install
    )
    goto skipinstall
    
    :install
    echo running install script!
    call FTBInstall.bat
    :skipinstall
    
    REM Check if java in path
    REM TODO: use %JAVACMD%
    where java > NUL 2>&1
    
    if %ERRORLEVEL% NEQ 0 (
        echo No java binary in path. Can't run server, exiting...
        pause
        exit /B
    )
    
    REM Test JVM
    REM e.g. 32-bit JVM does not have server\jvm.dll library
    java -server -version > java-test.log 2>&1
    
    if %ERRORLEVEL% NEQ 0 (
        echo Detected following JVM error:
        echo =======================================
        more java-test.log
        echo =======================================
        echo JVM test failed. Can't run server, Exiting...
        pause
        exit /B
    )
    
    if not exist eula.txt (
        echo Missing eula.txt. Startup will fail and eula.txt will be created
        echo Make sure to read eula.txt before playing!
        goto startserver
    )
    
    find "eula=false" eula.txt 1 > NUL 2>&1
    if %ERRORLEVEL% EQU 0 (
        echo Make sure to read eula.txt before playing! Exiting.
        pause
        exit /B
    )
    
    del /f /q autostart.stamp > nul 2>1
    
    :startserver
    echo Starting server
    java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui
    
    :server_loop
    if exist autostart.stamp (
        del /f /q autostart.stamp > nul 2>1
        echo If you want to completely stop the server process now, press Ctrl+C before the time is up!
        for /l %%i in (5,-1,1) do (
            echo Restarting server in %%i
            choice /t 1 /d y > nul
        )
        echo Starting server now
        java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui
        echo Server process finished
        goto :server_loop
    )
    echo Exiting...
    pause
    
    I don't know if you need more?
     
  5. Henry Link

    Henry Link Popular Member

    As a test can we eliminate the script? Open a command prompt and use the CD command to go where your FTBServer-1.7.10-1614.jar file is located. Then type in the followig:
    Code:
    java -server -Xms512M -Xmx4096M -jar FTBServer-1.7.10-1614.jar nogui
    
    If it produces and error capture as much of the console you window you can and post it here. I'm not trusting some of those command line arguments for Java since I know they only work in Java 7.
     
  6. Daaavid

    Daaavid Guest

    I followed the steps and this is what i found.. I don't know if I did it right so let me know..

    Code:
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.
    
    C:\Users\Administrator>cd\
    
    C:\>cd ftb\server\FTBPresentsSkyfactory25server
    
    C:\ftb\server\FTBPresentsSkyfactory25Server>DIR
    Volume in drive C has no label.
    Volume Serial Number is 78A4-5697
    
    Directory of C:\ftb\server\FTBPresentsSkyfactory25Server
    
    19/10/2016  18:08    <DIR>          .
    19/10/2016  18:08    <DIR>          ..
    19/10/2016  18:08               108 1
    19/10/2016  18:08    <DIR>          config
    19/10/2016  18:08               183 eula.txt
    19/10/2016  18:08               403 FTBInstall.bat
    19/10/2016  18:08               728 FTBInstall.sh
    19/10/2016  18:08         3 018 833 FTBServer-1.7.10-1614.jar
    19/10/2016  18:08         3 018 833 FTBserver.jar
    19/10/2016  18:08               147 java-test.log
    19/10/2016  18:08    <DIR>          libraries
    19/10/2016  18:08           730 737 minecraft_server.1.7.10.jar
    19/10/2016  18:08    <DIR>          modpack
    19/10/2016  18:08    <DIR>          mods
    19/10/2016  18:08    <DIR>          mods-resourcepacks
    19/10/2016  18:08    <DIR>          scripts
    19/10/2016  18:08             2 177 ServerStart.bat
    19/10/2016  18:08             1 557 ServerStart.sh
    19/10/2016  18:08               216 settings.bat
    19/10/2016  18:08               171 settings.sh
    19/10/2016  18:08               129 version.json
                  13 File(s)      6 774 222 bytes
                   8 Dir(s)  19 781 382 144 bytes free
    
    C:\ftb\server\FTBPresentsSkyfactory25Server>java -server -Xms512M -Xmx4096M -jar
    FTBServer-1.7.10-1614.jar nogui
    A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge
    tException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.j
    ava:43)
            at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.
    java:12)
    Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
            at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
            at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
            ... 6 more
    Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 8 more
    
    C:\ftb\server\FTBPresentsSkyfactory25Server>
    
     
  7. Henry Link

    Henry Link Popular Member

    Looks correct. Let me do some testing at home later tonight to see if I can duplicate this error. I don't have a windows server but I'll try it on my windows 10 box and see what I get.

    One last thing can you type in java -version on the command line. I just want to make sure I'm duplicating with that exact same version.
     
  8. Daaavid

    Daaavid Guest

    Thnx for helping man!

    Code:
    C:\ftb\server\FTBPresentsSkyfactory25Server>java -version
    java version "1.8.0_111"
    Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
     
  9. Henry Link

    Henry Link Popular Member

    Ok so I get the exact same thing using a fresh download of the server on Java 1.8.0_101 64 bit. The StartServer.bat isn't calling the FTBInstall.bat. So drop to the command promt again CD to the same directory and type in FTBInstall.bat. Once that is done run the normal ServerStart.bat and that should fix your issue.

    The FTBInstall.bat downloads the minecraft libraries directly from mojang.
     
    Daaavid likes this.
  10. Daaavid

    Daaavid Guest

    I think it works! Thank you very much man!
     
  11. Henry Link

    Henry Link Popular Member

    FYI.. I took this info and submitted a bug report for it on the forums. So hopefully if they do release another update they will fix the server batch files.
     
    Daaavid likes this.

Share This Page