Motion - Support Question 2007x 02x 02x 110629

motion dies immediately

Question

gentoo linux kernel 2.6.19.
motion 3.2.7

chickcam / # motion -n
[0] Processing thread 0 - config file /etc/motion.conf
[0] Thread 1 is from /etc/motion.conf
[0] motion-httpd/3.2.7 running, accepting connections
[1] Thread started
[0] motion-httpd: waiting for data on port TCP 8080
[1] Started stream webcam server in port 8081
 Killed
 chickcam / #  

chickcam / # grep ^[A-Za-z] /etc/motion.conf
 daemon on
 process_id_file /var/run/motion.pid
 setup_mode off
 videodevice /dev/video0
 input 8
 norm 0
 frequency 0
 rotate 0
 width 320
 height 240
 framerate 2
 minimum_frame_time 0
 auto_brightness off
 brightness 0
 contrast 0
 saturation 0
 hue 0
 roundrobin_frames 1
 roundrobin_skip 1
 switchfilter off
 threshold 1500
 threshold_tune off
 noise_level 32
 noise_tune on
 night_compensate off
 despeckle EedDl
 smart_mask_speed 0
 lightswitch 0
 minimum_motion_frames 1
 pre_capture 0
 post_capture 0
 gap 60
 max_mpeg_time 0
 low_cpu 0
 output_all off
 output_normal on
 output_motion off
 quality 75
 ppm off
 ffmpeg_cap_new on
 ffmpeg_cap_motion off
 ffmpeg_timelapse 0
 ffmpeg_timelapse_mode daily
 ffmpeg_bps 500000
 ffmpeg_variable_bitrate 0
 ffmpeg_video_codec mpeg4
 ffmpeg_deinterlace off
 snapshot_interval 0
 locate off
 text_right %Y-%m-%d\n%T-%q
 text_changes off
 text_event %Y%m%d%H%M%S
 text_double off
 target_dir /usr/local/apache2/htdocs/cam1
 snapshot_filename %v-%Y%m%d%H%M%S-snapshot
 jpeg_filename %v-%Y%m%d%H%M%S-%q
 movie_filename %v-%Y%m%d%H%M%S
 timelapse_filename %Y%m%d-timelapse
 webcam_port 8081
 webcam_quality 50
 webcam_motion off
 webcam_maxrate 1
 webcam_localhost off
 webcam_limit 0
 control_port 8080
 control_localhost off
 control_html_output on
 track_type 0
 track_auto off
 track_motorx -1
 track_motory -1
 track_maxx 0
 track_maxy 0
 track_iomojo_id 0
 track_step_angle_x 10
 track_step_angle_y 10
 track_move_wait 10
 track_speed 255
 track_stepsize 40
 quiet on
 sql_log_image on
 sql_log_snapshot on
 sql_log_mpeg off
 sql_log_timelapse off
 sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
chickcam / #     

this is the tail of strace motion 

t_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
 write(5, "\240\366\364\267\0\0\0\0000\243\221\277\20\377\5\10P@\7"..., 148) = 148
 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
 rt_sigsuspend([][1] Thread started
)                       = ? ERESTARTNOHAND (To be restarted)
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
sigreturn()                             = ? (mask now [RTMIN])
nanosleep({1, 0}, [0] motion-httpd/3.2.7 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Started stream webcam server in port 8081
 0xbf91a1f8)           = ? ERESTART_RESTARTBLOCK (To be restarted)
+++ killed by SIGKILL +++
Process 14486 detached
 chickcam zoneminder #     


                 
chickcam ~ # motion -n -d 5
[0] Processing thread 0 - config file /etc/motion.conf
[0] Thread 1 is from /etc/motion.conf
[0] motion-httpd/3.2.7 running, accepting connections
[1] Thread started
[0] motion-httpd: waiting for data on port TCP 8080
[1] Started stream webcam server in port 8081
 Killed
 chickcam ~ # tail -n20  /var/log/messages
 Feb  3 20:16:24 chickcam motion: [0] motion-httpd/3.2.7 running, accepting connections
 Feb  3 20:16:24 chickcam /var/tmp/portage/spca5xx-20060301/work/spca5xx-20060301/drivers/usb/spca561.h: [spca561_init:473] Find spca561 USB Product ID 928
 Feb  3 20:16:24 chickcam motion: [0] motion-httpd: waiting for data on port TCP 8080
 Feb  3 20:16:24 chickcam motion: [1] Started stream webcam server in port 8081
 Feb  3 20:46:32 chickcam sshd[5688]: Accepted keyboard-interactive/pam for root from 192.168.0.163 port 56743 ssh2
 Feb  3 20:46:32 chickcam sshd(pam_unix)[5691]: session opened for user root by root(uid=0)
Feb  3 20:47:13 chickcam motion: [0] Processing thread 0 - config file /etc/motion.conf
 Feb  3 20:47:13 chickcam motion: [0] Thread 1 is from /etc/motion.conf
 Feb  3 20:47:13 chickcam motion: [1] Thread started
 Feb  3 20:47:13 chickcam motion: [0] motion-httpd/3.2.7 running, accepting connections
 Feb  3 20:47:13 chickcam /var/tmp/portage/spca5xx-20060301/work/spca5xx-20060301/drivers/usb/spca561.h: [spca561_init:473] Find spca561 USB Product ID 928
 Feb  3 20:47:13 chickcam motion: [0] motion-httpd: waiting for data on port TCP 8080
 Feb  3 20:47:14 chickcam motion: [1] Started stream webcam server in port 8081

 (hope this is what you want )

(gdb) run motion
 Starting program: /usr/bin/motion motion
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11404)]
[0] Processing thread 0 - config file /etc/motion.conf
[0] Motion going to daemon mode

Program exited normally.
(gdb)                                                         

(ps chickcam keeps an eye on my chickens when they escape from their run - nothing too dodgy!)


                                                              

Environment

Motion version: 3.2.7
ffmpeg version: 0.4.9_p20060530
Libraries: ffmpeg, mysql, postgresql
Server OS: gentoo

-- PaulCooper - 02 Feb 2007

Follow Up

I'm sorry but with your info i cannot guess what can be the problem ... try to run motion :

./motion -n -d 5

And take a look to log files ( /var/log/messages /var/log/syslog ).

Also run motion with gdb will help.

-- AngelCarpintero - 02 Feb 2007


I'm Sorry but i cannot figure out what can be your problem ( just a guess , if you run motion in daemon mode maybe you have no right to create the pid file).

Anyway you can update motion to latest svn version, that has many features and bugfixes.

-- AngelCarpintero - 04 Feb 2007

Answer

Closed , never got feedback and were using an old version, so reopen for 3.2.10.

-- AngelCarpintero - 07 May 2008
Topic revision: r5 - 07 May 2008, AngelCarpintero
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.