QNAP problems

Forum for questions and support relating to the 1.25.x releases only.
Locked
aDutchuser
Posts: 5
Joined: Wed Dec 28, 2011 1:09 pm

QNAP problems

Post by aDutchuser »

I think it must be something obvious but I can't spot it.
I've compiled and got "running" Zoneminder on a QNAP server ( arm based)
but have hit a problem using the following configuration

export CFLAGS="-march=armv5te -O4 -mtune=arm926ej-s -Fno-strict-aliasing -msoft-float -D__GCC_FLOAT_NOT_NEEDED"
export CXXFLAGS="${CFLAGS}"
export CPPFLAGS="${CFLAGS}"
./configure --with-webuser=XXXXXX --with-webgroup=XXXXXX --disable-crashtrace --with-mysql=/usr/local --with-ffmpe
g=/usr/bin --with-webdir=/web/zoneminder --with-cgidir=/web/zoneminder/cgi-bin --includedir=/opt/include -
-enable-mmap=yes --enable-shared=yes --enable-static=yes --enable-swscale=yes --enable-debug=no --with-libarch=lib CP
PFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}"

but I keep getting the following errors in the Zoneminder System Logs window
socket_sendto( /tmp/zm/zms-664688s.sock ) failed: No such file or directory
'zmc -m 1' crashed, signal 10 zmdc.pl
'zmc -m 1' started at 11/12/28 20:03:11 zmdc.pl
zmdc 8888 INF 'zmc -m 1' starting at 11/12/28 20:03:11, pid = 13338 zmdc.pl
zmdc 8888 INF Starting pending process, zmc -m 1 zmdc.pl
zmdc 8888 INF 'zmwatch.pl ' crashed, signal 6

zmwatch 2566 ERR Can't get shared memory id '7a6d0001', 1: No such file or directory zmwatch.pl
zmdc 8888 INF 'zmc -m 1' crashed, signal 10 zmdc.pl

although Sys::MMAP is installed there is no /dev/shm
The camera for m1 is a remote IP camera ( Tested with a liveCD version of Zoneminder on a pc) but refuses to talk to the qnap zoneminder

Any hints would be great as I 've tried using google but don't seem to be able to use the right keywords to solve this


Thanks
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: QNAP problems

Post by PacoLM »


After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
aDutchuser
Posts: 5
Joined: Wed Dec 28, 2011 1:09 pm

Re: QNAP problems

Post by aDutchuser »

