Skip to content
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

KeyError: 'preferred' #51

Open
lpuv opened this issue Jan 11, 2024 · 2 comments
Open

KeyError: 'preferred' #51

lpuv opened this issue Jan 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lpuv
Copy link

lpuv commented Jan 11, 2024

Hi! I get this error when running buildarr.

2024-01-10 18:00:51,850 buildarr:1 buildarr.cli.daemon [ERROR] <sonarr> (sonarr-hd) An error occurred while applying initial configuration: 'preferred'
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/buildarr/cli/daemon.py", line 215, in _initial_run
    run_apply()
  File "/usr/local/lib/python3.11/site-packages/buildarr/cli/run.py", line 235, in _run
    remote_instance_config = manager.from_remote(instance_config, instance_secrets)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/manager/__init__.py", line 171, in from_remote
    return instance_config.from_remote(secrets)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr_sonarr/config/__init__.py", line 340, in from_remote
    settings=SonarrSettingsConfig.from_remote(secrets),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/config/base.py", line 85, in from_remote
    fields[field_name] = field.type_.from_remote(secrets)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/config/base.py", line 85, in from_remote
    fields[field_name] = field.type_.from_remote(secrets)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr_sonarr/config/profiles/release.py", line 405, in from_remote
    definitions={
                ^
  File "/usr/local/lib/python3.11/site-packages/buildarr_sonarr/config/profiles/release.py", line 406, in <dictcomp>
    profile["name"]: ReleaseProfile._from_remote(indexer_ids, tag_ids, profile)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr_sonarr/config/profiles/release.py", line 253, in _from_remote
    return cls(**cls.get_local_attrs(cls._get_remote_map(indexer_ids, tag_ids), remote_attrs))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/config/base.py", line 234, in get_local_attrs
    remote_attr = remote_attrs[remote_attr_name]
                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'preferred'
@Callum027 Callum027 self-assigned this Mar 1, 2024
@Callum027 Callum027 transferred this issue from buildarr/buildarr Mar 1, 2024
@Callum027
Copy link
Member

Hi there, apologies for not getting to this sooner (I was taking a break for a while).

This is my first time seeing this happening. I've been configuring Release Profiles on my Sonarr instances for some time without issues.

What version of Sonarr are you trying to use?

@Callum027 Callum027 added the bug Something isn't working label Mar 1, 2024
@Callum027 Callum027 modified the milestone: v0.6.4 Mar 1, 2024
@Callum027
Copy link
Member

Assuming you're using Sonarr V4, unfortunately Sonarr V4 is not supported at the moment. You'll need to configure your instance manually until it is supported, or switch back to Sonarr V3 for the mean time.

@Callum027 Callum027 added this to the v0.8.0 milestone Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants