MCMA MC won't start, AMP FTB and Forge and scrds don't start

  • 213 Views
  • Last Post 1 weeks ago
Gilbert17 posted this 4 weeks ago

OS Name/Version: Ubuntu 16.04LTS and 17.04LTS.

Product Name/Version: Because my license is deactivated i can only say i installed AMP and MCMA on the 26.08.17

Steps to reproduce: Install AMP and create a new Instance of srcds(Garry's mod) and try to start the Server. Create a new MC instance and install any kind of FTB or Forge and try to start the Server. Create a new instance and try to start it.

Problem Description: First i bought MCMA and tried to set up a MC Server. MCMA Admin works fine, but when i try to install/run Minecraft i always get a Error. Mostly some kind of java error. Then i tried AMP, MC works out of the Box, but i can't get FTB, Forge or a srcds(Garry's Mod) Server running. I start the instance and it shows that the instance is running, but nothing happens. The log is empty. Also i have the problem that some new instances won't start.

Actions taken to resolve so far: I installed all dependecies Try Java 8 instead of Java 9 Try Ubuntu 16.04 instead of Ubuntu 17.04 Used another Server, both Intel based with 8 Cores and 32GB Ram with 256GB SSD

Order By: Standard | Newest | Votes
Mike posted this 4 weeks ago

Which log are you looking at? Each instance has its own set of log files. "Some kind of java error" isn't helpful, need a copy of the minecraft server log to help you with that. You can find the instance logs in the instance directories. Under linux they're in ~/.ampdata/Instances/INSTANCE_NAME_HERE/AMPLogs

Gilbert17 posted this 4 weeks ago

My srcds Instance says the server is running and the log:

[19:43:16] [Core:System Info]     : Starting AMP version 1.4.8.2, built 2017-08-15 22:00
[19:43:16] [Core:System Info]     : OS: Linux / x86_64
[19:43:16] [Core:System Info]     : AMP Instance ID: d0a83ea6-c954-4cae-afb3-94080df55219
[19:43:17] [ModuleLoader:System Info] : Loading Module: srcdsModule
[19:43:17] [ModuleLoader:System Info] : Loaded srcdsModule version 1.0.0.1
[19:43:17] [ModuleLoader:System Info] :  - Author: CubeCoders Limited
[19:43:17] [ModuleLoader:System Info] :  - For Source Dedicated Server application.
[19:43:17] [ModuleLoader:System Info] :  - Does not support sleeping.
[19:43:17] [Scheduler:System Debug] : srcdsModule registered event PlayerChats (A player sends a chat message)
[19:43:17] [Scheduler:System Debug] : srcdsModule registered event UserJoins (A player joins the server)
[19:43:17] [Scheduler:System Debug] : srcdsModule registered event UserLeaves (A player leaves the server)
[19:43:17] [Scheduler:System Debug] : srcdsModule registered event UpdateAvailable (An update is available)
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Start
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Stop
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Restart
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Kill
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Update
[19:43:17] [Scheduler:System Debug] : srcdsModule registered task Say
[19:43:17] [ModuleLoader:System Info] : Loading Plugin: BannerImagePlugin
[19:43:17] [ModuleLoader:System Info] : Loaded BannerImagePlugin version 1.0.0.0
[19:43:17] [ModuleLoader:System Info] :  - Author: CubeCoders Limited
[19:43:17] [Scheduler:System Debug] : BannerImagePlugin registered event ImageUpdated (The status image has been updated.)
[19:43:17] [ModuleLoader:System Info] : Loading Plugin: EmailSender
[19:43:17] [ModuleLoader:System Info] : Loaded EmailSender version 1.0.0.0
[19:43:17] [ModuleLoader:System Info] :  - Author: CubeCoders Limited
[19:43:17] [Scheduler:System Debug] : EmailSender registered task SendMail
[19:43:17] [ModuleLoader:System Info] : Loading Plugin: FileManager
[19:43:17] [ModuleLoader:System Info] : Loaded FileManager version 1.0.0.0

My MC Instance says installing forge mod the whole time and the log says:

