-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Medusa broken after update #4116
Comments
Many thanks for your report. I just did a test install on Raspbian Buster, where it works fine. Which hardware/SBC, DietPi version and Debian version are you using? And please paste the output of |
In my case:
So either my version is different or your file has somehow been corrupted. In my case I cannot fine " Here is the file on GitHub to compare: https://github.com/pymedusa/Medusa/blob/master/ext/dogpile/cache/region.py EDIT: So a quick fix, if only this file got somehow broken, would be
|
cat /mnt/dietpi_userdata/medusa/Logs/application.log resulted in: DietPi v6.34.3 : 20:57 - Tue 16/02/21 According to the main screen when you ssh in, no idea what version of medusa is installed...but since I uninstalled it via dietpi_software and then rebooted, then reinstalled (and rebooted again) as part of my trouble shooting I would say it must be on the latest version? now trying the fix mentioned |
Okay yes then it's the latest version. Debian is Buster? |
^ above is the ls for the medusa folder....lack of log folder bad? echo $G_DISTRO_NAME results in:
Should above have resulted in Debian or Buster? instead of Stretch?
|
I cant help thinking t vdb should be tvdb though I have not edited any of these files.
I do not know Nano well enough to search for t vdb (EDIT ctrl+w .... but t vdb is not found)....looking into that now.Thing is this has been working for months with no issue...ok medusa said it was behind 300 odd commits, but it worked... today i decided to tell diet pi to update everything and ..well... blam :( |
Ah okay, Stretch will be the reason. The newest Medusa version requires Python 3.6 or higher: https://github.com/pymedusa/Medusa#dependencies So we need to remove the Medusa install option for Debian Stretch, sadly. Not the first software that started to require Python 3.6 or higher. If you find time, I recommend the flash our latest image based on Debian Buster, which basically means two years newer APT packages 😉. But a quicker fix is to use an older Medusa version. Let's see which one is still Python 3.5 compatible: https://github.com/pymedusa/Medusa/releases |
I am at work at the minute is there a way to upgrade from stretch to buster via ssh? (and more importantly keep my current settings, i remember vaguely setting everything up was a real pain) if not, how do I tell the installer to install an older version? |
even if it is not officially supported, you could have a look to following link if you consider to upgrade to buster https://dietpi.com/phpbb/viewtopic.php?p=18988#p18988 |
v0.5.0 dropped Python 2 support and at least with that release in the readme file, the min Python 3 version has been incremented as well. So it the last version for Stretch would be: https://github.com/pymedusa/Medusa/archive/v.0.4.6.tar.gz Downgrading Medusa would hence be (since you already uninstalled it, you don't have important Medusa settings that need to be preserved, right?):
Upgrading Python 3 on Stretch is possible of course as well. However, those packages you found are three years old and possibly miss important security patches. I would then suggest instead to compile Python 3 manually: https://tecadmin.net/how-to-install-python-3-9-on-debian-9/ When instead upgrading Debian, note the following:
I.e. in your case of PINE64, there is
If When flashing a new image, yes migrating data and config, respectively setting up the system again might take time. I personally write shell scripts for all files I create or alter on a new image, or other customisations I do. I started to put some of them to GitHub, so I can easily download and execute them on any more system 🙂: https://github.com/MichaIng/hacks |
Ah lol, we found that issue and disabled Medusa on Debian Stretch already for the upcoming DietPi release 😄: #3991 |
currently going the upgrade route, though if you have clarity on the definition of "risky" that may help lol Have just been going through the sources when i noticed apt update showed some set to stretch (jellyfin and armbian) Had an issue with emby which i no longer use wanting to be uninstalled but seemed to have flushed that. Good that its a quiet night at work lol I did uninstall and re-install but i am rather hopeful that was the program not the settings i removed, the two should be seperate in any good application....guess i will find out soon gulp |
I cannot guarantee for anything 😄, but Debian distribution upgrades have become indeed smoother than it was a few versions ago. I remember Wheezy => Jessie that time and it broke quite much, took maybe longer to get that running than starting with a fresh Jessie image. But Jessie => Stretch was much better already. There are some dietpi-software options that might need to be reinstalled. What else do you have installed aside of Medusa?
|
according t grep ' =2 ' /boot/dietpi/.installed ....nothing |
Whoops, wrong command:
or
but the latter shows the IDs only, not the names. |
id 41 | =2 | emby server: web interface media streaming server | | https://dietpi.com/phpbb/viewtopic.php?p=1789#p1789 The emby one is a tad strange as that is uninstalled O.o stil going through the update...to be clear...risky does not mean chance of device catching fire? |
no physical damage is expected, but logical issues on the software side could happen. Always a chance for Murphy being around the corner 😉 https://en.wikipedia.org/wiki/Murphy%27s_law |
damn that murphy! On the plus side I think i got away without needing to buy a sd card reader and waiting till I am home to redo the sd card (good job too as i remember it being a right pain last time) |
ok lucky you 😃 I guess we can close this one as you are back online with Medusa, right? |
EDIT: Lol when writing too long so that the post becomes obsolete 😄. Great that it worked well. Due to the large version jumps it is not guaranteed that the new package version work with the old configs, e.g. So when some service fails to start, it might be due to invalid config entry. Worse would be incompatibility with existing database of such. And of course compiled software might depend on specific library versions from Stretch and deny to start on Buster, where libraries have been upgraded. But yes worst that can happen is a longer debug session, checking service logs etc. 😉. Ah the long upgrade process might also fails in the middle somewhere, e.g. due to full disk or memory or as many package installs imply a service start, which might fail as above. So then service starts need to be fixed before the upgrade can be finished. Can be all nasty but the hardware won't care. |
Yep this can now be clossed. Thank you guys for the help, greatly appreciated. Was more than a little out of my element there lol. |
Your software list as well requires no reinstall, all fine. Jellyfin might have gotten a package upgrade when you changed the repository list file with the sed command mentioned above. If you don't use Emby: |
Reply I also just learnt that if medusa is going through your folders adding tv shows automagically..... dietpi-software uninstall 41 is a bad idea as it closes medusa, shouldnt cause any issues though crosses fingers I should of thought that one through tbh, i know when you install or remove something it closes all processes |
yep, usually |
Hmm, actually on uninstalls this is not required. On installs it makes sense, as they may contain RAM-intense or CPU-intense operations, but uninstalls should not require a service stop. The ones that are uninstalled are stopped as first part of the uninstall step anyway 🤔. I'll see if we can change that with upcoming release. |
Did a sudo apt upgrade today as advised on the main screen of dietpi but Medusa wont load.
if I do "journalctl -u medusa" I see a lot of this error...no idea where region.py is (its not in /mnt/dietpi_userdata/medusa/medusa/ where I would of expected to see it)
ERROR:stevedore.extension:Could not load 't vdb': invalid syntax (region.py, line 404)
"sudo systemctl status medusa.service" shows :
` medusa.service - Medusa Daemon
Loaded: loaded (/etc/systemd/system/medusa.service; disabled; vendor preset:
enabled)
Active: active (running) since Tue 2021-02-16 19:39:29 GMT; 2s ago
Main PID: 1905 (python3)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/medusa.service
└─1905 /usr/bin/python3 /mnt/dietpi_userdata/medusa/start.py -q --nol
aunch --datadir=/mnt/dietpi_userdata/medusa
Feb 16 19:39:29 DietPi systemd[1]: Started Medusa Daemon.
`
but this is a lie..... i can not access the webpage for it at all.
I have tried uninstalling and reinstalling it but to no avail.
Google searches have shown some tips ...hence the cat and status above but noting seems to have worked...completly out of my depth now
The text was updated successfully, but these errors were encountered: