[mythtv-users] Mythzmserver DB problems. Was: doesn't start:...

Paul Harrison mythtv at mythqml.net
Tue Apr 27 13:39:42 UTC 2021


On 27/04/2021 04:12, A. F. Cano wrote:

> On Tue, Apr 27, 2021 at 01:43:27AM +0100, Paul Harrison wrote:
>>     So basically you need to make sure one of the two *.conf files contains a
>>     setting for ZM_PATH_MAP (the Ubuntu packages I use do this automatically,
>>     I'm guessing the deb_multimedia packages use a different name/location for
>>     the user config file at /etc/zm/conf.d/01-system-paths.conf?)
>>
>>     My ZM_PATH_MAP setting is in /etc/zm/conf.d/01-system-paths.conf and looks
>>     like this :-
>>
>>     # Full Path to ZoneMinder's mapped memory files
>>     # The web account user must have full read/write permission to this
>>     folder.
>>     ZM_PATH_MAP=/dev/shm
> Same here.
>
> $ ls -la /dev/shm
> total 72024
> drwxrwxrwt  2 root     root           80 Apr 26 22:55 ./
> drwxr-xr-x 20 root     root         3780 Apr 23 19:17 ../
> -rw------- 1 postgres postgres    14992 Apr 21 08:05 PostgreSQL.1073826586
> -rw------- 1 www-data www-data 73733672 Apr 26 22:10 zm.mmap.2
>
> I am a member of groups www-data and video.  I start the front-end as myself.
>
> This is what's in /etc/group for the relevant groups:
>
> www-data:x:33:afc
> video:x:44:afc,mythtv,motion,www-data
>
> Evan after chmod g+rw /etc/shm/zm.mmap.2
>
> $ ls -l /dev/shm
> total 72024
> -rw------- 1 postgres postgres    14992 Apr 21 08:05 PostgreSQL.1073826586
> -rw-rw---- 1 www-data www-data 73733672 Apr 26 22:10 zm.mmap.2
>
> The ZM_PATH_MAP is blank:


So just to be clear do you have a line in either of these conf files 
/etc/zm/zm.conf or /etc/zm/conf.d/01-system-paths.conf like this :-

ZM_PATH_MAP=/dev/shm


Does the user running mythzmserver have read permission on those files?


Paul H.



More information about the mythtv-users mailing list