Open thc2018 opened 4 years ago
Those look like messages being generated by the motion process which is only used if you select external motion detection.
Try it with internal motion detection which is the recommended method as it is much more efficient.
If you didn't have external motion selected then check the running processes with cmd ps -A
If motion is in the list then something else is starting it up which should not be happening.
I am using internal motion detection. ps -A | grep motion
gives me a 2 motion processes:
684 ? 00:00:42 motion 691 ? 00:00:42 motion
I have killed process 691. Now, I have 1 motion process running. Every thing works fine, but warnings and errors are still incoming into log files
In internal motion detection mode the software makes no use of the motion process and doesn't start it up. All the motion detection is done internally in the raspimjpeg process.
Did you install anything else that might have started up the motion process.?
No, I did not install anything, that can start motion. Only RPI-Web-Cam. I have killed both motion processes. Every thing fine! No more warning and errors.
I have found an entry in rc-local:
motion start
Check to see that the external motion service is disabled at the system level
sudo systemctl status motion
It should say it’s disabled. The fact that you are seeing the processes suggests that they may be starting at boot.
From: thc2018 [mailto:notifications@github.com] Sent: Thursday, November 21, 2019 12:41 PM To: silvanmelchior/RPi_Cam_Web_Interface Cc: Subscribed Subject: Re: [silvanmelchior/RPi_Cam_Web_Interface] A lot of warning/errors at /var/log/messages etc at Raspberry Pi 2B+ with standart RPI camera (#529)
No, I did not install anything, that can start motion. Only RPI-Web-Cam. I have killed both motion processes. Every thing fine! No more warning and errors.
I have found an entry in rc-local:
motion start
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/silvanmelchior/RPi_Cam_Web_Interface/issues/529?email_source=notifications&email_token=ACROKDPWPL3BCLD36443COLQU3P3FA5CNFSM4JQCJPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3NEFA#issuecomment-557240852 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACROKDO5I22R5A7E23CBQDLQU3P3FANCNFSM4JQCJPVA . https://github.com/notifications/beacon/ACROKDKE5LXLND6KEYFPGBTQU3P3FA5CNFSM4JQCJPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3NEFA.gif
sudo apt-get remove motion solve my problem.
Looks like it’s trying to run. you can try
sudo systemctl disable motion
I would also comment out that “motion start” line in /etc/rc.local. Then reboot and check status again.
From: thc2018 [mailto:notifications@github.com] Sent: Thursday, November 21, 2019 1:11 PM To: silvanmelchior/RPi_Cam_Web_Interface Cc: Fred Pishotta; Comment Subject: Re: [silvanmelchior/RPi_Cam_Web_Interface] A lot of warning/errors at /var/log/messages etc at Raspberry Pi 2B+ with standart RPI camera (#529)
sudo systemctl status motion
● motion.service - LSB: Start Motion detection Loaded: loaded (/etc/init.d/motion; generated; vendor preset: enabled) Active: active (running) since Thu 2019-11-21 23:03:51 MSK; 6min ago Docs: man:systemd-sysv-generator(8) Process: 241 ExecStart=/etc/init.d/motion start (code=exited, status=0/SUCCESS) CGroup: /system.slice/motion.service └─703 /usr/bin/motion
ноя 21 23:09:56 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set. ноя 21 23:09:56 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: leaving netcam connected. ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_first_header: Found Conn: close header ('Connection: close') ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_first_header: Non-streaming camera (keep-alive not set) ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set. ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: leaving netcam connected. ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_first_header: Found Conn: close header ('Connection: close') ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_first_header: Non-streaming camera (keep-alive not set) ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set. ноя 21 23:09:57 raspberrypi motion[703]: [1:nc3] [NTC] [NET] netcam_read_html_jpeg: leaving netcam connected.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/silvanmelchior/RPi_Cam_Web_Interface/issues/529?email_source=notifications&email_token=ACROKDOXXUBRES6GC5NG4K3QU3TMTA5CNFSM4JQCJPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3P6KY#issuecomment-557252395 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACROKDIC6M5GHIAOKDYIGG3QU3TMTANCNFSM4JQCJPVA . https://github.com/notifications/beacon/ACROKDMC724ZQOICATKBWU3QU3TMTA5CNFSM4JQCJPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3P6KY.gif
Thanks to all, solved in my case.
I have found the problem.
Then you are doing a fresh install on raspberry pi, motion also installs on Pi. And during this installation, motion configure rc-local to autostart then Pi is starting (motion enabled)
I'll check that. Raspbian never used to install motion and start it up automatically.
It is possible they have added this but it sounds a bad thing to do.
Good day! RPI-Web-cam interface version 6.6.6 Raspberry Pi standart camera connected to Rpi 2B+, everything works well! But in /var/log files, such as syslog, messages and user.log a lot of warnings. messages:
in syslog:
in user.log:
Why? How can I remove this warnings/errors?