Motion-Project / motion

Motion, a software motion detector. Home page: https://motion-project.github.io/
GNU General Public License v2.0
3.69k stars 550 forks source link

Debian 11.10 - motion init script fails to create /var/run/motion #1813

Closed nona00 closed 2 months ago

nona00 commented 2 months ago

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.3.x

What was the install method?

Installed via package tool

What is base architecture?

ARM-64bit

What is the distro being used?

Raspbian

Disto version number

debian 11.10

Camera type(s) being used?

v4l2 USB camera

Describe the issue/problem and steps to reproduce

when starting motion it fails to create /var/run/motion

Motion log output at log_level 8

Sep  4 16:37:44 pi motion[361]: [0:motion] [NTC] [ALL] become_daemon: Motion going to daemon mode
Sep  4 16:37:44 pi motion[481]: [0:motion] [ERR] [ALL] create_path: Problem creating directory /var/run/motion: Permission denied
Sep  4 16:37:44 pi motion[481]: [0:motion] [EMG] [ALL] become_daemon: Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid: Permission denied
Mr-Dave commented 2 months ago

This is a permissions issue outside of the Motion application.