[19:43:12] [Core:System Info]     : Starting AMP version 1.4.8.2, built 2017-08-15 22:00
[19:43:12] [Core:System Info]     : OS: Linux / x86_64
[19:43:12] [Core:System Info]     : AMP Instance ID: a69557ba-8f8e-4d96-afee-1432eff26af4
[19:43:12] [ModuleLoader:System Info] : Loading Module: MinecraftModule
[19:43:12] [Minecraft:System Debug] : Getting latest Minecraft server version information (async)
[19:43:12] [Minecraft:System Debug] : Fetching info for Official
[19:43:12] [Minecraft:System Debug] : Checking for installed plugins and retrieving metadata. (async)
[19:43:12] [ModuleLoader:System Info] : Loaded MinecraftModule version 1.0.0.3
[19:43:12] [ModuleLoader:System Info] :  - Author: CubeCoders Limited
[19:43:12] [ModuleLoader:System Info] :  - For Minecraft application.
[19:43:12] [ModuleLoader:System Info] :  - Supports sleeping.
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event UnexpectedStop (The Minecraft Server stops unexpectedly)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event WatchdogShutdown (The Minecraft Server watchdog forced a shutdown (server unresponsive))
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event RepeatedFailure (The Minecraft server repeatedly fails to start)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event ServerLag (The Minecraft server is unable to keep up)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event StateChanged (The server state changes)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event PlayerKilledByPlayer (A player is killed by another player)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event PlayerKilledByNPC (A player is killed by an NPC)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event PlayerAchievement (A player gets an achievement)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event PlayerSuicide (A player commits suicide)
[19:43:12] [Scheduler:System Debug] : MinecraftModule registered event ServerSleeps (The server enters sleep mode)

I can't reach any server over the serverbrowser or IP-Adress

Mike posted this 4 weeks ago

For srcds, have you added the appropriate firewall rules to allow the port through? You'll need to add them via iptables/firewalld depending on your distribution.

For minecraft, try supplying your own copy of ForgeMod instead of using AMPs downloader. Also worth just letting it run Vanilla as a sanity check.

Gilbert17 posted this 3 weeks ago

I added the firewall rules via iptable.

MC Vanilla works fine. Just the Modpacks like Forge and FTB won't start. Today i logged in and i can't connect to my MC-Forge instance. After i restartet my server i can't start the instance anymore. The log is completly empty. If i create a new instance and upload the forge jar i have to accept the eula and then i get an error that the server is unable to start because "You must accept the Mojang EULA before you may run the Minecraft server." . I tried it mulitple times and i can't start the server whether I accept or refuse the EULA.

Mike posted this 3 weeks ago

AMP doesn't start automatically on boot, you have to set that up yourself right now. Normal way is to use cron to run the instance manager.

For the EULA, go to Configuration -> Server Settings -> Skip startup EULA check -> Off

For Forge, try the following:

  • Server Type -> Forge
  • Release Stream -> Stable
  • Server jar -> Autoselect
  • Click Install / Update
  • Start the server

Gilbert17 posted this 3 weeks ago

I starteted the default Instance via console using this command: ./ampinstmgr StartInstance ADSInstance Then i tried to start the other instances via the webinterface and because that did not work i started them via the console.

Skip Eula check both options don't work.

Because i can't start my other MC Mod Instances i created a new one for minecraft and after i switched to that instance i become the error no java found, but i have a MC Server running outside of AMP on the server. Java 8 and 9 is installed and it dosn't matter which is set as default.

Mike posted this 3 weeks ago

Can you be more specific about what "don't work" means? You need to provide more information. Does the Minecraft server start at all? Does it try but fail? Is there any error output in the console? If so what does it say?

I'd also suggest you hop into the live chat, this is going to take a very long time to solve if only one message is being exchanged per day.

Gilbert17 posted this 3 weeks ago

The instances don't start whether I start them via webinterface or console. If i start them via console the output looks similar to the output when i start the ADSInstance. I can't see any error. If i try to connect to the instances nothing happens and in my ADSInstance the instance is shown as not running and red.

When i create a new Minecraft instance no matter what i do i get the error that no java version has been found. If i run a MC Server manually without AMP everything works fine. I can connect to the server and it shows up directly in the Serverbrowser.

Mike posted this 3 weeks ago

You can check the instances for problems by looking at their specific log files. You can find them in ~/.ampdata/Instances/INSTANCENAME/AMP_Logs - the most common cause if instances not starting is network configuration. Things like picking a port number that's already in use (ADS uses 8080 by default, so setting up an instance on 8080 won't work)

If you type java on the command line by itself do you get any output? AMP is checking in $PATH to look for java. You can manually specify its location though by editing MinecraftModule.kvp in that instances directory.

Usually it can't find Java if you installed it manually rather than via your distributions package manager.

If you upgrade to the nightly build of AMP, there's some new tools in the instance manager to help diagnose startup issues.

Gilbert17 posted this 3 weeks ago

