Sadness 1.32.3/MP4 on new Ryzen 3700x

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
rip
Posts: 38
Joined: Sun Sep 02, 2012 8:59 pm

Sadness 1.32.3/MP4 on new Ryzen 3700x

Post by rip »

https://wiki.zoneminder.com/Ubuntu_Serv ... ell_script

I've run Zm for many years and on several systems, but my current system is slowly dying, so I made a new one.

Current, AMD 6 core with 14TB and 16GB ram.
New, AMD 8 core 3700x, 32G ram, 20TB storage, NVME pcie 4.0 boot

So runs cooler and a whole lot faster on a per core basis.

Both machines run UBUNTU 19.04, and 1.32.3 MP4, been using linux since .99beta16 and Linus was still in school so generally do OK with this kinda thing. Most cams are RTSP 4mp dahua, some arecont 2 and 3mp, 1 GW, 1 foscam.

I know my sources work, they are still running on the original system. Also double checked some with VLC for sanity.

The new Ryzen system will not run (won't create sockets/zmc) and I can't figure out why. Things I've done:

Install 1.32.3/MP4 manually per the wiki and use my 20TB for storage
Multiple installs with the shell script (with mysql instead of mariadb), both customized (big storage) and bone stock (use the NVME default storage just for testing.)

I've followed behind the entire chain of the script install manually and verify everything looks good, ownership and permissions of every file, every defined path, scraped all the logs, and I don't see how it's broken.

I have a lot of notes on another pc (not available, left it at work but can follow up in the morning) but mostly the error pointing to readthedocs
https://zoneminder.readthedocs.io/en/la ... window-etc

So, either there something not quite right with the new CPU flavoring in relation to ZM (doubt it) or I've been looking at this too long and doing something remarkably dumb. (Probably making an assumption about how something works in my head and am dead wrong but haven't seen it yet.)

Right now just dumped everything, re-imaged to a clean install of 19.04 (this is kinda fun on the fast ssd) updated and left it at that until I think about it some more.

Open to suggestions, will post some log snippets in the AM.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Sadness 1.32.3/MP4 on new Ryzen 3700x

Post by bbunge »

Go back to Bionic 18.04-3. You can install the Linux 5.0 kernel on that. I recommend Mariadb. I feel there are still some issues with 19.04 and Zoneminder even though the 19.04 desktop works very well for me.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Sadness 1.32.3/MP4 on new Ryzen 3700x

Post by iconnor »

I'm not aware of any issues with 19.04.

Switch to master snapshot ppa, I have fixed a lot of stuff since 1.32.2 and we log a lot more useful information from the ffmpeg libs.

sudo add-apt-repository ppa:iconnor/zoneminder-storageareas
rip
Posts: 38
Joined: Sun Sep 02, 2012 8:59 pm

Re: Sadness 1.32.3/MP4 on new Ryzen 3700x

Post by rip »

I can give 1.33.14 a shot, but it looks like the latest disco build is missing a dep:

zoneminder 1.33.14~20190828123202-disco
Missing build dependencies: libmp4v2-dev

https://code.launchpad.net/~iconnor/+ar ... d/17479684


Also, I assume the best way to do this is follow the 18.04 guide and substitute in the storageareas PPA for Disco (19.04)instead:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way



EDIT Logs from yesterday (original post)

Used shell script method with mysql instead of mariadb.

Went back and verified everything with manual method.

fixed extra date.timezone appended to end of php.ini
all a2enmod and a2econf already enabled

Code: Select all

Socket /var/run/zm/zms-553462s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.
zm.conf NOT edited... /etc/zm/conf.d/03-system-paths-cust.conf
(/etc/zm/zm.conf is stock, no edits)

This is 03-system-paths-cust.conf, pretty much stock execpt images and events point to md0, 20tb raid 0
events and images are:
drwxr-xr-x 8 www-data www-data 4096 Aug 26 17:19 events
drwxr-xr-x 2 www-data www-data 4096 Aug 26 13:44 images

Code: Select all

