Closed IceOfWraith closed 11 months ago
I'm encountering the same issue and these are the things I've noticed (all with Minecraft Bedrock):
Instance#1 & its server are created (default ports of 19132-19133) and the server starts normally and I can connect to it. However, any instance & server that I try to start afterwards produces the same logs as posted and do not show “Running”, only “Starting”. Despite them not showing started I can still connect to each and it will show that connection in the console. Also, each additional instance and server has had their ports changed.
Starting any other instance’s server before Instance#1’s server (which has the default ports) begins normally. However, now when attempting to start instance#1’s server, it attempts to start and then fails, giving the error message that the server began and stopped within 5 seconds. The logs after that say the the server can’t run because the port is being used—despite all additional instance’s using different ports.
As a note, the additional instances, as far as I can tell, are the only ones show the “no log file” parts of the log.
I think I found a pattern that if you start a second instance it happens. Basically they use a shared log directory and the first server is currently using it. So no way to fix that except Docker. As long as AMP accounts for the log showing this it would be fine.
I think I found a pattern that if you start a second instance it happens. Basically they use a shared log directory and the first server is currently using it. So no way to fix that except Docker. As long as AMP accounts for the log showing this it would be fine.
Ah that makes sense. Have you tried it using a Docker?
I found something that somewhat fixes the failed start issue I was having in case it's helpful. I was reading around and found the 'enable-lan-visibility' server property that was added in 1.19.50. I didn't see that setting in the server.properties file, so I added it manually and now instance#1's server no longer crashes when starting after another instance. Still shows the yellow "Starting" status, though.
This is still an issue. Any progress on a fix for this without having to use Docker as a solution?
This fix is included in the next AMP release.
@IceOfWraith after upgrading to the latest version that came out today, this is still an issue. In fact, now the second instance of minecraft wont start at all instead of starting but not reporting it started as it did before.
Yeah, had a couple support requests about this. The development release has a fix for the most common issue, but there is another I'm looking into.
Any chance of a hot fix release as this is impacting now. Before, all the Minecraft instances would run but not show the server status. Now I can only run one at a time on the same box.
Ahh mixed this up with another issue. Share your log so I cam review what it's doing?
Well, weird...Now it seems to be working as intended after trying to reboot the instances again to get the logs.
You may have been having the other bug that's causing an old version to download.
@IceOfWraith Well, I rebooted the server and it seems the issue is intermittent. It seems to think the port is being used by another instance when in fact it is not. If I manually stop all instances and start them one by one, it works.
[15:59:16] [2023-12-07 10:59:16:850 ERROR]: Port [19132] may be in use by another process. Free up port and re-run program or adjust server.properties file to use alternate ports for server [15:59:16] [2023-12-07 10:59:16:852 ERROR]: Port [19133] may be in use by another process. Free up port and re-run program or adjust server.properties file to use alternate ports for server [15:59:16] [2023-12-07 10:59:16:853 ERROR]: Exiting program [15:59:18] [Minecraft Warning] : Server failed to start 6/5 times...
Share the whole log please. A snippet like that doesn't share the whole story.
Here is the logs from the second instance
That's the same log twice. Heh
Weird...here you go
AMPLOG 2023-12-07 15-56-29.log AMPLOG 2023-12-07 16-20-53.log
The first instance seems to be having tons of errors from the Minecraft server itself. No idea what's going on there, the second looks like it's unable to update which is the other issue we're dealing with. Try these steps:
Go to terminal/SSH and run these commands to switch it sudo su -l amp
(if Linux) then ampinstmgr switch instancename Development
replacing instancename
with the actual name of the instance in AMP. After it's done, start the instance and manage it. Inside run an update again before starting and it should work fine.
If that doesn't work go to https://www.minecraft.net/en-us/download/server/bedrock and download it manually and place that file on your server using the File Manager or SFTP in that instance. Then just start it up. Be sure to not update again or it will replace it with the old version still!
Bug Report
System Information
I confirm:
Symptoms
What are you trying to do? Run a Minecraft Bedrock server.
What are you expecting to happen? The startup (and other regex) should account for the below.
What is actually happening? ('Nothing' is not an acceptable answer!) The logging looks different than normal. This happens consistently for the instances affected, but I don't see a pattern of why only some instances cause it.
Reproduction
Create a Bedrock instance, update and start. Sometimes an instance will give the lines above, other times it gives the same without the first parts.