rfsbraz / deleterr

Deleterr is a Python script designed to help you manage available disk space in your Plex media server.
MIT License
147 stars 6 forks source link

Unable to Launch #35

Closed elit3ge closed 7 months ago

elit3ge commented 1 year ago

Filled out all the settings, however, I am shown this error.

image

rfsbraz commented 1 year ago

Can you show me your settings please? Make sure to redact personal info.

elit3ge commented 1 year ago
# Plex connection details
plex:
  url: "http://10.xxx.245:32400"  # Replace with your Plex server URL
  token: "xxx"  # Replace with your Plex server token

# Sonarr connection details. You can add multiple instances.
sonarr:
  - name: "Sonarr"  # This is an identifier for your Sonarr instance
    url: "https://sonarrp.xxx"  # Replace with your Sonarr server URL
    api_key: "xxx"  # Replace with your Sonarr API key

# Tautulli connection details
tautulli:
  url: "https://tautulli.xxx"  # Replace with your Tautulli server URL
  api_key: "xxx"  # Replace with your Tautulli API key

# Trakt application, created on https://trakt.tv/oauth/applications
trakt:
  client_id: "xxx"  # Replace with your Trakt client ID
  client_secret: "xxx"  # Replace with your Trakt client secret

# If true, Deleterr will only log what it would do but not perform the actions
dry_run: true

# Trigger a Plex library scan after actions are performed
plex_library_scan_after_actions: false

# Trigger a Tautulli library scan after actions are performed
tautulli_library_scan_after_actions: false

# Delay between actions in seconds
# This is to prevent plex from getting overloaded
action_delay: 25

# Library configuration
libraries:
  - name: "TV Shows"
    action_mode: delete
    last_watched_threshold: 365
    added_at_threshold: 60
    apply_last_watch_threshold_to_collections: false
    max_actions_per_run: 10
    sonarr: Sonarr
    series_type: standard
    sort: 
      field: seasons # Deleter shows with more seasons first
      order: desc
    exclude:
      trakt:
        max_items_per_list: 50
        lists:
          [
            "https://trakt.tv/shows/trending",
            "https://trakt.tv/shows/popular"
          ]
nicholasbackwell commented 1 year ago

Same here. I got everything setup today and ran my first dry-run and it worked. I adjusted my action settings and tried another dry-run 20 minutes later and now I'm getting this error shared above.

I'm editing files with VS code and running with WSL2 and Docker Desktop. I've tried deleting all containers and all extracted zip files, then I re-extracted the latest zip and filled out basic settings again but still getting the same result.

nicholasbackwell commented 1 year ago

Nevermind, I figured it out for my setup

It was in my library configuration the "apply_last_watched_threahold_to_collections=true"

I think in the stock settings it is enabled by default for the Movies library but not Shows/Anime

I think I enabled for Shows and Anime which broke it for me. I turned it off for all 3 libraries for now and it seems to be logging properly for now

I attempted to run a live demo and perform 100 actions but it seems to be stuck in dry-run mode mode so I can't get it to actually delete anything

elit3ge commented 11 months ago

Anything? @nicholasbackwell your error doesn't apply to me.

nicholasbackwell commented 11 months ago

Nothing to add from me sorry. I still can't get my setup out of dry-run mode and haven't had anymore time to look at it since. I'm working on setting up a new server with a Linux VM so at some point I'll try running it again on a true Linux Docker container and make another report back here but as far Windows I'm not sure what else I can try.

rfsbraz commented 10 months ago

Nevermind, I figured it out for my setup

It was in my library configuration the "apply_last_watched_threahold_to_collections=true"

I think in the stock settings it is enabled by default for the Movies library but not Shows/Anime

I think I enabled for Shows and Anime which broke it for me. I turned it off for all 3 libraries for now and it seems to be logging properly for now

I attempted to run a live demo and perform 100 actions but it seems to be stuck in dry-run mode mode so I can't get it to actually delete anything

This is an obvious one but have you made sure the dry_run: true line is off of your settings.yaml?

rfsbraz commented 10 months ago

@elit3ge tried your settings and I'm running them fine. Added a log so you can make sure if the settings were picked up correctly in c045ecb75d770671c11ba0cf85e9cee32a23d02e