Post Reply 
Shuts down on startup
20-06-2022, 10:30
Post: #31
RE: Shuts down on startup
Thansk for letting me know about this. Although the symptoms are similar, this is not related to the issue reported by the OP for this thread.

In this case, the sequence of events appears to be:

1) DSM calls start_stop_status start to start MinimServer
2) A short time later, DSM calls start_stop_status status to check whether MinimServer is running
3) The minimserver.pid file has not yet been created by step 1, so start_stop_status status reports that MinimServer is not running

This can only happen if step 1) is taking an unusually long time to start the MinimServer process. Immediately after the MinimServer process starts running, the minimserver.pid file is created. Perhaps there is a lot of other system activity at this point in DSM startup (creating Docker containers?) and this is taking priority and delaying startup of the MinimServer process.

On DSM 7, MinimServer does not have any prerequisites that must be started first. On DSM 6 the Java8 package is a prerequisite but this does not apply on DSM 7.

I don't think there is anything that MinimServer can do to make step 1) go faster as this is entirely dependent on other activity within DSM startup. By the time the MinimServer process has started running, the error has already occurred.

It would be possible to do something about step 3). The MinimServer startup script could write a placeholder value into the minimserver.pid file to indicate that startup is in progress. The start_stop_status script could check for this placeholder and delay for up to 15 seconds to enable the MinimServer process to start.

Please run a test by changing your "sleep 60" in start_stop_status to "sleep 15". If this enables MinimServer startup to work reliably, I will send you a test build with the above change. If this does not work reliably, is "sleep 30" any better?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Shuts down on startup - SpruceFan - 20-05-2022, 19:16
RE: Shuts down on startup - simoncn - 20-05-2022, 20:17
RE: Shuts down on startup - SpruceFan - 20-05-2022, 20:49
RE: Shuts down on startup - simoncn - 20-05-2022, 20:58
RE: Shuts down on startup - SpruceFan - 25-05-2022, 23:11
RE: Shuts down on startup - SpruceFan - 26-05-2022, 13:43
RE: Shuts down on startup - SpruceFan - 26-05-2022, 18:17
RE: Shuts down on startup - SpruceFan - 26-05-2022, 23:47
RE: Shuts down on startup - simoncn - 27-05-2022, 10:35
RE: Shuts down on startup - SpruceFan - 27-05-2022, 19:20
RE: Shuts down on startup - simoncn - 27-05-2022, 22:17
RE: Shuts down on startup - SpruceFan - 27-05-2022, 23:36
RE: Shuts down on startup - simoncn - 28-05-2022, 17:33
RE: Shuts down on startup - SpruceFan - 01-06-2022, 21:30
RE: Shuts down on startup - simoncn - 03-06-2022, 08:46
RE: Shuts down on startup - SpruceFan - 03-06-2022, 14:28
RE: Shuts down on startup - simoncn - 03-06-2022, 17:12
RE: Shuts down on startup - SpruceFan - 04-06-2022, 00:39
RE: Shuts down on startup - simoncn - 04-06-2022, 09:00
RE: Shuts down on startup - simoncn - 04-06-2022, 21:49
RE: Shuts down on startup - SpruceFan - 05-06-2022, 20:57
RE: Shuts down on startup - simoncn - 08-06-2022, 13:40
RE: Shuts down on startup - SpruceFan - 08-06-2022, 15:48
RE: Shuts down on startup - simoncn - 08-06-2022, 16:27
RE: Shuts down on startup - SpruceFan - 08-06-2022, 16:35
RE: Shuts down on startup - simoncn - 08-06-2022, 17:07
RE: Shuts down on startup - SpruceFan - 08-06-2022, 17:46
RE: Shuts down on startup - simoncn - 08-06-2022, 18:06
RE: Shuts down on startup - simoncn - 18-06-2022, 10:09
RE: Shuts down on startup - hoewer - 20-06-2022, 08:52
RE: Shuts down on startup - simoncn - 20-06-2022 10:30
RE: Shuts down on startup - hoewer - 20-06-2022, 13:59
RE: Shuts down on startup - simoncn - 24-06-2022, 15:36

Forum Jump:


User(s) browsing this thread: 1 Guest(s)