Page 1 of 2
all monitors are "lost" on montage
Posted: Sat Nov 25, 2023 11:19 pm
by pepex7
I have a situation with zmninja, all monitors are "lost" on montage (image attached). closing and reopening works for a while and then the same thing happens.
zm 1.37.45
zmninja 1.6.009
Ubuntu 22.04
The log shows this:
INFO Montagle View: Regenerating Connkey as Failed:
http://192.168.140.10/zm/index.php?view ... key=617586
INFO waiting for authSession to have a value...
Re: all monitors are "lost" on montage
Posted: Sat Nov 25, 2023 11:53 pm
by dougmccrary
Based on another post
viewtopic.php?t=32866, you have zmninja pro.
You may want zmninja, which is 1.7
May not help, but you can get a refund if not.
Re: all monitors are "lost" on montage
Posted: Sun Nov 26, 2023 1:08 am
by pepex7
but this is only for android. I am using Ubuntu 22.04 desktop.
Re: all monitors are "lost" on montage
Posted: Sun Nov 26, 2023 1:26 am
by dougmccrary
but this is only for android. I am using Ubuntu 22.04 desktop.
I thought your issue was with zmninja on phone. You have it on desktop?
Re: all monitors are "lost" on montage
Posted: Sun Nov 26, 2023 4:20 am
by pepex7
Yes, in desktop.
Re: all monitors are "lost" on montage
Posted: Sun Nov 26, 2023 10:19 am
by dougmccrary
Right. I don't use it, but
viewtopic.php?p=110054&hilit=Regenerati ... ey#p110054
may help if you haven't already tried it.
Sorry if no help.
Re: all monitors are "lost" on montage
Posted: Tue Nov 28, 2023 12:44 am
by pepex7
As I continue checking, I see that zmninja only allows 10 monitors and the rest have their ports blocked.
What will cause this blockage?
log apache
Code: Select all
28-11-23, 10:04:46 CLST.737971 web_php[125510].ERR [192.168.140.15] [Failed to get semaphore for key 058760. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
Re: all monitors are "lost" on montage
Posted: Tue Nov 28, 2023 3:24 pm
by iconnor
I have seen on very large installs, the system run out of semaphores.
You can list them with: sudo ipcs -s
If you get say more than 64000, you have run out.
You can clear them out with a little shell script...
Code: Select all
#!/bin/bash
ME=$1
if [ "$ME" == "" ]; then
ME=`whoami`
fi
IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`
for id in $IPCS_S; do
ipcrm -s $id;
done
Re: all monitors are "lost" on montage
Posted: Tue Nov 28, 2023 3:39 pm
by pepex7
Thank you.
Code: Select all
0x0003e728 17175 www-data 666 3
0x0002da0d 17176 www-data 666 3
0x000f3c2b 17177 www-data 666 3
0x0000cfc7 17178 www-data 666 3
0x000c353a 17179 www-data 666 3
0x000954d9 17180 www-data 666 3
0x000cda24 17181 www-data 666 3
0x0009d538 17182 www-data 666 3
0x000e08a1 17183 www-data 666 3
although it does not reach 64000, I will run the script.
see what happens
Re: all monitors are "lost" on montage
Posted: Tue Nov 28, 2023 3:49 pm
by pepex7
keep giving the message:
Code: Select all
Nov 28, 2023 12:45:16:632 PM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?
only 10 monitors are visible
iconnor wrote: ↑Tue Nov 28, 2023 3:24 pm
I have seen on very large installs, the system run out of semaphores.
You can list them with: sudo ipcs -s
If you get say more than 64000, you have run out.
You can clear them out with a little shell script...
Code: Select all
#!/bin/bash
ME=$1
if [ "$ME" == "" ]; then
ME=`whoami`
fi
IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`
for id in $IPCS_S; do
ipcrm -s $id;
done
Re: all monitors are "lost" on montage
Posted: Wed Nov 29, 2023 1:03 am
by pepex7
I don't know what else I can try...
log zm:
Code: Select all
28-11-23, 21:58:06 CLST web_php 48437 ERR Failed to get semaphore for key 433364. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48156 ERR Failed to get semaphore for key 798871. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48680 ERR Failed to get semaphore for key 686421. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48437 ERR Failed to get semaphore for key 868123. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48683 ERR Failed to get semaphore for key 795311. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 47901 ERR Failed to get semaphore for key 624879. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48156 ERR Failed to get semaphore for key 298647. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48680 ERR Failed to get semaphore for key 141277. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 47901 ERR Failed to get semaphore for key 819281. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 47957 ERR Failed to get semaphore for key 242081. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
28-11-23, 21:58:06 CLST web_php 48156 ERR Failed to get semaphore for key 187502. It is likely that your php does not have the sysv semaphore extension either installed or enabled. /usr/share/zoneminder/www/ajax/stream.php 36
Re: all monitors are "lost" on montage
Posted: Wed Nov 29, 2023 2:20 pm
by pepex7
When I restarted the server, the zm log stopped showing the error Failed to get semaphore for key.
but the zmninja console still shows this:
Code: Select all
Nov 29, 2023 11:11:13:921 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=625705
Nov 29, 2023 11:11:13:977 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=880555
Nov 29, 2023 11:11:13:989 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=288691
Nov 29, 2023 11:11:14:001 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=50954
Nov 29, 2023 11:11:22:723 AM DEBUG Montage View: Stream Status check
Nov 29, 2023 11:11:23:980 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=93627
Nov 29, 2023 11:11:23:998 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=796772
Nov 29, 2023 11:11:24:007 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=501208
Nov 29, 2023 11:11:24:022 AM INFO Montage View: Regenerating Connkey as Failed:http://192.168.106.231/zm/index.php?view=request&request=stream&command=99&nonauth=none&connkey=660530
Re: all monitors are "lost" on montage
Posted: Wed Nov 29, 2023 5:27 pm
by iconnor
what is in your zoneminder web_php logs? /var/log/zm/web_php.log
Re: all monitors are "lost" on montage
Posted: Wed Nov 29, 2023 6:00 pm
by pepex7
iconnor wrote: ↑Wed Nov 29, 2023 5:27 pm
what is in your zoneminder web_php logs? /var/log/zm/web_php.log
Code: Select all
29-11-23, 09:40:52 CLST.833717 web_php[119709].ERR [192.168.140.14] [Failed to get semaphore for key 537969. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.835294 web_php[119591].ERR [192.168.140.14] [Failed to get semaphore for key 170496. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.836050 web_php[119536].ERR [192.168.140.14] [Failed to get semaphore for key 276179. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.836845 web_php[119707].ERR [192.168.140.14] [Failed to get semaphore for key 967676. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.843365 web_php[119740].ERR [192.168.140.14] [Failed to get semaphore for key 069624. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.844819 web_php[119709].ERR [192.168.140.14] [Failed to get semaphore for key 100488. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:52 CLST.897506 web_php[119545].ERR [192.168.120.60] [Failed to get semaphore for key 814417. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:53 CLST.761653 web_php[119491].ERR [192.168.120.60] [Failed to get semaphore for key 426455. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:53 CLST.764468 web_php[119808].ERR [192.168.120.60] [Failed to get semaphore for key 388370. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:53 CLST.767106 web_php[119769].ERR [192.168.120.60] [Failed to get semaphore for key 643556. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:53 CLST.768815 web_php[119773].ERR [192.168.120.60] [Failed to get semaphore for key 426345. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:53 CLST.769250 web_php[119701].ERR [192.168.120.60] [Failed to get semaphore for key 599109. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.182049 web_php[119545].ERR [192.168.120.60] [Failed to get semaphore for key 517265. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.235223 web_php[119773].ERR [192.168.120.60] [Failed to get semaphore for key 388370. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.235798 web_php[119808].ERR [192.168.120.60] [Failed to get semaphore for key 604393. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.235897 web_php[119491].ERR [192.168.120.60] [Failed to get semaphore for key 890152. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.237159 web_php[119769].ERR [192.168.120.60] [Failed to get semaphore for key 388370. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.238669 web_php[119701].ERR [192.168.120.60] [Failed to get semaphore for key 890152. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.366826 web_php[119545].ERR [192.168.120.60] [Failed to get semaphore for key 517265. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.385300 web_php[119773].ERR [192.168.120.60] [Failed to get semaphore for key 854289. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.388666 web_php[119491].ERR [192.168.120.60] [Failed to get semaphore for key 604393. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.394701 web_php[119769].ERR [192.168.120.60] [Failed to get semaphore for key 854289. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.397327 web_php[119808].ERR [192.168.120.60] [Failed to get semaphore for key 814417. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.398302 web_php[119701].ERR [192.168.120.60] [Failed to get semaphore for key 814417. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.409983 web_php[119545].ERR [192.168.120.60] [Failed to get semaphore for key 426455. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.459265 web_php[119773].ERR [192.168.120.60] [Failed to get semaphore for key 643556. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.608740 web_php[119491].ERR [192.168.120.60] [Failed to get semaphore for key 426345. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.930569 web_php[119769].ERR [192.168.120.60] [Failed to get semaphore for key 599109. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.934315 web_php[119808].ERR [192.168.120.60] [Failed to get semaphore for key 517265. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.936105 web_php[119701].ERR [192.168.120.60] [Failed to get semaphore for key 890152. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:54 CLST.938004 web_php[119545].ERR [192.168.120.60] [Failed to get semaphore for key 604393. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 09:40:55 CLST.245732 web_php[119773].ERR [192.168.120.60] [Failed to get semaphore for key 388370. It is likely that your php does not have the sysv semaphore extension either installed or enabled.] at /usr/share/zoneminder/www/ajax/stream.php line 36
29-11-23, 10:49:48 CLST.880207 web_php[7809].INF [192.168.140.14] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 10:52:42 CLST.903305 web_php[7798].INF [192.168.140.14] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 10:52:42 CLST.917935 web_php[7798].INF [192.168.140.14] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 10:55:22 CLST.965729 web_php[8297].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-590864s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:22 CLST.969713 web_php[8248].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-769297s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:22 CLST.969705 web_php[8028].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-849537s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:22 CLST.970100 web_php[7978].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-125659s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:22 CLST.970225 web_php[8256].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-072109s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:23 CLST.033759 web_php[7585].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-713733s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:55:23 CLST.185740 web_php[8222].ERR [192.168.140.14] [Timed out waiting for msg /run/zm/zms-963511s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 10:59:37 CLST.844879 web_php[8329].INF [192.168.140.14] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:05:11 CLST.408747 web_php[9089].INF [192.168.140.14] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:16:51 CLST.212243 web_php[10155].INF [192.168.140.11] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:16:51 CLST.231122 web_php[10155].INF [192.168.140.11] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:18:11 CLST.756846 web_php[10496].INF [192.168.140.11] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:27:30 CLST.973221 web_php[11250].INF [192.168.120.60] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:28:49 CLST.414321 web_php[11500].INF [192.168.120.60] [User "admin" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:38:54 CLST.033872 web_php[12224].INF [192.168.120.60] [Login successful for user "admin"] at /usr/share/zoneminder/www/includes/auth.php line 459
29-11-23, 11:39:17 CLST.876808 web_php[12885].INF [192.168.120.60] [User "no one" logged out] at /usr/share/zoneminder/www/includes/auth.php line 113
29-11-23, 11:40:48 CLST.525808 web_php[13146].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-934925s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 11:40:48 CLST.529063 web_php[13151].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-748723s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 11:40:48 CLST.528743 web_php[13212].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-031774s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 11:40:48 CLST.615482 web_php[12859].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-883346s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 12:00:29 CLST.485763 web_php[18708].ERR [192.168.140.11] [Timed out waiting for msg /run/zm/zms-737324s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 12:00:29 CLST.496958 web_php[18465].ERR [192.168.140.11] [Timed out waiting for msg /run/zm/zms-904442s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 12:04:52 CLST.573844 web_php[20002].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-333642s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 12:11:23 CLST.814574 web_php[21112].ERR [192.168.120.60] [Timed out waiting for msg /run/zm/zms-751568s.sock after waiting 5000 seconds] at /usr/share/zoneminder/www/ajax/stream.php line 124
29-11-23, 13:59:31 CLST.303285 web_php[257540].INF [192.168.140.11] [Login successful for user "admin"] at /usr/share/zoneminder/www/includes/auth.php line 459
Re: all monitors are "lost" on montage
Posted: Wed Nov 29, 2023 6:31 pm
by iconnor
Did you read the stuff above about ipcs? The semaphore thing shouldn't actually cause a problem, it's more of a warning, but it may be indicating there is another problem.
How about contents of various /var/log/zm/zms_m*.log? How about /var/log/apache2/*.log