Dear PacoLM
Thanks for the suggestion I appreciate it..
but I had already tried that :((
(that's where I go the hint for the export CFLAGS at the start)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: QNAP problems

Post by PacoLM »

Check the directory where you have zmwatch.pl, maybe is a problem with the startup script for zoneminder, if the path do not match will throw this kind of errors. Please, post the complete log of a service zoneminder restart command.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
aDutchuser
Posts: 5
Joined: Wed Dec 28, 2011 1:09 pm

Re: QNAP problems

Post by aDutchuser »

Not sure these are the right logs but here goes:

logs/zm_debug.log.7665
======================
01/03/12 16:47:59.675206 web_php[7665].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/share/Web/zoneminder/logs/zm_debug.log.7665, weblog=INF, syslog=INF] at /share/Web/zoneminder/includes/logger.php line 168
01/03/12 16:47:59.676507 web_php[7665].ERR [socket_sendto( /share/Web/zoneminder/streamtmp/zms-787788s.sock ) failed: No such file or directory] at /share/Web/zoneminder/includes/functions.php line 2322

Zoneminder:9090/?view=log
======================================
2012-01-03 16:47:17.264540 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:47:07.254550 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:57.104890 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:47.094580 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:37.084510 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:32.115440 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:46:32.028170 zmdc 7698 INF 'zmc -m 1' started at 12/01/03 16:46:32 zmdc.pl
2012-01-03 16:46:32.024120 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:46:32, pid = 7698 zmdc.pl
2012-01-03 16:46:32.012280 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:46:27.074500 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:17.064490 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:46:07.054500 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:57.044470 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:47.034900 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:37.024450 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:27.014460 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:17.004460 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:45:12.155890 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:45:12.068130 zmdc 7649 INF 'zmc -m 1' started at 12/01/03 16:45:12 zmdc.pl
2012-01-03 16:45:12.063770 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:45:12, pid = 7649 zmdc.pl
2012-01-03 16:45:12.052210 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:45:06.994570 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:44:56.984490 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:44:46.974520 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:44:36.966800 zmwatch 7601 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:44:32.125260 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:44:32.038180 zmdc 7630 INF 'zmc -m 1' started at 12/01/03 16:44:32 zmdc.pl
2012-01-03 16:44:32.033800 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:44:32, pid = 7630 zmdc.pl
2012-01-03 16:44:32.022190 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:44:12.221460 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:44:12.062650 zmdc 7618 INF 'zmc -m 1' started at 12/01/03 16:44:12 zmdc.pl
2012-01-03 16:44:12.047710 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:44:12, pid = 7618 zmdc.pl
2012-01-03 16:44:12.032230 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:44:10.709570 zmupdate 7610 INF Got version: '1.24.4' zmupdate.pl
2012-01-03 16:44:09.038170 zmupdate 7610 INF Checking for updates zmupdate.pl
2012-01-03 16:44:07.068460 zmdc 7610 INF 'zmupdate.pl -c' started at 12/01/03 16:44:07 zmdc.pl
2012-01-03 16:44:07.061000 zmdc 7540 INF 'zmupdate.pl -c' starting at 12/01/03 16:44:07, pid = 7610 zmdc.pl
2012-01-03 16:44:06.956340 zmwatch 7601 INF Watchdog pausing for 30 seconds zmwatch.pl
2012-01-03 16:44:06.927100 zmwatch 7601 INF Watchdog starting zmwatch.pl
2012-01-03 16:44:04.896840 zmaudit 7587 INF Deleted 27 log table entries by time zmaudit.pl
2012-01-03 16:44:04.654090 zmdc 7601 INF 'zmwatch.pl' started at 12/01/03 16:44:04 zmdc.pl
2012-01-03 16:44:04.623990 zmdc 7540 INF 'zmwatch.pl' starting at 12/01/03 16:44:04, pid = 7601 zmdc.pl
2012-01-03 16:44:03.336700 zmfilter 7581 INF Scanning for events zmfilter.pl
2012-01-03 16:44:02.605330 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:44:02.162280 zmdc 7591 INF 'zmc -m 1' started at 12/01/03 16:44:02 zmdc.pl
2012-01-03 16:44:02.117530 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:44:02, pid = 7591 zmdc.pl
2012-01-03 16:44:02.102210 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:44:01.577240 zmdc 7587 INF 'zmaudit.pl -c' started at 12/01/03 16:44:01 zmdc.pl
2012-01-03 16:44:01.553990 zmdc 7540 INF 'zmaudit.pl -c' starting at 12/01/03 16:44:01, pid = 7587 zmdc.pl
2012-01-03 16:43:59.198600 zmdc 7581 INF 'zmfilter.pl' started at 12/01/03 16:43:59 zmdc.pl
2012-01-03 16:43:59.179010 zmdc 7540 INF 'zmfilter.pl' starting at 12/01/03 16:43:59, pid = 7581 zmdc.pl
2012-01-03 16:43:57.972890 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:43:57.745230 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:43:57, pid = 7574 zmdc.pl
2012-01-03 16:43:57.718750 zmdc 7574 INF 'zmc -m 1' started at 12/01/03 16:43:57 zmdc.pl
2012-01-03 16:43:57.708680 zmdc 7540 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:43:57.706730 zmdc 7540 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:43:57.462340 zmdc 7540 INF 'zmc -m 1' starting at 12/01/03 16:43:57, pid = 7568 zmdc.pl
2012-01-03 16:43:57.457740 zmdc 7568 INF 'zmc -m 1' started at 12/01/03 16:43:57 zmdc.pl
2012-01-03 16:43:53.636420 zmdc 7540 INF Server starting at 12/01/03 16:43:53 zmdc.pl
2012-01-03 16:43:50.594480 zmdc 7368 INF Server shutdown at 12/01/03 16:43:50 zmdc.pl
2012-01-03 16:43:40.337050 zmdc 7368 INF 'zmfilter.pl ' exited, signal 14 zmdc.pl
2012-01-03 16:43:40.333430 zmdc 7368 INF 'zmfilter.pl ' stopping at 12/01/03 16:43:40 zmdc.pl
2012-01-03 16:43:40.331330 zmdc 7368 INF 'zmaudit.pl -c' exited, signal 14 zmdc.pl
2012-01-03 16:43:40.327960 zmdc 7368 INF 'zmaudit.pl -c' stopping at 12/01/03 16:43:40 zmdc.pl
2012-01-03 16:43:40.326020 zmdc 7368 INF 'zmwatch.pl ' exited, signal 14 zmdc.pl
2012-01-03 16:43:40.322610 zmdc 7368 INF 'zmwatch.pl ' stopping at 12/01/03 16:43:40 zmdc.pl
2012-01-03 16:43:38.675910 zmpkg 7497 INF Command: restart zmpkg.pl
2012-01-03 16:43:31.134510 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:43:27.483590 zmpkg 7481 INF Command: status zmpkg.pl
2012-01-03 16:43:21.124550 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:43:17.106010 zmdc 7368 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:43:17.017730 zmdc 7473 INF 'zmc -m 1' started at 12/01/03 16:43:17 zmdc.pl
2012-01-03 16:43:17.013710 zmdc 7368 INF 'zmc -m 1' starting at 12/01/03 16:43:17, pid = 7473 zmdc.pl
2012-01-03 16:43:17.002160 zmdc 7368 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:43:11.114420 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:43:01.104420 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:42:51.094480 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:42:41.086770 zmwatch 7421 ERR Can't open memory map file '/share/Web/zoneminder/streamtmp/zm.mmap.1': No such file or directory zmwatch.pl
2012-01-03 16:42:37.185750 zmdc 7368 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:42:37.097930 zmdc 7454 INF 'zmc -m 1' started at 12/01/03 16:42:37 zmdc.pl
2012-01-03 16:42:37.093740 zmdc 7368 INF 'zmc -m 1' starting at 12/01/03 16:42:37, pid = 7454 zmdc.pl
2012-01-03 16:42:37.082140 zmdc 7368 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:42:17.280380 zmdc 7368 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:42:17.067930 zmdc 7443 INF 'zmc -m 1' started at 12/01/03 16:42:17 zmdc.pl
2012-01-03 16:42:17.063690 zmdc 7368 INF 'zmc -m 1' starting at 12/01/03 16:42:17, pid = 7443 zmdc.pl
2012-01-03 16:42:17.052140 zmdc 7368 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:42:10.896750 zmwatch 7421 INF Watchdog pausing for 30 seconds zmwatch.pl
2012-01-03 16:42:10.892930 zmaudit 7413 INF Deleted 28338 log table entries by time zmaudit.pl
2012-01-03 16:42:08.018350 zmwatch 7421 INF Watchdog starting zmwatch.pl
2012-01-03 16:42:07.271350 zmdc 7368 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:42:07.043130 zmdc 7368 INF 'zmc -m 1' starting at 12/01/03 16:42:07, pid = 7428 zmdc.pl
2012-01-03 16:42:07.024130 zmdc 7428 INF 'zmc -m 1' started at 12/01/03 16:42:07 zmdc.pl
2012-01-03 16:42:07.012160 zmdc 7368 INF Starting pending process, zmc -m 1 zmdc.pl
2012-01-03 16:42:06.455620 zmdc 7368 INF 'zmwatch.pl' starting at 12/01/03 16:42:06, pid = 7421 zmdc.pl
2012-01-03 16:42:06.438610 zmdc 7421 INF 'zmwatch.pl' started at 12/01/03 16:42:06 zmdc.pl
2012-01-03 16:42:05.587690 zmfilter 7406 INF Scanning for events zmfilter.pl
2012-01-03 16:42:04.468890 zmdc 7413 INF 'zmaudit.pl -c' started at 12/01/03 16:42:04 zmdc.pl
2012-01-03 16:42:04.464860 zmdc 7368 INF 'zmaudit.pl -c' starting at 12/01/03 16:42:04, pid = 7413 zmdc.pl
2012-01-03 16:42:02.904770 zmdc 7368 INF 'zmfilter.pl' starting at 12/01/03 16:42:02, pid = 7406 zmdc.pl
2012-01-03 16:42:02.898230 zmdc 7406 INF 'zmfilter.pl' started at 12/01/03 16:42:02 zmdc.pl
2012-01-03 16:42:02.404480 zmdc 7368 INF 'zmc -m 1' crashed, signal 10 zmdc.pl
2012-01-03 16:42:02.177210 zmdc 7400 INF 'zmc -m 1' started at 12/01/03 16:42:02 zmdc.pl
2012-01-03 16:42:02.138860 zmdc 7368 INF 'zmc -m 1' starting at 12/01/03 16:42:02, pid = 7400 zmdc.pl
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: QNAP problems

Post by PacoLM »

Who is the owner of the directory /share/Web/zoneminder/streamtmp?. It should be root:root, and the map files should be www-data:www-data. I believe that is a ownership problem, maybe an user with more experience could confirm this.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
aDutchuser
Posts: 5
Joined: Wed Dec 28, 2011 1:09 pm

Re: QNAP problems

Post by aDutchuser »

Thanks for the suggestion PacoLM:

That was my first thought so I set it chmod -R a+rwx For testing prior to the logs

ls -al
drwxrwxrwx 2 webusr everyone 4096 Jan 3 16:47 streamtmp/

The map files are never created as far as I can tell.
By the way the distribution from Qnap does not have a user root
but seems to use non-standard user names could that be the reason ?
Locked