birdy1980
06/08/2022, 8:36 AMbirdy1980
06/08/2022, 10:50 AMbox server list
also shows the instance as stopped. The windows service however says it is started...
Also, this is not a consistent problem. Once and a while the site will start. I have looked in several log files of commandbox, and in de logfiles of the cfserver I'm trying to start, but I see no weird errors.
We are running 2 of those windows commandbox services.
Does anyone have a clue as to what is happening?bhartsfield
06/08/2022, 11:57 AMbhartsfield
06/08/2022, 12:01 PMbhartsfield
06/08/2022, 12:02 PMbirdy1980
06/08/2022, 12:05 PMI can't find any logs around what could have gone wrong... when it happens, it's just as if the windows service (wrapper) started but never tried to start the actual commandbox server.Exactly the issue we where experiencing. We started evaluating the situation and came to the conclusion that we actually don't need the windows service. We reverted back to
box start serverConfigFile=""
and box stop serverConfigFile=""
which seem to work fine.
Thanks for the inpubhartsfield
06/08/2022, 12:05 PMbhartsfield
06/08/2022, 12:06 PMbhartsfield
06/08/2022, 12:07 PMbdw429s
06/08/2022, 5:51 PMbdw429s
06/08/2022, 5:52 PMbdw429s
06/08/2022, 5:52 PMbdw429s
06/08/2022, 5:53 PMbdw429s
06/08/2022, 5:54 PMbdw429s
06/08/2022, 5:56 PMbdw429s
06/08/2022, 5:57 PMjstack -l 12345
and look for this in the stack trace
at system.util.multiselect_cfc$cf.udfCall3(/commandbox/system/util/MultiSelect.cfc:298)
That's the code that prompts the user when they try to start an already-started servicebdw429s
06/08/2022, 5:58 PMbdw429s
06/08/2022, 5:58 PMbdw429s
06/08/2022, 5:59 PMbox_config_nonInteractiveShell=true
bdw429s
06/08/2022, 6:03 PMbhartsfield
06/09/2022, 11:25 AMbhartsfield
06/09/2022, 11:26 AMjcmd
is also great way to quickly get all running java pids and what started them (so you can pass it to jstack)birdy1980
06/09/2022, 11:55 AMbox server start ..
and stop.
Good to know there is a (paid) service manager module.