Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Current Development version likely to have breaking changes
Post Reply
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by Simpler »

Running the latest nightly environment from https://github.com/zoneminder-container ... inder-base

nightly-1235

My log file is being filled with the following message (about 40 times per second)

Code: Select all

2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:15	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:14	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:13	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00001.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:12	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing	zm_image.cpp	1184
2023/07/25 - 10:13:11	zms_m2	653	ERR	Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00002.jpg, continuing	zm_image.cpp	1184
Any ideas what could be causing this or how to correct?
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by Simpler »

This is only happening if I'm watching a feed live. For example, with the Montage view up or the Watch view up.
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by Simpler »

This problem started with "nightly-1224" on July 12th with commit bdb0768dfe52034d1e6926fe6c897e6b9b6283b3
and occurs in every nightly after that.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by iconnor »

Is this with zmNinja? It has been known to ignore the StreamImageReplayBuffer setting.

You may want to move that path to a tmpfs for performance...

Will do some testing. It seems to be trying multiple times to write that jpeg, but the #'s should be increasing... weird.
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by Simpler »

zmNinja is not installed. Where should I change the directory that it's writing to?
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by iconnor »

Look into ZM_PATH_SWAP in conf files in /etc/zm/conf.d.

The latest build should fix the Error.
Simpler
Posts: 76
Joined: Mon Nov 02, 2015 12:40 am

Re: Couldn't get lock on /zoneminder/tmp/zmswap-m2/zmswap-q341718/zmswap-i00000.jpg, continuing

Post by Simpler »

Thanks. Yes. It's fixed in last night's build "nightly-1236".

In the docker container: zoneminder-containers/zoneminder-base, I found the ZM_PATH_SWAP variable in the following file:

Code: Select all

/zoneminder/defaultconfig/conf.d/01-system-paths.conf/01-system-paths.conf
Checking for tmpfs usage:

Code: Select all

# df -k
Filesystem     1K-blocks      Used Available Use% Mounted on
overlay        117839660  68274476  43553132  62% /
tmpfs              65536         0     65536   0% /dev
tmpfs           16377680         0  16377680   0% /sys/fs/cgroup
/dev/sdb       960303848 742517100 168932236  82% /log
/dev/sdd1      117839660  68274476  43553132  62% /etc/letsencrypt
tmpfs             976564     86496    890068   9% /dev/shm
/dev/sda1      492055672 394699180  72334796  85% /etc/nginx/conf.d
tmpfs           16377680         0  16377680   0% /proc/asound
tmpfs           16377680         0  16377680   0% /proc/acpi
tmpfs           16377680         0  16377680   0% /proc/scsi
tmpfs           16377680         0  16377680   0% /sys/firmware
I think I'll let the maintainers of this container handle moving this to a tmpfs as I'm not sure how to automate this.

Thanks again
Post Reply