Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: First post here - Runaway jpg files (tosiara)
2. Re: httpd webcontrol is not restarted when Watchdog triggers
graceful restart (tosiara)
3. Re: httpd webcontrol is not restarted when Watchdog triggers
graceful restart (David Whitman)
----------------------------------------------------------------------
Message: 1
Date: Mon, 16 Mar 2015 10:15:01 +0200
From: tosiara <[email protected]>
Subject: Re: [Motion-user] First post here - Runaway jpg files
To: Motion discussion list <[email protected]>
Message-ID:
<cachtdwr1u3zvzauehm0g0jxujje9-t3oif+w1vma0067svx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Which version are you running?
On Sun, Mar 15, 2015 at 8:19 PM, David Whitman <[email protected]>
wrote:
> Thanks Joel
> I'll apply these suggestions and let you know what results are. I
> appreciate your help.
> dw
>
> On Sun, Mar 15, 2015 at 11:11 AM, Joel Avery <[email protected]> wrote:
>
>> You seem to be having two problems, the first of which is why you are
>> having pictures taken constantly.
>>
>> I had this same question when I first set my system up years ago, and I
>> found and turned on these features:
>>
>> # Locate and draw a box around the moving object.
>> # Valid values: on, off, preview (default: off)
>> # Set to 'preview' will only draw a box in preview_shot pictures.
>> locate_motion_mode on
>>
>> # Set the look and style of the locate box if enabled.
>> # Valid values: box, redbox, cross, redcross (default: box)
>> # Set to 'box' will draw the traditional box.
>> # Set to 'redbox' will draw a red box.
>> # Set to 'cross' will draw a little cross to mark center.
>> # Set to 'redcross' will draw a little red cross to mark center.
>> locate_motion_style redbox
>>
>> There are others like threshold and setup that help you figure out what
>> is moving as well.
>>
>>
>>
>>
>>
>>
>> On Sunday, March 15, 2015 1:28 PM, David Whitman <
>> [email protected]> wrote:
>>
>>
>>
>> Hello,
>> Loving the software here....but....
>>
>> I must be missing something simple. My camera is recording a lot .jpg
>> files to my home directory (continuous in fact). If I put my finger over
>> the lens it will quit. I'm a little puzzled as I have went through the
>> renamed motion.conf file and am calling this from the cli. The result I am
>> getting happens even though I have not modified the file. Also when I put a
>> redirect in the section that asks where I want the pics/movies to end up
>> and this is not the place they are going. They are going to my /home.
>>
>> I am using a PS2 usb cam on a Lenovo x-61 laptop running Linux Mint 17.
>> The laptop has no webcam of it's own.
>>
>> WebCam info:
>> Bus 002 Device 003: ID 1415:2000 Nam Tai E&E Products Ltd. or OmniVision
>> Technologies, Inc. Sony Playstation Eye
>>
>> Thanks in advance for any tips or help
>>
>> davidWHITMAN
>> host 209 hackerpublicradio.org
>>
>> http://hackerpublicradio.org/correspondents.php?hostid=209
>>
>>
>>
>>
>>
>> --
>> davidWHITMAN
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>>
>
>
> --
> davidWHITMAN
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Mon, 16 Mar 2015 11:30:35 +0200
From: tosiara <[email protected]>
Subject: Re: [Motion-user] httpd webcontrol is not restarted when
Watchdog triggers graceful restart
To: Motion discussion list <[email protected]>
Message-ID:
<cachtdwrfg08kbsem+8tp4p3obypr1otdj1hlrxeydkdrfqv...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Ok, so this looks like a bug. If I read the source correctly, web_control
thread startup is outside of "restart" loop.
https://github.com/Mr-Dave/motion/blob/master/motion.c#L2727
Look few lines up - there is web_control startup and it is outside of the
"while(1)"
On Mon, Mar 16, 2015 at 10:13 AM, tosiara <[email protected]> wrote:
> Hi,
>
> I stared experiencing strange issue which I'm still trying to
> troubleshoot. Just wanted to ask if anyone already seen that behavior?
>
> Mar 14 18:37:03 server motion[5758]: [0] [ERR] [ALL] main: Thread 1 -
> Watchdog timeout, trying to do a graceful restart
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] httpd_run:
> motion-httpd - Finishing
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] httpd_run:
> motion-httpd Closing
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] motion_web_control:
> motion-httpd thread exit
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [ALL] motion_loop: Thread
> exiting
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [STR] stream_stop: Closing
> motion-stream listen socket & active motion-stream sockets
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [STR] stream_stop: Closed
> motion-stream listen socket & active motion-stream sockets
> Mar 14 18:37:37 server motion[5758]: [1] [NTC] [EVT] event_extpipe_end:
> CLOSING: extpipe file desc 8, error state 0
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [EVT] event_extpipe_end:
> pclose return: -1
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_handler_loop:
> netcam camera handler: finish set, exiting
> Mar 14 18:37:41 server motion[5758]: [0] [NTC] [ALL] main: Motion thread 1
> restart
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] motion_init: Thread 1
> started , motion detection Enabled
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_start: Network
> Camera thread starting... for url (http://dcs-932l/mjpeg.cgi)
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [NET] netcam_setup_html:
> connected, going on to read image.
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] image_ring_resize:
> Resizing pre_capture buffer to 1 items
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_handler_loop:
> Camera handler thread [2] started
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [STR] http_bindsock:
> motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [STR] http_bindsock:
> motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] motion_init: Started
> motion-stream server in port 8081 auth Disabled
>
> Full log: http://pastebin.com/LKS1hBhJ
> As you can see only stream httpd on port 8081 has been started. The
> web_control on port 8080 is closed and not restarted.
>
> Right before watchdog timeouts there is a suspicious event FPS=1:
>
> Mar 14 18:35:06 server motion[5758]: [1] [NTC] [EVT] event_new_video FPS 1
>
> Probably, netcam (runs @10fps) stops sending images for some time and that
> triggers watchdog. But why web_control is not restarted?
>
> I'm investigating that now. But if you have any comments - please let me
> know
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Mon, 16 Mar 2015 04:20:10 -0700
From: David Whitman <[email protected]>
Subject: Re: [Motion-user] httpd webcontrol is not restarted when
Watchdog triggers graceful restart
To: Motion-Mail-list <[email protected]>
Message-ID:
<caevffsekjprkcjc3o4pgev1xgerqzkfvnwwrbalfh19y5b8...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Motion version 3.2.12
On Mar 16, 2015 1:15 AM, "tosiara" <[email protected]> wrote:
> Hi,
>
> I stared experiencing strange issue which I'm still trying to
> troubleshoot. Just wanted to ask if anyone already seen that behavior?
>
> Mar 14 18:37:03 server motion[5758]: [0] [ERR] [ALL] main: Thread 1 -
> Watchdog timeout, trying to do a graceful restart
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] httpd_run:
> motion-httpd - Finishing
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] httpd_run:
> motion-httpd Closing
> Mar 14 18:37:04 server motion[5758]: [0] [NTC] [STR] motion_web_control:
> motion-httpd thread exit
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [ALL] motion_loop: Thread
> exiting
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [STR] stream_stop: Closing
> motion-stream listen socket & active motion-stream sockets
> Mar 14 18:37:36 server motion[5758]: [1] [NTC] [STR] stream_stop: Closed
> motion-stream listen socket & active motion-stream sockets
> Mar 14 18:37:37 server motion[5758]: [1] [NTC] [EVT] event_extpipe_end:
> CLOSING: extpipe file desc 8, error state 0
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [EVT] event_extpipe_end:
> pclose return: -1
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_handler_loop:
> netcam camera handler: finish set, exiting
> Mar 14 18:37:41 server motion[5758]: [0] [NTC] [ALL] main: Motion thread 1
> restart
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] motion_init: Thread 1
> started , motion detection Enabled
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_start: Network
> Camera thread starting... for url (http://dcs-932l/mjpeg.cgi)
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [NET] netcam_setup_html:
> connected, going on to read image.
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] image_ring_resize:
> Resizing pre_capture buffer to 1 items
> Mar 14 18:37:41 server motion[5758]: [1] [ALR] [NET] netcam_handler_loop:
> Camera handler thread [2] started
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [STR] http_bindsock:
> motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [STR] http_bindsock:
> motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
> Mar 14 18:37:41 server motion[5758]: [1] [NTC] [ALL] motion_init: Started
> motion-stream server in port 8081 auth Disabled
>
> Full log: http://pastebin.com/LKS1hBhJ
> As you can see only stream httpd on port 8081 has been started. The
> web_control on port 8080 is closed and not restarted.
>
> Right before watchdog timeouts there is a suspicious event FPS=1:
>
> Mar 14 18:35:06 server motion[5758]: [1] [NTC] [EVT] event_new_video FPS 1
>
> Probably, netcam (runs @10fps) stops sending images for some time and that
> triggers watchdog. But why web_control is not restarted?
>
> I'm investigating that now. But if you have any comments - please let me
> know
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
------------------------------
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
End of Motion-user Digest, Vol 106, Issue 3
*******************************************