# ==========================================================================
#
# ZoneMinder System Paths Configuration
#
# ==========================================================================
#
# This config file contains the variables previously found under Options -> Paths
#
# *** DO NOT EDIT THIS FILE ***
#
# To make custom changes to the variables below, create a new configuration
# file, with an extention of .conf, containing your desired modifications.
#

# Full path to the folder events are recorded to.
# The web account user must have full read/write permission to this folder.
ZM_DIR_EVENTS=/mnt/md0/zoneminder/events

# Full path to the folder images, not directly associated with events,
# are recorded to.
# The web account user must have full read/write permission to this folder.
ZM_DIR_IMAGES=/mnt/md0/zoneminder/images

# Foldername under the webroot where ZoneMinder looks for optional sound files
# to play when an alarm is detected.
ZM_DIR_SOUNDS=sounds

# Full path to the folder where exported archives are stored
# The web account user must have full read/write permission to this folder.
ZM_DIR_EXPORTS=/tmp/zm

# ZoneMinder url path to the zms streaming server
ZM_PATH_ZMS=/zm/cgi-bin/nph-zms

# 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

# Full Path to ZoneMinder's socket folder
# The web account user must have full read/write permission to this folder.
ZM_PATH_SOCKS=/var/run/zm

# Full path to ZoneMinder's log folder
# The web account user must have full read/write permission to this folder.
ZM_PATH_LOGS=/var/log/zm

# Full path to ZoneMinder's swap folder
# The web account user must have full read/write permission to this folder.
ZM_PATH_SWAP=/tmp/zm

# Full path to optional arp binary
# ZoneMinder will find the arp binary automatically on most systems
ZM_PATH_ARP="/usr/sbin/arp"
SYSLOG (representitive section):

Code: Select all

Aug 27 13:09:02 server1 web_php[1682]: ERR [Socket /var/run/zm/zms-478838s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.]
Aug 27 13:09:12 server1 zmwatch[1306]: ERR [Last analyse time for 5 Monitor-5 was zero.]
Aug 27 13:09:22 server1 zmdc[1120]: WAR [Can't find process with command of 'zmc -m 3']
Aug 27 13:09:23 server1 zmdc[1120]: WAR [Can't find process with command of 'zmc -m 4']
Aug 27 13:09:23 server1 zmwatch[1306]: ERR [Last analyse time for 5 Monitor-5 was zero.]
Aug 27 13:09:23 server1 zmdc[1120]: WAR [Can't find process with command of 'zma -m 5']
Aug 27 13:09:23 server1 zmdc[1120]: WAR [Can't find process with command of 'zmc -m 6']
Aug 27 13:09:23 server1 zmdc[1120]: WAR [Can't find process with command of 'zmc -m 7']
Aug 27 13:09:23 server1 zmdc[1120]: WAR [Can't find process with command of 'zmc -m 8']

Apache2 error log representative section:

Code: Select all

[Tue Aug 27 13:09:02.913952 2019] [cgi:error] [pid 1682] [client 10.10.1.2:59150] AH01215: malloc(): invalid size (unsorted): /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://10.168.1.152/zm/index.php?view=watch&mid=5
[Tue Aug 27 13:09:02.913964 2019] [cgi:error] [pid 1682] [client 10.10.1.2:59150] AH01215: malloc(): invalid size (unsorted): /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://10.168.1.152/zm/index.php?view=watch&mid=5
[Tue Aug 27 13:09:02.913977 2019] [cgi:error] [pid 1682] [client 10.10.1.2:59150] AH01215: malloc(): invalid size (unsorted): /usr/lib/zoneminder/cgi-bin/nph-zms, referer: http://10.168.1.152/zm/index.php?view=watch&mid=5
Apache2 access.log nothing interesting.

apport.log representative section

Code: Select all

ERROR: apport (pid 4319) Tue Aug 27 13:13:28 2019: called for pid 4318, signal 6, core limit 0, dump mode 1
ERROR: apport (pid 4319) Tue Aug 27 13:13:28 2019: executable: /usr/bin/zmc (command line "/usr/bin/zmc -m 8")
ERROR: apport (pid 4319) Tue Aug 27 13:13:28 2019: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 4319) Tue Aug 27 13:13:28 2019: apport: report /var/crash/_usr_bin_zmc.33.crash already exists and unseen, doing nothing to avoid disk usage DoS

Code: Select all

root@server1:/var/log# export $DBUS_SESSION_BUS_ADDRESS
declare -x HOME="/root"
declare -x LANG="en_US.UTF-8"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/root"
declare -x OLDPWD="/var/log/apache2"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
declare -x PWD="/var/log"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SUDO_COMMAND="/usr/bin/su"
declare -x SUDO_GID="1000"
declare -x SUDO_UID="1000"
declare -x SUDO_USER="rip"
declare -x TERM="xterm"
declare -x USER="root"

Code: Select all

root@server1:/var/log/zm# tail zma_m5.log
08/26/19 17:22:28.726036 zma_m5[9416].ERR-zm_monitor.cpp/477 [Shared data not initialised by capture daemon for monitor Monitor-5]

Code: Select all

root@server1:/var/log/zm# tail zmc_m5.log
08/27/19 13:04:54.453211 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x13f40) [0x7f208aeb8f40]]
08/27/19 13:04:54.453786 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 2: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7f20886e0ed7]]
08/27/19 13:04:54.454325 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 3: /lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7f20886c2535]]
08/27/19 13:04:54.454847 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 4: /lib/x86_64-linux-gnu/libc.so.6(+0x8c726) [0x7f2088729726]]
08/27/19 13:04:54.455377 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(+0x9359a) [0x7f208873059a]]
08/27/19 13:04:54.455912 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 6: /lib/x86_64-linux-gnu/libc.so.6(+0x953cc) [0x7f20887323cc]]
08/27/19 13:04:54.456444 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 7: /usr/bin/zmc(_ZN7MonitorD1Ev+0x18c) [0x5561fa2cc9bc]]
08/27/19 13:04:54.457449 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 8: /usr/bin/zmc(main+0xb19) [0x5561fa2aa769]]
08/27/19 13:04:54.458036 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f20886c3b6b]]
08/27/19 13:04:54.458616 zmc_m5[1263].ERR-zm_signal.cpp/102 [Backtrace 10: /usr/bin/zmc(_start+0x2a) [0x5561fa2acbda]]

