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 276 forks source link

Error manually creating Backup / Restore #10448

Closed zapru closed 2 years ago

zapru commented 2 years ago

Describe the bug Error manually creating Backup / Restore

To Reproduce Steps to reproduce the behavior:

  1. Go to 'setings'
  2. Click on 'Backup / Restore'
  3. Scroll down to 'Backup'
  4. See error

Expected behavior Error manually creating Backup / Restore. When choosing a backup storage location, the inability to search the directory. The error occurred after installing the latest version of Medusa. Error with permission settings?

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2022-03-29 134616 Screenshot 2022-03-29 134645 Screenshot 2022-03-29 134108 Screenshot 2022-03-29 134228

Medusa (please complete the following information):

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

``` <-- Please replace this whole line with your debug logs --> There is no record of that error in the logs

Additional context Add any other context about the problem here. Branch: master Commit: 2105d6e15986db83f7e3557904e246ac3614de7d Version: 0.5.26 Database: 44.19

p0psicles commented 2 years ago

Fixed in develop branch. Will release later today

zapru commented 2 years ago

Still, after the new version, I can't do a manual backup to a specific folder (/ volume1 / Synology DS218play / Medusa). The message is displayed: Error Error while trying to create backup the log record does not show this error

zapru commented 2 years ago

Screenshot 2022-03-29 220245 Screenshot 2022-03-29 220452 Screenshot 2022-03-29 220524 Screenshot 2022-03-29 220148

p0psicles commented 2 years ago

So selecting the folder works right? I assume it does, as I see it in your screenshot. Are there any errors in your browser console? Could you enable debug logging in medusa, restart, and try again? Then check for any logs while trying the backup.

zapru commented 2 years ago

Screenshot 2022-04-01 144003 Screenshot 2022-04-01 144320 Screenshot 2022-04-01 143417 Screenshot 2022-04-01 143500 Screenshot 2022-04-01 143727

2022-04-01 14:25:43 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 14:25:19 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 14:25:19 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 13:48:00 INFO CHECKVERSION :: [15f4e8f] Checking for updates using GitHub Updater 2022-04-01 13:46:01 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 13:45:19 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 13:45:19 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 13:45:13 INFO SEARCHQUEUE-PROPER-SEARCH :: [15f4e8f] Completed the search for new propers, next check in approx. 3h, 59m 2022-04-01 13:45:03 INFO SEARCHQUEUE-PROPER-SEARCH :: [Torrentz2] :: [15f4e8f] Searching for any new PROPER releases from Torrentz2 2022-04-01 13:44:48 INFO SEARCHQUEUE-PROPER-SEARCH :: [Rarbg] :: [15f4e8f] Searching for any new PROPER releases from Rarbg 2022-04-01 13:44:46 INFO SEARCHQUEUE-PROPER-SEARCH :: [Eztv] :: [15f4e8f] Searching for any new PROPER releases from Eztv 2022-04-01 13:44:46 INFO SEARCHQUEUE-PROPER-SEARCH :: [ThePirateBay] :: [15f4e8f] Searching for any new PROPER releases from ThePirateBay 2022-04-01 13:44:37 INFO SEARCHQUEUE-PROPER-SEARCH :: [LimeTorrents] :: [15f4e8f] Searching for any new PROPER releases from LimeTorrents 2022-04-01 13:44:37 INFO SEARCHQUEUE-PROPER-SEARCH :: [15f4e8f] Using proper search days: 2 2022-04-01 13:44:37 INFO SEARCHQUEUE-PROPER-SEARCH :: [15f4e8f] Beginning proper search for new episodes 2022-04-01 13:44:35 INFO FINDPROPERS :: [15f4e8f] Beginning the search for new propers 2022-04-01 13:05:58 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 13:05:20 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 13:05:19 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 12:47:57 INFO CHECKVERSION :: [15f4e8f] Checking for updates using GitHub Updater 2022-04-01 12:26:00 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 12:25:17 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 12:25:16 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 11:47:53 INFO CHECKVERSION :: [15f4e8f] Checking for updates using GitHub Updater 2022-04-01 11:45:40 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 11:45:18 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 11:45:17 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 11:06:05 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] No needed episodes found 2022-04-01 11:05:17 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Using daily search providers 2022-04-01 11:05:17 INFO SEARCHQUEUE-DAILY-SEARCH :: [15f4e8f] Beginning daily search for new episodes 2022-04-01 11:01:27 INFO SHOWQUEUE-REFRESH :: [15f4e8f] Cache check completed 2022-04-01 11:01:27 INFO SHOWQUEUE-REFRESH :: [15f4e8f] 371980: Updating NFOs for show with new indexer info 2022-04-01 11:01:27 INFO SHOWQUEUE-REFRESH :: [15f4e8f] Trying to clean any empty folder under /volume1/TV serije/TV serije NOVO/Severance 2022-04-01 11:01:26 INFO SHOWQUEUE-REFRESH :: [15f4e8f] 371980: Performing refresh on Severance 2022-04-01 10:47:48 INFO CHECKVERSION :: [15f4e8f] Checking for updates using GitHub Updater 2022-04-01 10:44:19 INFO SNATCHQUEUE-SNATCH-371980 :: [15f4e8f] Torrent added as task ['dbid_2414'] to DownloadStation 2022-04-01 10:44:18 INFO SNATCHQUEUE-SNATCH-371980 :: [15f4e8f] Adding "magnet:?xt=urn:btih:b847f1bae52b23b1bc10ce8de0de4fb0a042faf5&dn=Severance.S01E08.WEBRip.x264-

Apology for the explanation with pictures and some text. I'm an amateur, ie a noob :) I'm trying my best to explain the problem. As you can see from the picture, when trying to create a backup, an error occurs, but the backup file is zipped ... ???

p0psicles commented 2 years ago

The logs says nothing about the backup process. Also you don't have debug logging enabled. So enable that first. Reboot medusa after. Then I'd recommend trying to get access to your medusa data folder. And zip your application.log.* logs. And send them. You can contact me on discord and PM me if you'd like.

cheese1 commented 2 years ago

works for me (the backup; did not try restore). i did it with 0.5.27. the backup file is quite large (lots cache-files in it)

zapru commented 2 years ago

The logs says nothing about the backup process. Also you don't have debug logging enabled. So enable that first. Reboot medusa after. Then I'd recommend trying to get access to your medusa data folder. And zip your application.log.* logs. And send them. You can contact me on discord and PM me if you'd like.

Thank you very much for the offer for direct help. I thought I turned on the debug log option in Medusa? I'm sending Medusa logs zip file. Can't find you on Discord Logs.zip ?

p0psicles commented 2 years ago

Could you send a message in the discord general channel? https://discord.gg/p5cFNvmb

p0psicles commented 2 years ago

I don't see any errors in the log. Also you showed that the zip file is created. So this makes me think the web request to backend is just timing out. Which means your backup is succesfully created. So I don't think there is much to worry about.

p0psicles commented 2 years ago

Maybe i've fixed the issue for you in latest develop branch commit. You could try switching to develop. And try it.

p0psicles commented 2 years ago

Introduced new options to disable backing up of cache db and cache files.