pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 277 forks source link

Failed to start following power outage #9787

Closed PaloloWeather closed 3 years ago

PaloloWeather commented 3 years ago

Describe the bug After a power outage caused my DS118 to reboot, the package cannot open with message "Failed to Start." Was working fine just a couple hours ago.

To Reproduce Steps to reproduce the behavior:

  1. Open Package Center
  2. Scroll to Medusa
  3. Click "Repair"
  4. Error message - "Failed to run the package service. Package would not start! See: /var/log/packages/medusa.log"

Expected behavior Medusa should launch.

Screenshots If applicable, add screenshots to help explain your problem.

Medusa (please complete the following information):

Debug logs (at least 50 lines): Can't access medusa logs without launching the package, correct?

Additional context This is what the /var/log/packages/medusa.log shows: 2021/08/12 09:12:43 start medusa 2.0 Begin start-stop-status start PID file: /volume1/@appdata/medusa/medusa.pid already exists. Exiting. 2021/08/12 09:12:58 start medusa 2.0 End start-stop-status start ret=[3] 2021/08/12 09:12:59 (system) trigger medusa 2.0 Begin start-stop-status stop /var/packages/medusa/scripts/start-stop-status: line 66: kill: (2560) - No such process 2021/08/12 09:13:20 (system) trigger medusa 2.0 End start-stop-status stop ret=[0]

p0psicles commented 3 years ago

I think you should remove the pid file

PaloloWeather commented 3 years ago

Please forgive my ignorance, but how do I do that?

p0psicles commented 3 years ago

You'll have to login to your Nas using ssh. Then you'll have to navigate to the pid file location and remove it. rm /volume1/@appdata/medusa/medusa.pid

But maybe there is a better solution? I'm not a Synology user.

@BenjV what would you do here?

BenjV commented 3 years ago

You are correct the pidfile has to be removed it is located here.

/volume1/@appstore/medusa/var/medusa.pid

He has to login to the commandline and remove that file. Enable terminal service and ssh in the control panel. Install putty on your pc and login to the Nas on port 22 with your admin account Give this command:

sudo rm /volume1/@appstore/medusa/var/medusa.pid

Thereafter you should be able to start medusa again. The only alternative would be to remove medusa, reinstall medusa and rollback the latest backup of the database and config.

EDIT: Added sudo to the command example

PaloloWeather commented 3 years ago

Thank you! Those instructions were super helpful. The only thing I had to adjust was to use "sudo rm /volume1/@appdata/medusa/medusa.pid" instead of just "rm" - even logged in as admin I still had "permission denied" initially. Back up and running now. Really appreciate the help!