Mition terminating from permission issue but have full (777) writes to target_dir
Question
I've check and rechecked and I cannot seem to get motion to not crash telling me: Error opening file ./01-20130214092059-24.jpg with mode w: Permission denied
I've double checked and even set the target_dir to full read/write for everyone (chmod -R 777 target_dir) and still no luck. I must be missing something. I used the default config file and just changed the daemon to yes and the target_dir. I must be missing something.
Feb 14 09:27:45 sabertooth motion: [0] Not config file to process using default values
Feb 14 09:27:45 sabertooth motion: [0] Motion 3.2.12 Started
Feb 14 09:27:45 sabertooth motion: [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784
Feb 14 09:27:45 sabertooth motion: [1] Thread 1 started
Feb 14 09:27:45 sabertooth motion: [1] cap.driver: "uvcvideo"
Feb 14 09:27:45 sabertooth motion: [1] cap.card: "UVC Camera (046d:081b)"
Feb 14 09:27:45 sabertooth motion: [1] cap.bus_info: "usb-0000:00:1d.7-4"
Feb 14 09:27:45 sabertooth motion: [1] cap.capabilities=0x04000001
Feb 14 09:27:45 sabertooth motion: [1] - VIDEO_CAPTURE
Feb 14 09:27:45 sabertooth motion: [1] - STREAMING
Feb 14 09:27:45 sabertooth motion: [1] Config palette index 8 (YU12) doesn't work.
Feb 14 09:27:45 sabertooth motion: [1] Supported palettes:
Feb 14 09:27:45 sabertooth motion: [1] 0: YUYV (YUV 4:2:2 (YUYV))
Feb 14 09:27:45 sabertooth motion: [1] 1: MJPG (MJPEG)
Feb 14 09:27:45 sabertooth motion: [1] Selected palette YUYV
Feb 14 09:27:45 sabertooth motion: [1] Test palette YUYV (352x288)
Feb 14 09:27:45 sabertooth motion: [1] Using palette YUYV (352x288) bytesperlines 704 sizeimage 202752 colorspace 00000008
Feb 14 09:27:45 sabertooth motion: [1] found control 0x00980900, "Brightness", range 0,255
Feb 14 09:27:45 sabertooth motion: [1] #011"Brightness", default 128, current 128
Feb 14 09:27:45 sabertooth motion: [1] found control 0x00980901, "Contrast", range 0,255
Feb 14 09:27:45 sabertooth motion: [1] #011"Contrast", default 32, current 32
Feb 14 09:27:45 sabertooth motion: [1] found control 0x00980902, "Saturation", range 0,255
Feb 14 09:27:45 sabertooth motion: [1] #011"Saturation", default 32, current 32
Feb 14 09:27:45 sabertooth motion: [1] found control 0x00980913, "Gain", range 0,255
Feb 14 09:27:45 sabertooth motion: [1] #011"Gain", default 0, current 22
Feb 14 09:27:45 sabertooth motion: [1] mmap information:
Feb 14 09:27:45 sabertooth motion: [1] frames=4
Feb 14 09:27:45 sabertooth motion: [1] 0 length=202752
Feb 14 09:27:45 sabertooth motion: [1] 1 length=202752
Feb 14 09:27:45 sabertooth motion: [1] 2 length=202752
Feb 14 09:27:45 sabertooth motion: [1] 3 length=202752
Feb 14 09:27:45 sabertooth motion: [1] Resizing pre_capture buffer to 1 items
Feb 14 09:28:00 sabertooth motion: [1] Error opening file ./01-20130214092800-19.jpg with mode w: Permission denied
Feb 14 09:28:00 sabertooth motion: [1] Can't write picture to file ./01-20130214092800-19.jpg - check access rights to target directory: Permission denied
Feb 14 09:28:00 sabertooth motion: [1] Thread is going to finish due to this fatal error: Permission denied
Feb 14 09:28:00 sabertooth motion: [1] Calling vid_close() from motion_cleanup
Feb 14 09:28:00 sabertooth motion: [1] Closing video device /dev/video0
Feb 14 09:28:02 sabertooth motion: [0] Motion terminating
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
6:0.8.5-0ubuntu0.12.10.1 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Mint (Ubuntu) 14 Nadia |
--
JasonKumpf - 14 Feb 2013
Answer