I have four instance using the ports from 8080 to 8084 Thats the instance log:

[21:03:48] [Core:System Info]     : Starting AMP version 1.4.8.2, built 2017-08-15 22:00
[21:03:48] [Core:System Info]     : OS: Linux / x86_64
[21:03:48] [Core:System Info]     : AMP Instance ID: f9915db2-d610-4f7a-ab37-cd2cbb5834be
[21:03:48] [ModuleLoader:System Info] : Loading Module: MinecraftModule
[21:03:48] [Minecraft:System Debug] : Getting latest Minecraft server version information (async)
[21:03:48] [Minecraft:System Debug] : Fetching info for Official
[21:03:48] [Minecraft:System Debug] : Checking for installed plugins and retrieving metadata. (async)
[21:03:48] [ModuleLoader:System Info] : Loaded MinecraftModule version 1.0.0.3
[21:03:48] [ModuleLoader:System Info] :  - Author: CubeCoders Limited
[21:03:48] [ModuleLoader:System Info] :  - For Minecraft application.
[21:03:48] [ModuleLoader:System Info] :  - Supports sleeping.
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event UnexpectedStop (The Minecraft Server stops unexpectedly)
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event WatchdogShutdown (The Minecraft Server watchdog forced a shutdown (server unresponsive))
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event RepeatedFailure (The Minecraft server repeatedly fails to start)
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event ServerLag (The Minecraft server is unable to keep up)
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event StateChanged (The server state changes)
[21:03:48] [Scheduler:System Debug] : MinecraftModule registered event PlayerKilledByPlayer (A player is killed by another player)

And that is the output for java -version. Java is installed via the packet manager

Server1:~$ java -version
openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b161-1)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b161-1, mixed mode)

Mike posted this 3 weeks ago

In that case the instances are starting and running. You can verify this using ./ampinstmgr -t which will show a dot in the last column if an instance is running.

You can also do netstat -tln | grep 8080 replacing 8080 with the port number for each instance to verify that it's listening.

So if the instance is running, and netstat shows that it's listening yet you can't connect - this means the firewall rules are wrong.

Gilbert17 posted this 3 weeks ago

I added firewall rules for all instances. The instances don't start, they are marked red and don't start via console, but i didn't get an error. If i try ./ampinstmgr -t and netstat they are shown as not running and don't listen. So everytime i restart my server or the main AMP instance, i have to create new game instances, because the old ones didn't start.

Mike posted this 3 weeks ago

Okay, do this:

  • Pick an instance that won't start (but don't start it yet)
  • Go to it's datastore directory at ~/.ampdata/Instances/INSTANCE_NAME
  • Go to the AMP_Logs directory
  • Delete all of the log files there
  • Try to start INSTANCE_NAME
  • Check in that same directory for a new log file
  • Pastebin the contents.

I think you've been looking at the wrong logs this whole time. AMP always generates a new log file every time it tries to start in its instance directory.

Gilbert17 posted this 3 weeks ago

Error: No such instance with name: "1-Minecraft" If i look at amp data/instances there is a instance called 1-Minecraft. If i look into the instances.json there is also a instance called 1-Minecraft. If i look into AMP_Logs there is no log after i removed them before i started the instance.

Mike posted this 3 weeks ago

Does that instance show up in ./ampinstmgr -l ?

Gilbert17 posted this 2 weeks ago

I think the correct command is ./ampinstmgr -l because i tried yours multiple times and always got an error. Thats the output and i thin my instances which won't start didn't show up, but he says correctly that 4 instances are loaded. [Info] AMP Instance Manager v1.4.8.2 [Debug] Starting process /sbin/ldconfig [Debug] Working Directory: /home/AMP/AMP [Debug] Arguments: -p [Debug] Started process with ID 3108 [Debug] Starting process /bin/uname [Debug] Working Directory: /home/AMP/AMP [Debug] Arguments: -m [Debug] Started process with ID 3115 [Debug] Loading instances from /home/AMP/.ampdata/instances.json... [Debug] Loaded 4 instances. Instance ID │ ef472d85-f396-48e9-924f-74e6a3a7ce6e Module │ ADS Instance Name │ ADSInstance Friendly Name │ ADSInstance IP Binding │ 0.0.0.0 Port Number │ 8080 Running │ Yes Daemon Installed │ No Start on Boot │ No AMP Version │ 1.4.8.2 Data Path │ /home/AMP/.ampdata/instances/ADSInstance

Instance ID      │ a69557ba-8f8e-4d96-afee-1432eff26af4
Module           │ Minecraft
Instance Name    │ 1-Minecraft
Friendly Name    │ 1-Minecraft
IP Binding       │ 192.168.78.63
Port Number      │ 8081
Running          │ No
Daemon Installed │ No
Start on Boot    │ No
IM was unable to execute there requested command. $System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Couldn't locate the AMP executable.
  at InstanceManagerPlugin.LocalInstanceManager.GetInstalledVersion (System.Guid instanceId) [0x00046] in <5867ab47eaf24d84a2fe7499d33ed004>:0
  at InstanceManagerPlugin.LocalAMPInstance.get_InstalledVersion () [0x0001c] in <5867ab47eaf24d84a2fe7499d33ed004>:0
  at InstanceManagerCLI.Core.PrintInstance (InstanceManagerPlugin.IAMPInstance Instance) [0x000fd] in <024c20d5c97c4556a60daa1d9c2b9b77>:0
  at InstanceManagerCLI.Core.ShowInstancesList () [0x0001a] in <024c20d5c97c4556a60daa1d9c2b9b77>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <3574b7750bbd4f3481d1561b74d01b33>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <3574b7750bbd4f3481d1561b74d01b33>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <3574b7750bbd4f3481d1561b74d01b33>:0
  at InstanceManagerCLI.Core.Run () [0x0039a] in <024c20d5c97c4556a60daa1d9c2b9b77>:0

Mike posted this 2 weeks ago

Did you post a reply and then delete it? It shows you as the last poster but there's no post here.

Gilbert17 posted this 2 weeks ago

I wrote the same answer two times since yesterday and everytime i get a message that my post is awaiting moderation.

Mike posted this 2 weeks ago

Sorry, the spam filter is a little over-sensitive.

It looks like the instance never created properly, or you deleted certain files ( Hence the error - "Couldn't locate the AMP executable" ) Run this:

AMP_NO_CACHE=1 ./ampinstmgr -u 1-Minecraft

Then run ./ampinstmgr -l again.

Gilbert17 posted this 2 weeks ago

That's the output, i think nothing changed. Why does he say 4 instances loaded and shows it in the webinterface when the instance is deleted? The server never was interrupted.

[Info] AMP Instance Manager v1.4.8.2
[Debug] Starting process /sbin/ldconfig
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -p
[Debug] Started process with ID 11439
[Debug] Starting process /bin/uname
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -m
[Debug] Started process with ID 11445
[Debug] Loading instances from /home/AMP/.ampdata/instances.json...
[Debug] Loaded 4 instances.
Instance ID      │ ef472d85-f396-48e9-924f-74e6a3a7ce6e
Module           │ ADS
Instance Name    │ ADSInstance
Friendly Name    │ ADSInstance
IP Binding       │ 0.0.0.0
Port Number      │ 8080
Running          │ Yes
Daemon Installed │ No
Start on Boot    │ No
AMP Version      │ 1.4.8.2
Data Path        │ /home/AMP/.ampdata/instances/ADSInstance

Instance ID      │ a69557ba-8f8e-4d96-afee-1432eff26af4
Module           │ Minecraft
Instance Name    │ 1-Minecraft
Friendly Name    │ 1-Minecraft
IP Binding       │ 192.168.78.63
Port Number      │ 8081
Running          │ No
Daemon Installed │ No
Start on Boot    │ No
IM was unable to execute there requested command. $System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Couldn't locate the AMP executable.
  at InstanceManagerPlugin.LocalInstanceManager.GetInstalledVersion (System.Guid instanceId) [0x00046] in <5867ab47eaf24d84a2fe7499d33ed004>:0
  at InstanceManagerPlugin.LocalAMPInstance.get_InstalledVersion () [0x0001c] in <5867ab47eaf24d84a2fe7499d33ed004>:0
  at InstanceManagerCLI.Core.PrintInstance (InstanceManagerPlugin.IAMPInstance Instance) [0x000fd] in <024c20d5c97c4556a60daa1d9c2b9b77>:0
  at InstanceManagerCLI.Core.ShowInstancesList () [0x0001a] in <024c20d5c97c4556a60daa1d9c2b9b77>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <3574b7750bbd4f3481d1561b74d01b33>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <3574b7750bbd4f3481d1561b74d01b33>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <3574b7750bbd4f3481d1561b74d01b33>:0
  at InstanceManagerCLI.Core.Run () [0x0039a] in <024c20d5c97c4556a60daa1d9c2b9b77>:0

Show More Posts
Close