Server Not Starting Through Web-UI


#1

Hi there, I am having an issue when trying to launch my server through the web-ui. Launching the server through the web UI causes the server to startup then after about 5 seconds then shut down. I am using MineOS Turnkey.

When I SSH into the server as root and start the server.jar using sh Start.sh the server starts up fine.

The contents of Start.sh are
java -Xms2500M -Xmx2500M -jar cauldron-1.7.10-1.1388.1.0-server.jar

In the Web UI I have chosen cauldron-1.7.10-1.1388.1.0-server.jar and 2500 for both the Xmx and Xms.

The Web-UI console normally fails and goes offline at this line:

[05:40:55] [Server thread/WARN]: [05:40:55][SEVERE]
[noppes.npcs.controllers.PixelmonHelper:75] java.lang.NoSuchMethodException: 
    com.pixelmonmod.pixelmon.entities.pixelmon.Entity2HasModel.getModel()
    at java.lang.Class.getMethod(Class.java:1786)
    at noppes.npcs.controllers.PixelmonHelper.load(PixelmonHelper.java:72)
    at noppes.npcs.CustomNpcs.load(CustomNpcs.java:220)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:530)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
    at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
    at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:318)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:176)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620)
    at java.lang.Thread.run(Thread.java:745)`

but the sh script version will continue execute after this warning/error

[06:22:09 WARN]: [06:22:09][SEVERE][noppes.npcs.controllers.PixelmonHelper:75] java.lang.NoSuchMethodException: com.pixelmonmod.pixelmon.entities.pixelmon.Entity2HasModel.getModel()
        at java.lang.Class.getMethod(Class.java:1786)
        at noppes.npcs.controllers.PixelmonHelper.load(PixelmonHelper.java:72)
        at noppes.npcs.CustomNpcs.load(CustomNpcs.java:220)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:530)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
        at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
        at com.google.common.eventbus.EventBus.post(EventBus.java:275)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
        at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
        at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)
        at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:318)
        at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:176)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620)
        at java.lang.Thread.run(Thread.java:745)

[06:22:17 INFO]: Hello World
[06:22:18 INFO]: Loading Integrated Circutis 1.7.10-0.9r37c
[06:22:18 INFO]: Searching for compatible mods
[06:22:18 INFO]: ProjRed|Transmission: true
[06:22:18 INFO]: armourersWorkshop: true
[06:22:18 INFO]: BluePower: false
[06:22:18 INFO]: ForgeMultipart: true
[06:22:18 INFO]: RedLogic: false
[06:22:18 INFO]: MineFactoryReloaded: false
[06:22:18 INFO]: Open Computers: false
[06:22:18 INFO]: Computer Craft: false
[06:22:18 INFO]: Not Enough Items: false
[06:22:18 INFO]: BuildCraft: false
[06:22:18 INFO]: Searching for compatible APIs
[06:22:18 INFO]: BuildCraft Tools API: true
[06:22:18 INFO]: BluePower API: false
[06:22:18 INFO]: Forge Multi Part installation found! FMP Compatible gates will be added.`

This makes me wonder if the problem is with how the Web-UI detects if a server has crashed and if there is any way to fix this error.


#2

Here is the latest.log from running through a script.

https://pastebin.com/BxucZQVk

The latest.log did not update after running the web-ui.

I have also attached my mineos.log. The server is called Pixelmon_One and it won’t appear in the log until 2018.

https://pastebin.com/r3TYTq7a

I can provide any other logs or the server/modpack I am using if that would be helpful.


#3

There’s your problem.

In other words, you’re running it fine as root, but you shouldn’t be: you should be running it as a non-root user. When the server gets started up even once as root, it creates files that the normal user mc cannot modify.

Or put another way, MineOS starts it up with mc, initializes files, tries to write to disk…but the filesystem rejects the ability to write files, because they’re owned by root.

Shut down the server, fix your permissions (as root) and try again from the webui.

# chown -R mc:mc /var/games/minecraft/servers/Pixelmon_One
# chown -R mc:mc /var/games/minecraft/archives/Pixelmon_One
# chown -R mc:mc /var/games/minecraft/backup/Pixelmon_One