(Fixed!) Medusa won't run after latest update

Required Information

  • DietPi version | 8.5.1
  • Distro version | Buster
  • Kernel version | Linux DietpiVM 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
  • SBC model | VM or (EG: RPi3)

Additional Information (if applicable)

  • Software title | (Medusa)
  • Was the software title installed freshly or updated/migrated? Updated, previously running
  • Can this issue be replicated on a fresh installation of DietPi? Not sure

Steps to reproduce

  1. Not sure, Just updated to latest version and now get failure on app launch
  2. I have tried reinstalling Medusa through dietpi-software reinstall 116

Actual behaviour

  • Failing to start Medusa Daemon, even after successfull dietpi-software reinstall 116

Extra details

root@DietpiVM:~# systemctl status medusa.service
● medusa.service - Medusa Daemon
   Loaded: loaded (/etc/systemd/system/medusa.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2022-06-08 19:14:26 BST; 13s ago
  Process: 10964 ExecStart=/usr/bin/python3 /mnt/dietpi_userdata/medusa/start.py -q --nolaunch --datadir=/mnt/dietpi_use
rdata/medusa (code=exited, status=1/FAILURE)
 Main PID: 10964 (code=exited, status=1/FAILURE)

jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Main process exited, code=exited, status=1/
FAILURE
jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Failed with result 'exit-code'.
jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Service RestartSec=100ms expired, scheduling restart.
jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Scheduled restart job, restart counter is at 3.
jun 08 19:14:26 DietpiVM systemd[1]: Stopped Medusa Daemon.
jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Start request repeated too quickly.
jun 08 19:14:26 DietpiVM systemd[1]: medusa.service: Failed with result 'exit-code'.
jun 08 19:14:26 DietpiVM systemd[1]: Failed to start Medusa Daemon.

I also tried running the command manually and get this error:

root@DietpiVM:/mnt/dietpi_userdata/medusa# /usr/bin/python3 /mnt/dietpi_userdata/medusa/start.py -q --nolaunch --datadir=/mnt/dietpi_userdata/medusa/

Traceback (most recent call last):
  File "/mnt/dietpi_userdata/medusa/start.py", line 6, in <module>
    from medusa.__main__ import main
  File "/mnt/dietpi_userdata/medusa/medusa/__init__.py", line 24, in <module>
    initialize()
  File "/mnt/dietpi_userdata/medusa/medusa/init/__init__.py", line 37, in initialize
    _configure_guessit()
  File "/mnt/dietpi_userdata/medusa/medusa/init/__init__.py", line 202, in _configure_guessit
    from medusa.name_parser.guessit_parser import (
  File "/mnt/dietpi_userdata/medusa/medusa/name_parser/guessit_parser.py", line 12, in <module>
    from medusa.logger.adapters.style import BraceAdapter
  File "/mnt/dietpi_userdata/medusa/medusa/logger/__init__.py", line 44, in <module>
    import knowit
  File "/mnt/dietpi_userdata/medusa/ext/knowit/__init__.py", line 19, in <module>
    from knowit.api import KnowitException, know
  File "/mnt/dietpi_userdata/medusa/ext/knowit/api.py", line 7, in <module>
    from knowit.provider import Provider
  File "/mnt/dietpi_userdata/medusa/ext/knowit/provider.py", line 8, in <module>
    from knowit.properties import Quantity
  File "/mnt/dietpi_userdata/medusa/ext/knowit/properties/__init__.py", line 18, in <module>
    from knowit.properties.video import (
ImportError: cannot import name 'VideoDimensions' from 'knowit.properties.video' (/mnt/dietpi_userdata/medusa/ext/knowit/properties/video/__init__.py)
root@DietpiVM:/mnt/dietpi_userdata/medusa#

EDIT:
Alright, so after posting I found this thread Medusa just stopped working last night - something change? that led me to this thread Error running 1.0.1 · Issue #10694 · pymedusa/Medusa · GitHub where I found the fix for the issue, seems to be working ok now.

1 Like

Let me answer on this topic to be able to mark it as solved :rofl:

1 Like