System Information
Field |
Value |
Operating System |
Linux - Debian GNU/Linux 12 on x86_64 |
Product |
AMP ‘Phobos’ v2.6.0.10 (Mainline) |
Virtualization |
Docker |
Application |
Minecraft |
Module |
MinecraftModule |
Running in Container |
Yes |
Current State |
Failed |
Problem Description
Issue
I have tried dozens of times to get the server running and the only success I can get is to start the server using a fresh install and start with root privileges using putty. This would indicate an issue with how AMP is trying to start the server. Currently for the instance I have started the server using root and then added privilages to all files so that amp has access. This is as close as I am able to get the server to start and it will say “closed by user” with no apparent reason partway through startup.
Reproduction Steps
- Create new minecraft instance
- Select neoforge
- Upload server files
- Attempt to start server - Fails
You can’t edit/upload files as root and expect AMP to work. Regular Linux file permissions will prevent things from working.
Run ampinstmgr fixperms
as root
in the Linux command line to fix any file permission issues.
Make sure you have the right modloader (Server Type
), version, and Java Version
selected before starting the server. You’ll also need to allocate enough memory for the server under Java and Memory
.
Then if it fails to start, read the error to see what happened.
I have updated permissions as noted and created a new instance. I went ahead and tried a different version of the pack with a newer forge version. I am currently getting part way though the start up before amp loses connection and it relogs me back in and says that startup failed after 5 seconds. (Though it did get a minute or so into loading the mods). Here is the last part of the log. (This is the server pack) (Cant post entire log because it is too long)
UPDATE:
Ok so I think I may have found the issue. It occurred to me that in the in the several weeks I have been working on this that the issue I have been having hasn’t been consistent that the place where loading stops is random every time. I just woke up this morning and decided to try to lower the memory allocated. The server is a 8 gig server and I had 7 gigs allocated so I thought I was good but AMP has some overhead so I decided to lower ram in java settings and it loaded!
In the future where would I see an out of memory error? I never saw an error in the Minecraft logs that would point me to that.
UPDATE 2:
So new issue… maybe has to do with the fact I have made about 50 different instances and deleted them to start fresh with a new idea on how to fix the issue but I can’t connect to the server. I can ping the correct address but minecraft isn’t seeing the instance. Yes I am adding the port on the local instance. what should I be checking first?
In terms of an out of memory error, you sometimes see them, but other times they can fail silently if the JVM doesn’t have enough memory left to write to the log.
You’ll want to santiy-check any firewall settings and/or port forwards you have set up (assuming you’re hosting AMP from home)