Help please with using a seperate drive...

Forum for questions and support relating to the 1.28.x releases only.
Locked
ScottBouch
Posts: 43
Joined: Sat Oct 26, 2013 2:58 pm

Help please with using a seperate drive...

Post by ScottBouch »

Hi all,

My ZM computer has two drives, a small-ish SSD for OS (Ubuntu Server 14.04) and Zoneminder (1.28.0) software. It has a second drive, a 500GB normal rotary drive, which I had previously mounted using fstab to /media/storage.

I've just had a go at following the instructions here:
http://www.zoneminder.com/wiki/index.ph ... Hard_Drive

So now I have an issue... the Log is showing that it is recording events, however, ZM Console shows none. Clearly I've messed something up.

(I erased all previous events before following the above instructions via the console ZM Events page.)

The disk percentage does seem to reflect the change of drive, as it was at 4% when I erased all the previous events, now is at 1% after I've edited fstab. as it was previously saving to the small SSD, the % was filling up quite quickly.

I have rebooted so that the new lines in fstab take effect.

These are my new directories:

Code: Select all

scott@6FC:/media/storage$ ls
events  images  lost+found

Here is my fstab, the third from last line is what I added previously, and the last two were added today based on the instructions:

Code: Select all

  GNU nano 2.2.6                         File: fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/6FC--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=442ef4fd-bc9b-4e17-825e-27f5e7a1414d /boot           ext2    defaults        0       2
#/dev/mapper/6FC--vg-swap_1 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
/dev/sdb1/      /media/storage  ext4    defaults        0       2
/media/storage/images /usr/share/zoneminder/images none defaults,bind 0 2
/media/storage/events /usr/share/zoneminder/events none defaults,bind 0 2

Can anyone spot a mistake??

Here is the text from my current Log file, the word "Log" next to options is in red, but I have other issues with camera glitches:

Code: Select all

