Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
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 motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: configuration files (Richard Bown) 2. motion crashing - maybe permissions and installation (Stewart Andreason) 3. Re: motion crashing - maybe permissions and installation (Harlan Daneker) ---------------------------------------------------------------------- Message: 1 Date: Mon, 08 Apr 2024 13:23:37 +0100 From: Richard Bown <rich...@g8jvm.com> To: Roman Iwanoff?? <r_iwan...@mail.ru>, Roman Iwanoff?? via Motion-user <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] configuration files Message-ID: <ffc4ded3-155c-44a6-9878-37174c7d8...@g8jvm.com> Content-Type: text/plain; charset="utf-8" Then looking at the log file is your friend, it will tell you exactly why Set logging to 8 in your systemd startup file for motion ?Get BlueMail for Android ? On 8 Apr 2024, 11:22, at 11:22, "Roman Iwanoff?? via Motion-user" <motion-user@lists.sourceforge.net> wrote: > >Let me explain a little: video files are saved in any case. As when >starting the Service, and from a regular user 1000 from the Terminal. >But the Script is launched only from the Terminal, and is not launched >as a ?Service?. >For example, I run: "on_movie_start /usr/bin/gedit". The text editor >should launch. It can be launched either from User ?root? or from User >1000. >But, when you start the Service, nothing happens, but from the >Terminal, everything works. Config-file is the same in both cases. >? >sudo systemctl status motion - does not give any errors. >>???????????, 8 ?????? 2024, 12:45 +03:00 ?? Richard Bown ><rich...@g8jvm.com>: >>? >>? Sorry I posted this? and it went to the wrong person, so try again >>Also >>try running systemctl restart motion , then systemctl status motion,? >That needs to be run as superuser, root etc. >>if that looks normal set the log level to 8 and using tail -f >/var/log/motion/motion.log? ( or wherever you have the logfile) >>watch what happens on an event that triggers . >>It could be when you start motion -c you are not in the same user >group or the same user as starting it from systemd, or motion does not >have permission to write the video >>file . On all my video storage directories I set the group to motion, >or the user that runs it, or the group that user is in.rite the file is >required The logfile? will show if permission to w >>If this is the case you will see in the log real time what is >happening. >>HTH Richard >>? >>? >>On 08/04/2024 09:16, Roman Iwanoff?? via Motion-user wrote: >>>Hello! >>>When running Motion as a Service "systemd" (sudo systemctl start >motion ?> motion.service), the events "on_area_detected, >on_event_start, on_motion_detected, on_movie_start" from "config-file" >do not fire. >>>When running Motion from the terminal (motion -c >/etc/motion/motion.conf) these events are fired. >>>With what it can be connected? >>>? >>>? ?????????, ? Iwanoff?? !!! ? >>>_______________________________________________ >>>Motion-user mailing list >>>Motion-user@lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/motion-user >>>https://motion-project.github.io/ >>> >>>Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user >>-- >> Best wishes /73 >> Richard Bown >> >> Email : rich...@g8jvm.com >> >> HTTP : https://www.g8jvm.com >> >> >############################################################################## >> >> Ham Call: G8JVM . QRV: HF + 50-432 MHz + Microwave >> Maidenhead QRA: IO82SP38, LAT. 52.6620 N LONG. 2.4696 W >> VHF: 6mtrs 200W, 4mtrs 150W, 2mtrs 300W, 70cms 200W, >> Microwave: 1296MHz 90W, 2320MHz 10W, 3400MHz 15W, 5760MHz 10W & >10368MHz 5W >> OS: Linux Mint 20.3 Victoria, on a Dell Inspiron 3580 laptop >> >############################################################################## >>_______________________________________________ >>Motion-user mailing list >>Motion-user@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/motion-user >>https://motion-project.github.io/ >> >>Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user >? >? >? ?????????, ? Iwanoff?? !!! >? > >------------------------------------------------------------------------ > > > >------------------------------------------------------------------------ > >_______________________________________________ >Motion-user mailing list >Motion-user@lists.sourceforge.net >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: 2 Date: Mon, 8 Apr 2024 12:29:29 -0700 From: Stewart Andreason <sandrea...@gmail.com> To: Motion-user <Motion-user@lists.sourceforge.net> Subject: [Motion-user] motion crashing - maybe permissions and installation Message-ID: <286ab006-720a-425e-b2d2-33026c61e...@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Hi, I'm setting up a new computer, compiled motion, did the sudo make install When I tried starting it, I got permission errors, so had to create /var/log/motion myself, chown and chmod it. Thought I was ready to exit testing since one rtsp netcam was working, but when I tried to sudo systemctl start motion or service motion start I discovered some files were not installed, specifically: /etc/init.d/motion and /etc/default/motion So first, Did I miss a step somewhere in installation? Looking at the users guide, I can't see anything about this. I can copy those files from existing installations, but I still wonder what else is missing. Second, just running as user, and upping the load to 4 cameras, I am getting it to crash within seconds of starting, so upped the log level to 9 and I do have a consistent crash point. [5:av5:211_Hiseeu_] [INF] [NET] [Apr 08 12:15:23] netcam_init_swdecoder: norm: Initializing decoder [5:av5:211_Hiseeu_] [INF] [NET] [Apr 08 12:15:23] netcam_rtsp_open_codec: norm: Decoder opened [5:nc5:211_Hiseeu_] [INF] [ENC] [Apr 08 12:15:23] ffmpeg_avcodec_log: Doing slow software conversion I can make the full log available, but I want to install gdb first and see if I can learn more. Thanks, Stewart ------------------------------ Message: 3 Date: Mon, 8 Apr 2024 15:41:58 -0400 From: Harlan Daneker <hdane...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] motion crashing - maybe permissions and installation Message-ID: <cac1wkitv1hat1ycfhozeak+mqiz5vdb3cafgyn4+dgvwcv-...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" What Linux version? I believe it's sudo systemctl start motion.service On Mon, Apr 8, 2024 at 3:31?PM Stewart Andreason <sandrea...@gmail.com> wrote: > Hi, > > I'm setting up a new computer, compiled motion, did the sudo make install > > When I tried starting it, I got permission errors, so had to create > /var/log/motion myself, chown and chmod it. Thought I was ready to exit > testing since one rtsp netcam was working, but when I tried to > > sudo systemctl start motion > > or service motion start > > I discovered some files were not installed, specifically: > /etc/init.d/motion and /etc/default/motion > > So first, Did I miss a step somewhere in installation? > > Looking at the users guide, I can't see anything about this. > > I can copy those files from existing installations, but I still wonder > what else is missing. > > > Second, just running as user, and upping the load to 4 cameras, I am > getting it to crash within seconds of starting, so upped the log level > to 9 and I do have a consistent crash point. > > [5:av5:211_Hiseeu_] [INF] [NET] [Apr 08 12:15:23] netcam_init_swdecoder: > norm: Initializing decoder > [5:av5:211_Hiseeu_] [INF] [NET] [Apr 08 12:15:23] > netcam_rtsp_open_codec: norm: Decoder opened > [5:nc5:211_Hiseeu_] [INF] [ENC] [Apr 08 12:15:23] ffmpeg_avcodec_log: > Doing slow software conversion > > I can make the full log available, but I want to install gdb first and > see if I can learn more. > > > Thanks, > > Stewart > > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > 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 Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 212, Issue 9 *******************************************