Page 1 of 1

Restore default run states?

Posted: Wed May 15, 2019 5:51 pm
by MJN
I've just noticed I appear to be missing the 'Stop' and 'Restart' run states in the drop-down on the web GUI. 'Start' is still present, as are the customised states I've set.

How do I restore the missing 'Stop' and 'Restart' states?

Re: Restore default run states?

Posted: Wed May 15, 2019 6:58 pm
by BaseballSS
Is ZM currently 'RUNNING' or 'STOPPED'? If it is stopped, the start state is available. If it is running, restart and stop are available.

Re: Restore default run states?

Posted: Wed May 15, 2019 8:07 pm
by MJN
Aha, that could well be it.

I note that the web GUI is always reporting my run state as 'Stopped' (even when running) and hence, as you say, it only gives me the 'Start' option in the drop-down.

I'll do some digging to see if this is a known issue/bug. (Does anyone get this with 1.32.3, installed via Isaac's PPA if that's relevent?)

Re: Restore default run states?

Posted: Thu May 16, 2019 2:11 pm
by MJN
MJN wrote: Wed May 15, 2019 8:07 pmI'll do some digging to see if this is a known issue/bug.
I didn't find anything so have raised a bug report here.

Re: Restore default run states?

Posted: Thu May 16, 2019 4:59 pm
by BaseballSS
Does anything change if you select 'Start' or restart ZM from terminal?

Re: Restore default run states?

Posted: Thu May 16, 2019 5:53 pm
by MJN
If Zoneminder is (already) running at the time of selecting 'Start', the logs say:

Code: Select all

May 16 18:47:45 rugrat zmpkg[11699]: INF [Command: start]
May 16 18:47:45 rugrat zmpkg[11699]: INF [Sanity checking States table...]
May 16 18:47:45 rugrat zmpkg[11699]: INF [Command: start]
May 16 18:47:45 rugrat zmsystemctl[11705]: INF [Redirecting command through systemctl]
...and it just carries on running.

If Zoneminder was stopped (via the command line) prior to selecting 'Start', then the logs say:

Code: Select all

May 16 18:49:52 rugrat zmpkg[11978]: INF [Command: start]
May 16 18:49:52 rugrat zmpkg[11978]: INF [Sanity checking States table...]
May 16 18:49:52 rugrat zmpkg[11978]: INF [Command: start]
May 16 18:49:52 rugrat zmsystemctl[11984]: INF [Redirecting command through systemctl]
May 16 18:49:52 rugrat zmpkg[11989]: INF [Command: start]
May 16 18:49:52 rugrat zmpkg[11989]: INF [Sanity checking States table...]
May 16 18:49:52 rugrat zmpkg[11989]: INF [Command: start]
May 16 18:49:52 rugrat zmdc[12003]: INF [Server starting at 19/05/16 18:49:52]
...and Zoneminder starts.