2014-10-28 20:50:02.846100 zmdc[21019].INF-zmdc.pl ['zmwatch.pl' started at 14/10/28 20:50:02]
2014-10-28 20:50:02.980390 zmwatch[21019].INF-zmwatch.pl [Watchdog starting]
2014-10-28 20:50:02.992380 zmwatch[21019].INF-zmwatch.pl [Watchdog pausing for 30 seconds]
2014-10-28 20:50:07.064030 zmdc[20946].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:50:07.074780 zmdc[20946].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:50:07, pid = 21033]
2014-10-28 20:50:07.074790 zmdc[21033].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:50:07]
2014-10-28 20:50:07.133896 zma_m1[21033].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:50:07.138144 zma_m1[21033].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:50:07.144160 zmdc[20946].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:50:17.062280 zmdc[20946].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:50:17.072270 zmdc[20946].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:50:17, pid = 21036]
2014-10-28 20:50:17.072370 zmdc[21036].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:50:17]
2014-10-28 20:50:17.131135 zma_m1[21036].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:50:17.135848 zma_m1[21036].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:50:17.147480 zmdc[20946].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:50:20.830989 zms[21038].WAR-zm_monitor.cpp/424 [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
2014-10-28 20:50:23.737993 zms[21038].INF-zm_signal.cpp/40 [Got signal 15 (Terminated), exiting]
2014-10-28 20:50:30.659586 zms[21041].WAR-zm_monitor.cpp/424 [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
2014-10-28 20:50:30.700257 zms[21041].ERR-zm_event.cpp/1249 [Can't open /usr/share/zoneminder/events/1/14/10/28/20/39/49/00001-capture.jpg: No such file or directory]
2014-10-28 20:50:37.077290 zmdc[20946].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:50:37.085520 zmdc[20946].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:50:37, pid = 21044]
2014-10-28 20:50:37.085710 zmdc[21044].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:50:37]
2014-10-28 20:50:37.144806 zma_m1[21044].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:50:37.149401 zma_m1[21044].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:50:37.155620 zmdc[20946].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:50:41.097823 web_php[19858].ERR-/usr/share/zoneminder/includes/functions.php/2330 [socket_sendto( /var/run/zm/zms-780105s.sock ) failed: No such file or directory]
2014-10-28 20:50:44.100339 zmc_m1[20981].INF-zm_monitor.cpp/2899 [Garage_door: 1000 - Capturing at 23.81 fps]
2014-10-28 20:51:17.029820 zmdc[20946].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:51:17.039110 zmdc[21068].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:51:17]
2014-10-28 20:51:17.039120 zmdc[20946].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:51:17, pid = 21068]
2014-10-28 20:51:17.099538 zma_m1[21068].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:51:17.103804 zma_m1[21068].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:51:17.109550 zmdc[20946].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:51:24.486386 zmc_m1[20981].INF-zm_monitor.cpp/2899 [Garage_door: 2000 - Capturing at 25.00 fps]
2014-10-28 20:52:04.940064 zmc_m1[20981].INF-zm_monitor.cpp/2899 [Garage_door: 3000 - Capturing at 25.00 fps]
2014-10-28 20:52:37.085100 zmdc[20946].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:52:37.099610 zmdc[20946].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:52:37, pid = 21139]
2014-10-28 20:52:37.099620 zmdc[21139].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:52:37]
2014-10-28 20:52:37.159031 zma_m1[21139].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:52:37.163198 zma_m1[21139].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:52:37.168980 zmdc[20946].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:52:45.417132 zmc_m1[20981].INF-zm_monitor.cpp/2899 [Garage_door: 4000 - Capturing at 24.39 fps]
2014-10-28 20:56:23.429810 zmpkg[1454].INF-zmpkg.pl [Command: start]
2014-10-28 20:56:23.783630 zmdc[1473].INF-zmdc.pl [Server starting at 14/10/28 20:56:23]
2014-10-28 20:56:26.935690 zmdc[1473].INF-zmdc.pl ['zmc -m 1' starting at 14/10/28 20:56:26, pid = 1499]
2014-10-28 20:56:26.935710 zmdc[1499].INF-zmdc.pl ['zmc -m 1' started at 14/10/28 20:56:26]
2014-10-28 20:56:27.050660 zmdc[1473].ERR-zmdc.pl ['zmc -m 1' exited abnormally, exit status 255]
2014-10-28 20:56:27.055030 zmdc[1473].INF-zmdc.pl [Starting pending process, zmc -m 1]
2014-10-28 20:56:27.061160 zmdc[1473].INF-zmdc.pl ['zmc -m 1' starting at 14/10/28 20:56:27, pid = 1506]
2014-10-28 20:56:27.061280 zmdc[1506].INF-zmdc.pl ['zmc -m 1' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.101770 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:56:27, pid = 1509]
2014-10-28 20:56:27.102160 zmdc[1509].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.134889 zma_m1[1509].ERR-zm_monitor.cpp/419 [Shared data not initialised by capture daemon]
2014-10-28 20:56:27.141270 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:56:27.145970 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:56:27.158070 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:56:27, pid = 1514]
2014-10-28 20:56:27.158420 zmdc[1514].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.181782 zma_m1[1514].ERR-zm_monitor.cpp/419 [Shared data not initialised by capture daemon]
2014-10-28 20:56:27.187590 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:56:27.273400 zmdc[1473].INF-zmdc.pl ['zmfilter.pl' starting at 14/10/28 20:56:27, pid = 1518]
2014-10-28 20:56:27.274240 zmdc[1518].INF-zmdc.pl ['zmfilter.pl' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.445370 zmdc[1473].INF-zmdc.pl ['zmaudit.pl -c' starting at 14/10/28 20:56:27, pid = 1525]
2014-10-28 20:56:27.445380 zmdc[1525].INF-zmdc.pl ['zmaudit.pl -c' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.483699 zmc_m1[1506].INF-zmc.cpp/195 [Starting Capture]
2014-10-28 20:56:27.488237 zmc_m1[1506].INF-zm_ffmpeg_camera.cpp/114 [Priming capture from rtsp://admin:12345@192.168.1.51:554/cam/realmonitor?Channel=1&subtype=0?tcp]
2014-10-28 20:56:27.520960 zmfilter[1518].INF-zmfilter.pl [Scanning for events]
2014-10-28 20:56:27.607710 zmdc[1473].INF-zmdc.pl ['zmwatch.pl' starting at 14/10/28 20:56:27, pid = 1534]
2014-10-28 20:56:27.607750 zmdc[1534].INF-zmdc.pl ['zmwatch.pl' started at 14/10/28 20:56:27]
2014-10-28 20:56:27.616770 zmaudit[1525].INF-zmaudit.pl [Found orphaned frame records for event '515']
2014-10-28 20:56:27.621470 zmaudit[1525].INF-zmaudit.pl [deleting]
2014-10-28 20:56:27.631730 zmaudit[1525].INF-zmaudit.pl [Found orphaned frame records for event '516']
2014-10-28 20:56:27.636380 zmaudit[1525].INF-zmaudit.pl [deleting]
2014-10-28 20:56:27.648250 zmaudit[1525].INF-zmaudit.pl [Found orphaned statistic records for event '515']
2014-10-28 20:56:27.652830 zmaudit[1525].INF-zmaudit.pl [deleting]
2014-10-28 20:56:27.663480 zmaudit[1525].INF-zmaudit.pl [Found orphaned statistic records for event '516']
2014-10-28 20:56:27.667910 zmaudit[1525].INF-zmaudit.pl [deleting]
2014-10-28 20:56:27.729770 zmwatch[1534].INF-zmwatch.pl [Watchdog starting]
2014-10-28 20:56:27.735460 zmwatch[1534].INF-zmwatch.pl [Watchdog pausing for 30 seconds]
2014-10-28 20:56:32.022540 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:56:32.033070 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:56:32, pid = 1641]
2014-10-28 20:56:32.033070 zmdc[1641].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:56:32]
2014-10-28 20:56:32.095901 zma_m1[1641].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:56:32.100030 zma_m1[1641].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:56:32.105590 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:56:42.021650 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:56:42.037180 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:56:42, pid = 1644]
2014-10-28 20:56:42.037260 zmdc[1644].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:56:42]
2014-10-28 20:56:42.095098 zma_m1[1644].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:56:42.099028 zma_m1[1644].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:56:42.105680 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:57:02.076220 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:57:02.084540 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:57:02, pid = 1669]
2014-10-28 20:57:02.084720 zmdc[1669].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:57:02]
2014-10-28 20:57:02.153268 zma_m1[1669].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:57:02.157641 zma_m1[1669].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:57:02.168960 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:57:09.541836 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 1000 - Capturing at 23.81 fps]
2014-10-28 20:57:42.021620 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:57:42.029700 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:57:42, pid = 1674]
2014-10-28 20:57:42.030000 zmdc[1674].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:57:42]
2014-10-28 20:57:42.089731 zma_m1[1674].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:57:42.094661 zma_m1[1674].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:57:42.100940 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:57:50.006495 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 2000 - Capturing at 24.39 fps]
2014-10-28 20:58:30.374793 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 3000 - Capturing at 25.00 fps]
2014-10-28 20:59:02.087100 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 20:59:02.097070 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 20:59:02, pid = 1710]
2014-10-28 20:59:02.097280 zmdc[1710].INF-zmdc.pl ['zma -m 1' started at 14/10/28 20:59:02]
2014-10-28 20:59:02.155766 zma_m1[1710].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:59:02.165696 zma_m1[1710].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 20:59:02.171990 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 20:59:10.815007 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 4000 - Capturing at 25.00 fps]
2014-10-28 20:59:51.385499 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 5000 - Capturing at 24.39 fps]
2014-10-28 21:00:31.931115 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 6000 - Capturing at 25.00 fps]
2014-10-28 21:01:12.331796 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 7000 - Capturing at 24.39 fps]
2014-10-28 21:01:42.081540 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 21:01:42.089900 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 21:01:42, pid = 1837]
2014-10-28 21:01:42.090080 zmdc[1837].INF-zmdc.pl ['zma -m 1' started at 14/10/28 21:01:42]
2014-10-28 21:01:42.152843 zma_m1[1837].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 21:01:42.157524 zma_m1[1837].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 21:01:42.163460 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 21:01:52.669334 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 8000 - Capturing at 25.00 fps]
2014-10-28 21:02:33.257848 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 9000 - Capturing at 24.39 fps]
2014-10-28 21:03:13.664971 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 10000 - Capturing at 25.00 fps]
2014-10-28 21:03:54.267837 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 11000 - Capturing at 24.39 fps]
2014-10-28 21:04:34.724032 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 12000 - Capturing at 25.00 fps]
2014-10-28 21:05:15.197715 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 13000 - Capturing at 24.39 fps]
2014-10-28 21:05:55.637012 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 14000 - Capturing at 25.00 fps]
2014-10-28 21:06:36.260203 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 15000 - Capturing at 24.39 fps]
2014-10-28 21:07:02.068640 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 21:07:02.077530 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 21:07:02, pid = 1953]
2014-10-28 21:07:02.077540 zmdc[1953].INF-zmdc.pl ['zma -m 1' started at 14/10/28 21:07:02]
2014-10-28 21:07:02.138031 zma_m1[1953].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 21:07:02.142194 zma_m1[1953].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 21:07:02.148800 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 21:07:16.892471 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 16000 - Capturing at 25.00 fps]
2014-10-28 21:07:57.522076 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 17000 - Capturing at 24.39 fps]
2014-10-28 21:08:37.973301 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 18000 - Capturing at 25.00 fps]
2014-10-28 21:09:18.566974 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 19000 - Capturing at 24.39 fps]
2014-10-28 21:09:59.198479 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 20000 - Capturing at 24.39 fps]
2014-10-28 21:10:39.566520 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 21000 - Capturing at 25.00 fps]
2014-10-28 21:11:19.978781 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 22000 - Capturing at 25.00 fps]
2014-10-28 21:12:00.322752 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 23000 - Capturing at 24.39 fps]
2014-10-28 21:12:40.850257 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 24000 - Capturing at 25.00 fps]
2014-10-28 21:13:21.253064 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 25000 - Capturing at 24.39 fps]
2014-10-28 21:14:01.677440 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 26000 - Capturing at 25.00 fps]
2014-10-28 21:14:42.180498 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 27000 - Capturing at 24.39 fps]
2014-10-28 21:15:22.652040 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 28000 - Capturing at 25.00 fps]
2014-10-28 21:16:03.279781 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 29000 - Capturing at 24.39 fps]
2014-10-28 21:16:43.885680 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 30000 - Capturing at 25.00 fps]
2014-10-28 21:17:02.076980 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 21:17:02.086630 zmdc[2215].INF-zmdc.pl ['zma -m 1' started at 14/10/28 21:17:02]
2014-10-28 21:17:02.086750 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 21:17:02, pid = 2215]
2014-10-28 21:17:02.140087 zma_m1[2215].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 21:17:02.149963 zma_m1[2215].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 21:17:02.156170 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 21:17:24.482205 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 31000 - Capturing at 24.39 fps]
2014-10-28 21:18:05.070748 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 32000 - Capturing at 24.39 fps]
2014-10-28 21:18:45.730004 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 33000 - Capturing at 25.00 fps]
2014-10-28 21:19:26.327578 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 34000 - Capturing at 24.39 fps]
2014-10-28 21:20:06.798461 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 35000 - Capturing at 25.00 fps]
2014-10-28 21:20:47.420117 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 36000 - Capturing at 24.39 fps]
2014-10-28 21:21:27.936417 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 37000 - Capturing at 25.00 fps]
2014-10-28 21:22:08.504689 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 38000 - Capturing at 24.39 fps]
2014-10-28 21:22:49.023439 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 39000 - Capturing at 24.39 fps]
2014-10-28 21:23:29.526195 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 40000 - Capturing at 25.00 fps]
2014-10-28 21:24:10.026847 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 41000 - Capturing at 24.39 fps]
2014-10-28 21:24:50.629113 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 42000 - Capturing at 25.00 fps]
2014-10-28 21:25:31.150335 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 43000 - Capturing at 24.39 fps]
2014-10-28 21:26:11.719358 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 44000 - Capturing at 25.00 fps]
2014-10-28 21:26:52.283347 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 45000 - Capturing at 24.39 fps]
2014-10-28 21:27:02.091240 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 21:27:02.100040 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 21:27:02, pid = 2400]
2014-10-28 21:27:02.101270 zmdc[2400].INF-zmdc.pl ['zma -m 1' started at 14/10/28 21:27:02]
2014-10-28 21:27:02.165017 zma_m1[2400].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 21:27:02.169324 zma_m1[2400].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 21:27:02.175350 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 21:27:32.839914 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 46000 - Capturing at 25.00 fps]
2014-10-28 21:28:13.469740 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 47000 - Capturing at 24.39 fps]
2014-10-28 21:28:54.017672 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 48000 - Capturing at 24.39 fps]
2014-10-28 21:29:34.673117 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 49000 - Capturing at 25.00 fps]
2014-10-28 21:30:15.229013 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 50000 - Capturing at 24.39 fps]
2014-10-28 21:30:55.796266 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 51000 - Capturing at 25.00 fps]
2014-10-28 21:31:36.396210 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 52000 - Capturing at 24.39 fps]
2014-10-28 21:32:16.982484 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 53000 - Capturing at 25.00 fps]
2014-10-28 21:32:57.610914 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 54000 - Capturing at 24.39 fps]
2014-10-28 21:33:38.158091 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 55000 - Capturing at 24.39 fps]
2014-10-28 21:34:18.654490 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 56000 - Capturing at 25.00 fps]
2014-10-28 21:34:59.242166 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 57000 - Capturing at 24.39 fps]
2014-10-28 21:35:39.805921 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 58000 - Capturing at 25.00 fps]
2014-10-28 21:36:20.455016 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 59000 - Capturing at 24.39 fps]
2014-10-28 21:37:00.953222 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 60000 - Capturing at 25.00 fps]
2014-10-28 21:37:02.017240 zmdc[1473].INF-zmdc.pl [Starting pending process, zma -m 1]
2014-10-28 21:37:02.025670 zmdc[1473].INF-zmdc.pl ['zma -m 1' starting at 14/10/28 21:37:02, pid = 2585]
2014-10-28 21:37:02.025680 zmdc[2585].INF-zmdc.pl ['zma -m 1' started at 14/10/28 21:37:02]
2014-10-28 21:37:02.087936 zma_m1[2585].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 21:37:02.092604 zma_m1[2585].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
2014-10-28 21:37:02.098520 zmdc[1473].ERR-zmdc.pl ['zma -m 1' exited abnormally, exit status 255]
2014-10-28 21:37:41.502996 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 61000 - Capturing at 24.39 fps]
2014-10-28 21:38:22.121878 zmc_m1[1506].INF-zm_monitor.cpp/2899 [Garage_door: 62000 - Capturing at 24.39 fps]
Sorry about the long log above, the forum won't allow me to upload any useful file types..

