Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    start motion with pm2

    Troubleshooting
    2
    2
    489
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      costascontis last edited by

      trying to start motion with pm2 so i can have continue motion detection to my mirror.Pm2 allready starts and watches my mm.So i disabled motion running as deamon from motion.conf and default/motion file and i can start it manually by sudo motion .I kill it and trying to pm2 start motion and i get many errors like this:

      motion[14421]: [0:motion] [EMG] [ALL] motion_startup: Exit motion, cannot create log file /var/log/motion/motion.log: Permission denied
      

      what iam i doing wrong?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @costascontis last edited by sdetweil

        @costascontis motion is trying to write it’s log to /var/log, which requires root authority. I think u can change this in motion.conf

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy