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. Script on_movie_end does not run after OS update
(Jack Christensen)
2. Re: Script on_movie_end does not run after OS update
(Ronnie McMaster)
3. Re: Script on_movie_end does not run after OS update
(Jack Christensen)
----------------------------------------------------------------------
Message: 1
Date: Mon, 31 Jan 2022 20:18:06 -0500
From: Jack Christensen <[email protected]>
To: [email protected]
Subject: [Motion-user] Script on_movie_end does not run after OS
update
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hello all,
I have three Raspberry Pi Zero W machines with Pi cameras running RasPi
OS Buster Lite. Today I updated the OS (apt update; apt full-upgrade)
and after rebooting, the on__movie_end script no longer executes. This
is a simple bash script that uses rsync to forward the video files to an
archive machine. The script runs fine if I start it manually.
I was running Motion 4.3.2 so I installed 4.4.0 and the problem
persists. I increased the log level to 9 and it appears as though Motion
is executing the script. I find no clues in syslog, auth.log, etc. The
script writes to its own log file and there is no output there so I am
sure it's not actually running.
Any help is appreciated!
Here is part of the Motion log showing the script (allegedly) executing:
[1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:00:33] motion_detected: Motion
detected - starting event 2
[1:ml1:CAM1] [INF] [EVT] [Jan 31 20:00:33] event_ffmpeg_newfile: Source
FPS 4
[1:ml1:CAM1] [INF] [ENC] [Jan 31 20:00:33] ffmpeg_set_quality: libx264
codec vbr/crf/bit_rate: 25
[1:ml1:CAM1] [NTC] [EVT] [Jan 31 20:00:33] event_newfile: Writing movie
to file: /home/jack/motion-output/1-20220131-200032-002.mkv
[1:ml1:CAM1] [INF] [ALL] [Jan 31 20:00:33] mlp_tuning: micro-lightswitch!
[1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] exec_command: Executing
external command '/home/jack/sync.sh
/home/jack/motion-output/1-20220131-200032-002.mkv'
[1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] event_closefile: Saved movie
to file: /home/jack/motion-output/1-20220131-200032-002.mkv
[1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:01:37] mlp_actions: End of event 2
Here are the updates applied today:
Start-Date: 2022-01-31? 08:48:05
Commandline: apt full-upgrade
Requested-By: jack (1000)
Upgrade: libpolkit-gobject-1-0:armhf (0.105-25+rpt1,
0.105-25+rpt1+deb10u1), rpi-eeprom:armhf (13.3-1~buster, 13.5-1~buster),
libpolkit-agent-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
libpolkit-backend-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
policykit-1:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1)
End-Date: 2022-01-31? 08:48:36
--
Jack Christensen
Sent from Linux Mint 20.1 using Mozilla Thunderbird
------------------------------
Message: 2
Date: Mon, 31 Jan 2022 18:28:04 -0700
From: Ronnie McMaster <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Script on_movie_end does not run after OS
update
Message-ID:
<CAA8w+K7k=H=g5x9zu4iaojqsnfzpjqzn2vv7ntslbtfhrqu...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Does the script still work when run manually?
On Mon, Jan 31, 2022 at 6:19 PM Jack Christensen <
[email protected]> wrote:
> Hello all,
>
> I have three Raspberry Pi Zero W machines with Pi cameras running RasPi
> OS Buster Lite. Today I updated the OS (apt update; apt full-upgrade)
> and after rebooting, the on__movie_end script no longer executes. This
> is a simple bash script that uses rsync to forward the video files to an
> archive machine. The script runs fine if I start it manually.
>
> I was running Motion 4.3.2 so I installed 4.4.0 and the problem
> persists. I increased the log level to 9 and it appears as though Motion
> is executing the script. I find no clues in syslog, auth.log, etc. The
> script writes to its own log file and there is no output there so I am
> sure it's not actually running.
>
> Any help is appreciated!
>
> Here is part of the Motion log showing the script (allegedly) executing:
>
> [1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:00:33] motion_detected: Motion
> detected - starting event 2
> [1:ml1:CAM1] [INF] [EVT] [Jan 31 20:00:33] event_ffmpeg_newfile: Source
> FPS 4
> [1:ml1:CAM1] [INF] [ENC] [Jan 31 20:00:33] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM1] [NTC] [EVT] [Jan 31 20:00:33] event_newfile: Writing movie
> to file: /home/jack/motion-output/1-20220131-200032-002.mkv
> [1:ml1:CAM1] [INF] [ALL] [Jan 31 20:00:33] mlp_tuning: micro-lightswitch!
> [1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/1-20220131-200032-002.mkv'
> [1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] event_closefile: Saved movie
> to file: /home/jack/motion-output/1-20220131-200032-002.mkv
> [1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:01:37] mlp_actions: End of event 2
>
> Here are the updates applied today:
>
> Start-Date: 2022-01-31 08:48:05
> Commandline: apt full-upgrade
> Requested-By: jack (1000)
> Upgrade: libpolkit-gobject-1-0:armhf (0.105-25+rpt1,
> 0.105-25+rpt1+deb10u1), rpi-eeprom:armhf (13.3-1~buster, 13.5-1~buster),
> libpolkit-agent-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
> libpolkit-backend-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
> policykit-1:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1)
> End-Date: 2022-01-31 08:48:36
>
> --
> Jack Christensen
> Sent from Linux Mint 20.1 using Mozilla Thunderbird
>
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Mon, 31 Jan 2022 20:31:31 -0500
From: Jack Christensen <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Script on_movie_end does not run after OS
update
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Yes, just fine.
On 1/31/22 20:28, Ronnie McMaster wrote:
> Does the script still work when run manually?
>
> On Mon, Jan 31, 2022 at 6:19 PM Jack Christensen
> <[email protected]> wrote:
>
> Hello all,
>
> I have three Raspberry Pi Zero W machines with Pi cameras running
> RasPi
> OS Buster Lite. Today I updated the OS (apt update; apt full-upgrade)
> and after rebooting, the on__movie_end script no longer executes.
> This
> is a simple bash script that uses rsync to forward the video files
> to an
> archive machine. The script runs fine if I start it manually.
>
> I was running Motion 4.3.2 so I installed 4.4.0 and the problem
> persists. I increased the log level to 9 and it appears as though
> Motion
> is executing the script. I find no clues in syslog, auth.log, etc.
> The
> script writes to its own log file and there is no output there so
> I am
> sure it's not actually running.
>
> Any help is appreciated!
>
> Here is part of the Motion log showing the script (allegedly)
> executing:
>
> [1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:00:33] motion_detected: Motion
> detected - starting event 2
> [1:ml1:CAM1] [INF] [EVT] [Jan 31 20:00:33] event_ffmpeg_newfile:
> Source
> FPS 4
> [1:ml1:CAM1] [INF] [ENC] [Jan 31 20:00:33] ffmpeg_set_quality:
> libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM1] [NTC] [EVT] [Jan 31 20:00:33] event_newfile: Writing
> movie
> to file: /home/jack/motion-output/1-20220131-200032-002.mkv
> [1:ml1:CAM1] [INF] [ALL] [Jan 31 20:00:33] mlp_tuning:
> micro-lightswitch!
> [1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/1-20220131-200032-002.mkv'
> [1:ml1:CAM1] [DBG] [EVT] [Jan 31 20:01:37] event_closefile: Saved
> movie
> to file: /home/jack/motion-output/1-20220131-200032-002.mkv
> [1:ml1:CAM1] [NTC] [ALL] [Jan 31 20:01:37] mlp_actions: End of event 2
>
> Here are the updates applied today:
>
> Start-Date: 2022-01-31? 08:48:05
> Commandline: apt full-upgrade
> Requested-By: jack (1000)
> Upgrade: libpolkit-gobject-1-0:armhf (0.105-25+rpt1,
> 0.105-25+rpt1+deb10u1), rpi-eeprom:armhf (13.3-1~buster,
> 13.5-1~buster),
> libpolkit-agent-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
> libpolkit-backend-1-0:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1),
> policykit-1:armhf (0.105-25+rpt1, 0.105-25+rpt1+deb10u1)
> End-Date: 2022-01-31? 08:48:36
>
> --
> Jack Christensen
> Sent from Linux Mint 20.1 using Mozilla Thunderbird
>
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 188, Issue 1
*******************************************