Unable to run "/usr/bin/zmfix", output is "&q

Support and queries relating to all previous versions of ZoneMinder
Locked
Anyeos
Posts: 5
Joined: Fri Jul 18, 2008 11:12 pm
Location: Venezuela

Unable to run "/usr/bin/zmfix", output is "&q

Post by Anyeos »

I just read from zmpkg.log this:

07/18/08 19:22:25.947261 zmpkg[9402].INF [Command: start]
07/18/08 19:22:26.403535 zmpkg[9402].ERR [Unable to run "/usr/bin/zmfix", output is ""]
18/07/08 19:23:06.697978 zmpkg[9440].INF [Command: start]
18/07/08 19:23:07.235797 zmpkg[9440].ERR [Unable to run "sudo -u apache /usr/bin/zmfix", output is ""]


Why? How to make it work? I just followed step by step the installation guide found in the Wiki.

Note: I'm using a mysql socket located in a different path than default. Then I was edited the necessary files to take it in account. Maybe I forgetted ones?
Anyeos
Posts: 5
Joined: Fri Jul 18, 2008 11:12 pm
Location: Venezuela

Yes, that is the answer :P

Post by Anyeos »

I just forget to change the mysql socket path in the file zm_db.c
Now it is working but a new problem:

18/07/08 19:47:12.553286 zmwatch[14076].INF ['zmc -d /dev/video' starting at 08/07/18 19:47:12, pid
= 14158]
18/07/08 19:47:22.557204 zmwatch[14076].ERR [Can't get shared memory id '7a6d0001', 1: No existe el
fichero o el directorio]
18/07/08 19:47:22.557732 zmwatch[14076].INF [Restarting capture daemon for Sala, shared memory not
valid]

Ok, I'm trying to solve it.
Anyeos
Posts: 5
Joined: Fri Jul 18, 2008 11:12 pm
Location: Venezuela

Solved the Can't get shared memory id '7a6d0001' problem

Post by Anyeos »

Using strace I can notice about the errors inside a program. So the error in zmc here was in the shmget function (EINVAL). That means:
EINVAL A new segment was to be created and size <SHMMIN> SHMMAX, or
no new segment was to be created, a segment with given key existed,
but size is greater than the size of that segment.

Just the problem was SHMMAX because my system have assigned only 33 something what is less than the 36 something what zmc just claimed.

Then to solve the problem just set SHMMAX greater than the 36 something what claims zmc. You can do it with (as root):

echo "64000000" /proc/sys/kernel/shmmax

That is all. Now you can include it in the /etc/sysctl.conf file to make this change effetive when the PC boots.

Bye! :D
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

zmfix "fixes" permissions on /dve/video* and needs to run as root. How did you install ZM?
Locked