Page 1 of 1

Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Wed May 25, 2016 10:04 am
by derlange
After an fresh install of ZoneMinder i get this Error in the Logfile:

May 25 12:06:48 vdrserv zmpkg[1171]: INF [Sanity checking States table...]
May 25 12:06:48 vdrserv zmpkg[1171]: INF [Command: start]
May 25 12:06:48 vdrserv sudo: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/bin/true
May 25 12:06:48 vdrserv sudo: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl check
May 25 12:06:48 vdrserv zmpkg[1171]: FATAL [Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory]

I figured out, that it has somehting to do with Memory. In the perl lib Folder in Memory/Shared.pm there the program ipcs is called. That
i think dont works for some reason. I changed the code from FATAL to INFO, then ZoneMinder starts working. After some time, i get Memory Trouble.

Anyone can help or know why ipcs failes ?

Re: Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Thu May 26, 2016 2:27 pm
by bbunge
What Linux distro?

Re: Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Thu May 26, 2016 5:26 pm
by knight-of-ni
There is more to the story, which the OP has not told us.

Why are you trying to use the old, obsolete, Shared memory rather than, the default, Mapped memory?
You would have had to explicitly (try to) build zoneminder this way.

Re: Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Fri May 27, 2016 7:10 am
by derlange
Oh, thats not true. I compiled ZoneMinder with mmap support. Here is my configure line:

./configure --prefix=/usr --with-mysql=/usr/include/mysql --with-webdir=/srv/www/htdocs/zm --with-cgidir=/srv/www/cgi-bin --sysconfdir=/etc --bindir=/usr/bin --enable-mmap --with-ffmpeg=/usr/include/ffmpeg --with-webuser=wwwrun --with-webgroup=www ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm_admin ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --enable-onvif=yes

Re: Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Fri May 27, 2016 12:27 pm
by knight-of-ni
The data doesn't lie. Whether you like it or not, the error message you gave us tells us that your instance of zoneminder is trying to use shared memory.
You still haven't told us what distro you are using.

If the problem is not from your most recent attempt to build zoneminder, then the problem is due to stale files on your filesystem. That is the only logical conclusion one can draw base on what you've told us.You've got files on your filesystem, from a previous version of zoneminder, which are attempting to use shared memory.

Your system was not clean when you started. The only sure way to fix this is to delete everything zoneminder related and start over. A "sudo make uninstall" will not do this for you completely. You have to manually search your filesystem for leftovers (particularly zoneminder's perl modules) and delete them yourself. Welcome to the world of building from source and all the problems associated with it.

Lastly, autotools support has been removed from zoneminder. Our next release, which will be very soon, no longer supports it. You should migrate to cmake.

Re: Can't execute '/usr/bin/ipcs -m | grep '^0x8a6d00'': No such file or directory

Posted: Fri May 27, 2016 6:04 pm
by derlange
Thanks for your reply. Yes, there was a RPM Version installed. I am using SuSE 11.1. There is only an RPM of ZoneMinder 1.24 for my SuSE Version. So i build it from scratch.

What i don't understand: The Error is coming from the Memory/Shared.pm. In zmpkg.pl the function zmMemTidy() is called. This function is defined in Memory/Shared.pm. This function is calling the ipcs program.

So how does ZoneMinder know, when i'm compiling with --with-mmap ? I think, the ipcs program is called always. If i use --with-mmap or --without-mmap, nothing is changed. I only would like to understand, what is happening.

Thank you.