Code: Select all

root@server1:/var/log/zm# tail zmdc.log
08/27/2019 13:26:42.040051 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zma -m 5']
08/27/2019 13:26:42.162715 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 6']
08/27/2019 13:26:42.357816 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 7']
08/27/2019 13:26:42.544728 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 8']
08/27/2019 13:27:03.803290 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 3']
08/27/2019 13:27:03.999939 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 4']
08/27/2019 13:27:04.153871 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zma -m 5']
08/27/2019 13:27:04.289257 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 6']
08/27/2019 13:27:04.486042 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 7']
08/27/2019 13:27:04.684285 zmdc[1120].WAR [ZMServer:406] [Can't find process with command of 'zmc -m 8']

Code: Select all

root@server1:/var/log/zm# tail zmwatch.log
08/27/2019 13:26:08.868871 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:26:19.908989 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:26:30.911506 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:26:41.981513 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:26:53.019653 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:27:04.080451 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:27:15.144282 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:27:26.219762 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:27:37.313554 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]
08/27/2019 13:27:48.406795 zmwatch[1306].ERR [main:164] [Last analyse time for 5 Monitor-5 was zero.]

Code: Select all

root@server1:/var/log/zm# tail -4 web_php.log
08/27/19 13:07:11.860076 web_php[1681].ERR [Socket /var/run/zm/zms-088064s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2048
08/27/19 13:07:12.999452 web_php[1052].ERR [Socket /var/run/zm/zms-158692s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2048
08/27/19 13:09:01.264798 web_php[1052].ERR [Socket /var/run/zm/zms-839441s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2048
08/27/19 13:09:02.384116 web_php[1682].ERR [Socket /var/run/zm/zms-478838s.sock does not exist.  This file is created by zms, and since it does not exist, either zms did not run, or zms exited early.  Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly.  Make sure that ZM is actually recording.  If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2048
Post Reply