motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

motioneye service doesn't work

Open linoreale opened this issue 7 years ago • 3 comments

Hello, I've installed motioneye on a Debian 9.5 machine using the manual installation described in this page: https://github.com/ccrisan/motioneye/wiki/Manual-Download-And-Installation and using the command meyectl startserver -c /etc/motioneye/motioneye.conf it works fine. Now I would install motioneye as a service, so I tried the instruction on point 7 here: https://github.com/ccrisan/motioneye/wiki/Install-On-Debian but it doesn't start, and the result is this:

root@debian:/etc/motioneye# systemctl status motioneye ● motioneye.service - motionEye Server Loaded: loaded (/etc/systemd/system/motioneye.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2018-07-20 10:50:31 CEST; 23min ago Process: 1487 ExecStart=/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.c Main PID: 1487 (code=exited, status=203/EXEC) lug 20 10:50:31 debian systemd[1]: Started motionEye Server. lug 20 10:50:31 debian systemd[1]: motioneye.service: Main process exited, code=exited, status=203/EXEC lug 20 10:50:31 debian systemd[1]: motioneye.service: Unit entered failed state. lug 20 10:50:31 debian systemd[1]: motioneye.service: Failed with result 'exit-code'.

What could be the problem? Thank you very much and regards

linoreale avatar Jul 20 '18 07:07 linoreale

I'm experiencing a similar problem, albeit on Raspbian.

I think the problem lies in the fact that when installed, the command meyectl does not exist within the directory /usr/local/bin. Instead, in my case, it's in /home/pi/.local/bin/meyectl. For some reason, instead of putting things in /usr/, Raspbian puts it in the user's home folder in /.local.

If you run sudo find / -name meyectl, what do you get back?

nerdenator avatar Sep 01 '18 04:09 nerdenator

I think you both have not executed the command pip install motioneye as root. Please try again with sudo pip install motioneye

dixi83 avatar Sep 02 '18 20:09 dixi83

That helped me create the missing file.

The instructions on this page, item 4, do not mention sudo Install on Debian 11 (Buster)

InTEGr8or avatar Aug 20 '23 19:08 InTEGr8or