Announcement

Collapse
No announcement yet.

Shared memory error in zoneminder [SOLVED]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Shared memory error in zoneminder [SOLVED]

    New to zone minder. I have it installed on Kubuntu 10.04.2 LTS, kernel 2.6.32-32.

    I'm getting the black screen and these errors in my logs:

    Code:
    zma_m2[22871]: ERR [Shared data not initialised by capture daemon]
    zmdc[22798]: ERR ['zma -m 2' exited abnormally, exit status 255]
    zmc_m2[22872]: INF [Starting Capture]
    zmc_m2[22872]: ERR [Invalid response status 401: Unauthorized]
    zmc_m2[22872]: ERR [Unable to get response]
    zmc_m2[22872]: ERR [Failed to capture image from monitor 2 (0/1)]
    zmdc[22798]: ERR ['zmc -m 2' exited abnormally, exit status 255]
    zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
    zmwatch[22830]: last message repeated 5 times
    zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
    zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
    zmdc[22798]: INF [Starting pending process, zma -m 2]
    zmdc[22798]: INF ['zma -m 2' starting at 11/06/04 13:32:28, pid = 22909]
    zmdc[22798]: INF [Starting pending process, zmc -m 2]
    zmdc[22798]: INF ['zmc -m 2' starting at 11/06/04 13:32:28, pid = 22910]
    zmdc[22910]: INF ['zmc -m 2' started at 11/06/04 13:32:28]
    zmdc[22909]: INF ['zma -m 2' started at 11/06/04 13:32:28]
    zmc_m2[22910]: INF [Debug Level = 0, Debug Log = <none>]
    zma_m2[22909]: INF [Debug Level = 0, Debug Log = <none>]
    zma_m2[22909]: ERR [Shared data not initialised by capture daemon]
    zmdc[22798]: ERR ['zma -m 2' exited abnormally, exit status 255]
    zmc_m2[22910]: INF [Starting Capture]
    zmc_m2[22910]: ERR [Invalid response status 401: Unauthorized]
    zmc_m2[22910]: ERR [Unable to get response]
    zmc_m2[22910]: ERR [Failed to capture image from monitor 2 (0/1)]
    zmdc[22798]: ERR ['zmc -m 2' exited abnormally, exit status 255]
    zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
    zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
    I've found a lot of posts here and on other forums about setting the shared memory, I've done that with a variety of different memory settings.

    /etc/sysctl.conf currently reads:

    Code:
    kernel.shmall = 167772160
    kernel.shmmax = 335544320
    output of ipcs -l:

    Code:
    ------ Shared Memory Limits --------
    max number of segments = 4096
    max seg size (kbytes) = 327680
    max total shared memory (kbytes) = 671088640
    min seg size (bytes) = 1
    
    ------ Semaphore Limits --------
    max number of arrays = 128
    max semaphores per array = 250
    max semaphores system wide = 32000
    max ops per semop call = 32
    semaphore max value = 32767
    
    ------ Messages: Limits --------
    max queues system wide = 1705
    max size of message (bytes) = 8192
    default max size of queue (bytes) = 16384

    Another forum suggested adding these lines to /usr/bin/zmdc.pl:

    $ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
    $ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';

    Still no good.

    I've added the www-data user to the video group as suggested on one forum but no luck.

    I'm completely stuck now. Any help is greatly appreciated.

    #2
    Re: Shared memory error in zoneminder

    The problem was this right here:

    Code:
    zmc_m2[22872]: ERR [Invalid response status 401: Unauthorized]
    I had a mistake in the credentials line in the source.

    Comment


      #3
      Re: Shared memory error in zoneminder [SOLVED]

      I see you fixed your problem. I noticed that the Debian documentation for ZoneMinder was over 5 years old. A LOT has changed with Debian (and Kubuntu) and most monitors (cameras) are expected to be UVC and others will require a special driver.

      How is it working out for you. Can you see images and does the system alert you if an image changes?
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: Shared memory error in zoneminder [SOLVED]

        I haven't gotten that far with it yet. I'll play with it some more this evening and let you know how it goes.

        Comment


          #5
          Re: Shared memory error in zoneminder [SOLVED]

          Not sure if anyone will read this thread, but I seem to always end up at the shared memory error. I compiled zoneminder and installed on mysql and perl and php (all of which I did wrong or not at all but hopefully fixed). I also had a wrong file for init.d, some permissions problems and I am unsure of the camera settings (although I found most of those online).

          But I still get the shared memory error described above and am wondering what causes it and how to debug it.

          Comment

          Working...
          X