Any help is much, much appreciated, as now I'm in a worse position than before!

Cheers, Scott.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Help please with using a seperate drive...

Post by knight-of-ni »

You have a file permission problem:
2014-10-28 20:50:07.133896 zma_m1[21033].ERR-zm_monitor.cpp/469 [Can't make events/1: Permission denied]
2014-10-28 20:50:07.138144 zma_m1[21033].FAT-zm_monitor.cpp/476 [Can't symlink '1' to 'Garage_door': Permission denied]
To fix, make your subfolders writeable by the web user account, which is "www-data" for Ubuntu users.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
ScottBouch
Posts: 43
Joined: Sat Oct 26, 2013 2:58 pm

Re: Help please with using a seperate drive...

Post by ScottBouch »

Aaahh, Fantastic, thank you!!!! :D

That point could do with being added to the instructions for novices!

Thanks again, Scott.
ScottBouch
Posts: 43
Joined: Sat Oct 26, 2013 2:58 pm

Re: Help please with using a seperate drive...

Post by ScottBouch »

So just to check,

I'm changing the owner of the drive to www-data using chown?

Code: Select all

scott@6FC:~$ sudo chown -R 6FC:www-data /media/storage
My computer is called 6FC, have I got the user right as 6FC:www-data?

Could someone please check my syntax above please before I go ahead and implement it? I'd hate to turn the drive into a brick!

Also do I need to unmount the drive first, then re-mount it?

Thank you, Scott.

PS: I've commented out my fstab lines so that ZM reverts back to the SSD so it can record till I'm confident to reassign the new drive owner.
Nerre
Posts: 100
Joined: Thu Sep 25, 2014 10:22 am

Re: Help please with using a seperate drive...

Post by Nerre »

No, the owner is specified as <user>:<group>, thus you are specifying the user 6FC and the group www-data. You should probably use www-data:www-data or just www-data (keeping the group ownership).
ScottBouch
Posts: 43
Joined: Sat Oct 26, 2013 2:58 pm

Re: Help please with using a seperate drive...

Post by ScottBouch »

Hi Nerre,

Thank you, I'm glad I checked first!

Cheers, Scott
ScottBouch
Posts: 43
Joined: Sat Oct 26, 2013 2:58 pm

Re: Help please with using a seperate drive...

Post by ScottBouch »

All sorted now - thank you!

It's fun learning more about Linux all the time!

Cheers, Scott
Locked