dan200 / ComputerCraft

Programmable Computers for Minecraft
Other
965 stars 199 forks source link

[1.79pr1][SMP Only] Computers shutdown on server start #95

Open BombBloke opened 8 years ago

BombBloke commented 8 years ago

So I've set up this server on my system for testing SMP stuff, running it on the same machine as my client...

I've noticed that sometimes when I log in to it, no CC systems are running, and each must be manually booted. People've been reporting this for some time:

1.74 - http://www.computercraft.info/forums2/index.php?/topic/24130-mc-1710cc-174computers-not-turning-on/ 1.73 - http://www.computercraft.info/forums2/index.php?/topic/23393-173csp-creative-single-player-startup-quirks/ 1.72 - http://www.computercraft.info/forums2/index.php?/topic/25134-172smp-command-computers-startup-not-running-consistently/ 1.65 - http://www.computercraft.info/forums2/index.php?/topic/21090-mc-1710cc-165-startup-script-not-executing-on-chunk-load/ 1.63 - http://www.computercraft.info/forums2/index.php?/topic/20687-163-computers-dont-turn-on-at-starting-server/ 1.5 - http://www.computercraft.info/forums2/index.php?/topic/11300-15-turtlescomputers-not-running-startup-script-after-relogging-into-server/

... though of course I've no idea how many of these have the same root cause. Most of them mention SMP, though one or two report SSP.

Personally I've only been able to reproduce it in the past by crashing the game (and even THEN once or twice out of many, many crashes), but with my new SMP server it's a regular thing, happening on more than half of my server starts. Probably ~75%.

I have a Command Computer in the affected world which runs a startup script to control the weather (executing commands every ten minutes to change the time and keep the skies clear). I notice that if this system was running when the server was last stopped, it will always correctly run its startup script when the server next loads - I see messages in the server logs telling me as much:

[22:31:56] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: [@: Set the time to 0] [22:31:56] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: [@: Changing to clear weather]

... but even if I log in to the server ASAP after that, all systems may be off. If I don't log in at all and just watch the server log, then I may still not see any more messages, so presumably player joining doesn't matter, computers are booting when they should, but something is causing them to then immediately shut down.

latest.log - http://pastebin.com/ba0p8JCU fml-server-latest.log - http://pastebin.com/YcR7iupN World save - http://www.mediafire.com/download/qdo7adea5zey7ha/world.7z (the Command Computer I referred to is ID# 15, if you're inclined to mess with it - one of the two sitting on the top of the mountain)

I've been running CCEdu on the server as well, but disabling that doesn't seem to change anything (I haven't been able to find any problems with CCEdu at all thus far, actually - I've not had the time to seriously poke at it, but running scripts / undoing actions / turtle cam / etc all seem ok).

Ezcha commented 8 years ago

I've been having the same issue.

Yarillo4 commented 7 years ago

Also having the same issue.

jordyvl commented 7 years ago

Same issue here

---- On wo, 04 jan 2017 11:50:45 +0100 Yarillo4 <notifications@github.com> wrote ----

Also having the same issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.