[SOLVED] motion install on raspberry pi Raspberry Pi Model B Rev 2: logging issue; howto solve?
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
motion install on raspberry pi Raspberry Pi Model B Rev 2: logging issue; howto solve?
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
..
following 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.log
Any suggestion/advice/comment is welcome.
Last edited by floppy_stuttgart; 11-23-2021 at 03:44 PM.
Just looking at the error, something is wrong with the permissions. The 'sudo' should overcome it, but obviously is not doing it. The first thing I'd try is
Depending on how your distro handles the /tmp that has the possibility of disappearing on reboot, if it cleans the /tmp by default. Since you mention Pi that is most likely Debian based and that definitely cleans it, I always put my temporary stuff there I care little about sticking around on the system if I forget to delete them, just so they will be deleted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.