motioneye does not start

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
alasso
Posts: 1
Joined: Sun May 03, 2020 11:47 pm

motioneye does not start

Post by alasso »

Hi,

I am creating a new motioneye installation.
I installed dietpi and then installed motioneye but does not start.

The error is:

Code: Select all

 motioneye.service - motionEye Server
   Loaded: loaded (/etc/systemd/system/motioneye.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-05-03 18:45:24 -03; 3s ago
  Process: 2355 ExecStart=/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf (code=exited, status=1/FAILURE)
 Main PID: 2355 (code=exited, status=1/FAILURE)

May 03 18:45:23 DietPi meyectl[2355]:     from tornado.log import app_log
May 03 18:45:23 DietPi meyectl[2355]:   File "/usr/local/lib/python2.7/dist-packages/tornado/log.py", line 36, in <module>
May 03 18:45:23 DietPi meyectl[2355]:     from tornado.escape import _unicode
May 03 18:45:23 DietPi meyectl[2355]:   File "/usr/local/lib/python2.7/dist-packages/tornado/escape.py", line 27, in <module>
May 03 18:45:23 DietPi meyectl[2355]:     from tornado.util import PY3, unicode_type, basestring_type
May 03 18:45:23 DietPi meyectl[2355]:   File "/usr/local/lib/python2.7/dist-packages/tornado/util.py", line 32, in <module>
May 03 18:45:23 DietPi meyectl[2355]:     from inspect import getargspec
May 03 18:45:23 DietPi meyectl[2355]: ValueError: bad marshal data (unknown type code)
May 03 18:45:24 DietPi systemd[1]: motioneye.service: Main process exited, code=exited, status=1/FAILURE
May 03 18:45:24 DietPi systemd[1]: motioneye.service: Failed with result 'exit-code'.
Any help will be appreciated
adrian
User avatar
Joulinar
Posts: 2081
Joined: Sat Nov 16, 2019 12:49 am

Re: motioneye does not start

Post by Joulinar »

Hi,

many thanks for your report. If you get that error, the compiled version of a Python module (the .pyc file) is corrupt probably. Might be the Tornado module according your error message. It would be needed to delete the corrupt .pyc file.

First I would recommend to create a full backup if your SD card. In case needed, you would be able to restore. Once done you can do following to delete .pyc files and force re-installation

Code: Select all

find /usr/local/lib/python2.7/dist-packages/tornado -name '*.pyc' -delete
pip install --upgrade --force-reinstall tornado
restart your system afterwards
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply