Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Medusa Daemon #8908

Closed
henmad opened this issue Dec 22, 2020 · 5 comments
Closed

Unable to start Medusa Daemon #8908

henmad opened this issue Dec 22, 2020 · 5 comments

Comments

@henmad
Copy link

henmad commented Dec 22, 2020

Describe the bug
Medusa Daemon does not start on reboot of raspbian, nor on manual restart with systemctl. The sytem reports failed to start and code=exited, status=1/Failure.

Likely occured after a recent update. I have not touched the system except for updating Medusa.

See snip from terminal here:

pi@raspberrypi3:~ $ systemctl status medusa.service
● medusa.service - Medusa Daemon
Loaded: loaded (/etc/systemd/system/medusa.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-12-22 10:13:45 CET; 1min 18s ago
Process: 666 ExecStart=/usr/bin/python2.7 /opt/medusa/start.py -q --nolaunch --datadir=/opt/medusa (code=exited, status=1/FAILURE)
Main PID: 666 (code=exited, status=1/FAILURE)

Dec 22 10:13:44 raspberrypi3 systemd[1]: medusa.service: Failed with result 'exit-code'.
Dec 22 10:13:45 raspberrypi3 systemd[1]: medusa.service: Service hold-off time over, scheduling restart.
Dec 22 10:13:45 raspberrypi3 systemd[1]: Stopped Medusa Daemon.
Dec 22 10:13:45 raspberrypi3 systemd[1]: medusa.service: Start request repeated too quickly.
Dec 22 10:13:45 raspberrypi3 systemd[1]: Failed to start Medusa Daemon.
Dec 22 10:13:45 raspberrypi3 systemd[1]: medusa.service: Unit entered failed state.
Dec 22 10:13:45 raspberrypi3 systemd[1]: medusa.service: Failed with result 'exit-code'.
pi@raspberrypi3:~ $ ^C
pi@raspberrypi3:~ $ /usr/bin/python2.7 /opt/medusa/start.py -q --nolaunch --datadir=/opt/medusa
Traceback (most recent call last):
File "/opt/medusa/start.py", line 6, in
from medusa.main import main
File "/opt/medusa/medusa/init.py", line 24, in
initialize()
File "/opt/medusa/medusa/init/init.py", line 23, in initialize
_monkey_patch_fs_functions()
File "/opt/medusa/medusa/init/init.py", line 94, in _monkey_patch_fs_functions
from medusa.init import filesystem
File "/opt/medusa/medusa/init/filesystem.py", line 12, in
from builtins import map
ImportError: No module named builtins
pi@raspberrypi3:~ $

@medariox
Copy link
Contributor

Python 2.7 is not supported anymore. Check the wiki for help on how to update to Python 3.

@thumDer
Copy link

thumDer commented Jan 3, 2021

Same issue here. I have both python and python3 installed on my synology, but medusa wants to use python 2.7 which is not supported anymore. how can I make medusa to use python 3 if its available?

@medariox
Copy link
Contributor

medariox commented Jan 3, 2021

There is a new Synology package linked in the wiki that uses Python 3.

@thumDer
Copy link

thumDer commented Jan 3, 2021

great, thank you!

@thumDer
Copy link

thumDer commented Jan 3, 2021

Since I cannot start medusa anymore, and can't make a backup I didn't want to uninstall the existing version and install a new package. After some googling I was able to make medusa use python3 with the following method, if anyone is interested:
https://www.reddit.com/r/synology/comments/ienn8l/replacing_python_package_for_medusa/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants