Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
andrewheberle
Posts: 4
Joined: Tue Apr 06, 2021 7:13 am

Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by andrewheberle »

The Ubuntu 20.04 package (I haven't reviewed others) does not seem to include the systemd tmpfiles config that in previous versions was located at /ust/lib/tmpfiles.d/zoneminder.conf

This means required files in /run are not created on boot.

I have also lodged this as an issue on Github as this looks like a bug to me: https://github.com/ZoneMinder/zoneminder/issues/3258
User avatar
iconnor
Posts: 2936
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by iconnor »

I'm not sure this is actually true. I suspect it is some issue with your system.

apt-file zoneminder shows it listed for me.

Also I think we would be hearing more complaints.
andrewheberle
Posts: 4
Joined: Tue Apr 06, 2021 7:13 am

Re: Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by andrewheberle »

I’ve tried an install on an Ununtu 20.04 container multiple times and a completely new VM today with the same results.

I’m a bit confused too to be honest as I’m sure you are correct that this would be causing a bunch of reports so I’d love to know under what situation the file is not installed.

Here is some output from my testing today:

Code: Select all

user@TEST-UBN01:~$ dpkg --listfiles zoneminder | grep tmpfiles
user@TEST-UBN01:~$ ls -l /usr/lib/tmpfiles.d/
total 76
-rw-r--r-- 1 root root  465 Feb 11  2020 00rsyslog.conf
-rw-r--r-- 1 root root   35 Sep 17  2020 cryptsetup.conf
-rw-r--r-- 1 root root  365 Jun 12  2020 dbus.conf
-rw-r--r-- 1 root root  517 Mar 18 04:50 debian.conf
-rw-r--r-- 1 root root  362 Apr  2  2020 home.conf
-rw-r--r-- 1 root root 1096 Apr  2  2020 journal-nocow.conf
-rw-r--r-- 1 root root  812 Mar 18 05:36 legacy.conf
-rw-r--r-- 1 root root   61 Feb 14  2020 lvm2.conf
-rw-r--r-- 1 root root   33 Feb 26  2020 man-db.conf
-rw-r--r-- 1 root root  239 Feb  7  2020 passwd.conf
-rw-r--r-- 1 root root   29 Jun 19  2017 screen-cleanup.conf
-rw-r--r-- 1 root root  697 Mar 18 05:36 static-nodes-permissions.conf
-rw-r--r-- 1 root root  305 Jan 19 22:21 sudo.conf
-rw-r--r-- 1 root root  597 Apr  2  2020 systemd-nologin.conf
-rw-r--r-- 1 root root  823 Apr  2  2020 systemd-tmp.conf
-rw-r--r-- 1 root root 1792 Mar 18 05:36 systemd.conf
-rw-r--r-- 1 root root  448 Mar 18 05:36 tmp.conf
-rw-r--r-- 1 root root  568 Mar 18 05:36 var.conf
-rw-r--r-- 1 root root  655 Apr  2  2020 x11.conf
rgroup@RGI-TST-UBN01:~$ apt info zoneminder
Package: zoneminder
Version: 1.36.2-focal1
Priority: optional
Section: net
Maintainer: Isaac Connor <isaac@zoneminder.com>
Installed-Size: 37.0 MB
Depends: libavcodec58 (>= 7:4.2), libavformat58 (>= 7:4.2), libavutil56 (>= 7:4.0), libc6 (>= 2.27), libgcc-s1 (>= 3.0), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.5), libjpeg8 (>= 8c), libjwt-gnutls0 (>= 1.9.0), libmysqlclient21 (>= 8.0.11), libpcre3, libstdc++6 (>= 6), libswresample3 (>= 7:4.0), libswscale5 (>= 7:4.0), zlib1g (>= 1:1.1.4), perl:any, javascript-common, ffmpeg, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl, libphp-serialization-perl, libmodule-load-conditional-perl, libnet-sftp-foreign-perl, libarchive-zip-perl, libdevice-serialport-perl, libimage-info-perl, libjson-maybexs-perl, libsys-mmap-perl, liburi-encode-perl, libwww-perl, liburi-perl, libdata-dump-perl, libdatetime-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl, libsys-cpu-perl, libsys-meminfo-perl, libdata-uuid-perl, libnumber-bytes-human-perl, libfile-slurp-perl, default-mysql-client | mariadb-client | virtual-mysql-client, php-mysql, php-gd, php-apcu, php-apc | php-apcu-bc, php-json, policykit-1, rsyslog | system-log-daemon, zip, libcrypt-eksblowfish-perl, libdata-entropy-perl, libvncclient1 | libvncclient0
Recommends: apache2 (>= 2.4.6-4~) | nginx | httpd, libapache2-mod-php | php-fpm, default-mysql-server | mariadb-server | virtual-mysql-server, zoneminder-doc (>= 1.36.2-focal1)
Suggests: fcgiwrap, logrotate
Download-Size: 4814 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/iconnor/zoneminder-1.36/ubuntu focal/main amd64 Packages
Description: video camera security and surveillance solution
 ZoneMinder is intended for use in single or multi-camera video security
 applications, including commercial or home CCTV, theft prevention and child
 or family member or home monitoring and other care scenarios. It
 supports capture, analysis, recording, and monitoring of video data coming
 from one or more video or network cameras attached to a Linux system.
 ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
 cameras using a variety of protocols. It is suitable for use as a home
 video security system and for commercial or professional video security
 and surveillance. It can also be integrated into a home automation system
 via X.10 or other protocols.

N: There is 1 additional record. Please use the '-a' switch to see it
user@TEST-UBN01:~$ uname -a
Linux TEST-UBN01 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
User avatar
iconnor
Posts: 2936
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by iconnor »

Okay now I'm really confused.

apt-file show zoneminder | grep tmpfiles lists it, but you are right dpkg --listfiles zoneminder doesn't. Also dpkg --contents ./zoneminder_1.36.0-focal1_amd64.deb doesn't list it.

So I think you are definitely on to something.
User avatar
iconnor
Posts: 2936
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by iconnor »

bionic packages have it.

Our build files for focal and up have zoneminder.tmpfiles instead of zoneminder.tmpfile. I think the latter is what it should be.

New packages and a new release should be out by tonight.
andrewheberle
Posts: 4
Joined: Tue Apr 06, 2021 7:13 am

Re: Version 1.36 on Ubuntu does not include systemd tmpfiles.d

Post by andrewheberle »

That change in the newly released packages seems to fix that no worries.

Thanks!
Post Reply