Article 5S8YD motion install on raspberry pi Raspberry Pi Model B Rev 2: logging issue; howto solve?

motion install on raspberry pi Raspberry Pi Model B Rev 2: logging issue; howto solve?

by
floppy_stuttgart
from LinuxQuestions.org on (#5S8YD)
Hello,
since my raspberry SD boot card was dead, I am reinstalling raspbian on it for making running the home observation video again.
So far achieved:
- raspberry reachable via ssh
- motion installed

uname -r
Code:5.10.63+parameter in /etc/motion/motion.conf
..
log_file /var/log/motion/motion.log
..

now..
sudo service motion restart
Code:Message from syslogd@raspcamera at Nov 23 21:29:02 ...
motion[928]: [0:motion] [EMG] [ALL] motion_startup: Exit motion, cannot create log file /var/log/motion/motion.log: Permission denied

Broadcast message from systemd-journald@raspcamera (Tue 2021-11-23 21:29:02 CET):

motion[928]: [0:motion] [EMG] [ALL] motion_startup: Exit motion, cannot create log file /var/log/motion/motion.log: Permission deniedfollowing did not help:
(file created with
sudo mkdir motion
sudo chown root:motion motion
sudo touch /var/log/motion/motion.log
sudo chown root:motion /var/log/motion/motion.log
)

sudo chmod 666 /var/log/motion/motion.log
sudo ls -l /var/log/motion/motion.log

Code:-rw-rw-rw- 1 root motion 0 23. Nov 21:19 /var/log/motion/motion.logAny suggestion/advice/comment is welcome.latest?d=yIl2AUoC8zA latest?i=VoCWgeNMjWM:sGFBR4DO7RI:F7zBnMy latest?i=VoCWgeNMjWM:sGFBR4DO7RI:V_sGLiP latest?d=qj6IDK7rITs latest?i=VoCWgeNMjWM:sGFBR4DO7RI:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments