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

[APP SUBMITTED]: KeyError: 'backlog_search' #7448

Closed
XxUnkn0wnxX opened this issue Dec 5, 2019 · 13 comments
Closed

[APP SUBMITTED]: KeyError: 'backlog_search' #7448

XxUnkn0wnxX opened this issue Dec 5, 2019 · 13 comments
Labels
triage Untriaged issue

Comments

@XxUnkn0wnxX
Copy link

INFO

Python Version: 3.7.5 (default, Nov 1 2019, 02:16:23) [Clang 11.0.0 (clang-1100.0.33.8)]
Operating System: Darwin-19.0.0-x86_64-i386-64bit
Locale: UTF-8
Branch: master
Database: 44.14
Commit: fcb5a19
Link to Log: https://gist.github.com/eb1b2912f593d5e8574e1b984384246e

ERROR

2019-12-05 17:41:37 ERROR    Thread_19 :: [fcb5a19] Exception generated: 'backlog_search'
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/core/base.py", line 251, in async_call
    result = function(**kwargs)
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/manage/searches.py", line 26, in index
    forcedSearchQueueLength=app.forced_search_queue_scheduler.action.queue_length(),
  File "/Users/ovidijus/Apps/Medusa/medusa/search/queue.py", line 179, in queue_length
    length['backlog_search'] += 1
KeyError: 'backlog_search'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@triage-new-issues triage-new-issues bot added the triage Untriaged issue label Dec 5, 2019
@XxUnkn0wnxX
Copy link
Author

INFO

Python Version: 3.7.5 (default, Nov 1 2019, 02:16:23) [Clang 11.0.0 (clang-1100.0.33.8)]
Operating System: Darwin-19.0.0-x86_64-i386-64bit
Locale: UTF-8
Branch: master
Database: 44.14
Commit: fcb5a19
Link to Log: https://gist.github.com/0fd924dec748a93ef3584e18e4b6627b

ERROR

2019-12-05 17:43:41 ERROR    Thread_24 :: [fcb5a19] Exception generated: 'backlog_search'
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/core/base.py", line 251, in async_call
    result = function(**kwargs)
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/manage/searches.py", line 26, in index
    forcedSearchQueueLength=app.forced_search_queue_scheduler.action.queue_length(),
  File "/Users/ovidijus/Apps/Medusa/medusa/search/queue.py", line 179, in queue_length
    length['backlog_search'] += 1
KeyError: 'backlog_search'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@XxUnkn0wnxX

This comment has been minimized.

@XxUnkn0wnxX
Copy link
Author

INFO

Python Version: 3.7.5 (default, Nov 1 2019, 02:16:23) [Clang 11.0.0 (clang-1100.0.33.8)]
Operating System: Darwin-19.0.0-x86_64-i386-64bit
Locale: UTF-8
Branch: develop
Database: 44.14
Commit: 6456664
Link to Log: https://gist.github.com/b1954bb9315bc610b131017c85de575d

ERROR

2019-12-05 17:49:48 ERROR    Thread_0 :: [6456664] Exception generated: 'backlog_search'
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/core/base.py", line 251, in async_call
    result = function(**kwargs)
  File "/Users/ovidijus/Apps/Medusa/medusa/server/web/manage/searches.py", line 26, in index
    forcedSearchQueueLength=app.forced_search_queue_scheduler.action.queue_length(),
  File "/Users/ovidijus/Apps/Medusa/medusa/search/queue.py", line 179, in queue_length
    length['backlog_search'] += 1
KeyError: 'backlog_search'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@XxUnkn0wnxX
Copy link
Author

seems to be broken on develop branch as well..

To Reproduce:
have 2 episodes from different shows marked as snatched but never downloaded
then retry download, select no when the popup shows.
do this on 2 or more episodes to queue up in backlog, then go to Manage Searches, white page will only display & error in log.

@medariox

This comment has been minimized.

@p0psicles
Copy link
Contributor

tnx @XxUnkn0wnxX i'll look into it. Pls standby for testing out a fix when ready. Don't know when, as I have to also look into the show updater issues

@medariox
Copy link
Contributor

medariox commented Dec 5, 2019

Fixed with #7449

@XxUnkn0wnxX
Copy link
Author

page doesn't display white anymore & error does not prop but it doesn't show any values in the manage searches page now. when following steps from reproduce to initiate manual backlogging it shows here as nothing is running.

Screen Shot 2019-12-05 at 10 52 34 pm

Screen Shot 2019-12-05 at 10 52 51 pm

@p0psicles

@p0psicles
Copy link
Contributor

@XxUnkn0wnxX with #7452 that should be fixed

@XxUnkn0wnxX
Copy link
Author

yep all good now, but front end shows list page is still broken sigh in develop... i hope this fix for searches gets pushed to master soon or develop frontend home page is fixed in the near close future...

@p0psicles
Copy link
Contributor

What do you mean, frond end shows list page is broken?

@XxUnkn0wnxX
Copy link
Author

as described in issue #7428 @p0psicles that problem persists in develop still in the frontend home shows page, tabs missing & search/filter is broken still.

@rafi-d
Copy link
Contributor

rafi-d commented Dec 5, 2019

INFO

Python Version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Operating System: Windows-10-10.0.17763
Locale: cp1255
Branch: master
Database: 44.14
Commit: fcb5a19
Link to Log: https://gist.github.com/63f9c36c1c3c6ae9a8cc2226243855d7

ERROR

2019-12-05 21:39:27 ERROR    Thread_5 :: [fcb5a19] Exception generated: u'backlog_search'
Traceback (most recent call last):
  File "D:\Program Files\Medusa\Medusa\medusa\server\web\core\base.py", line 251, in async_call
    result = function(**kwargs)
  File "D:\Program Files\Medusa\Medusa\medusa\server\web\manage\searches.py", line 26, in index
    forcedSearchQueueLength=app.forced_search_queue_scheduler.action.queue_length(),
  File "D:\Program Files\Medusa\Medusa\medusa\search\queue.py", line 179, in queue_length
    length['backlog_search'] += 1
KeyError: u'backlog_search'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

medariox added a commit that referenced this issue Dec 11, 2019
* Fix backlog search queue with multiple items. Fixes #7448

* Fix season pack downloads even if not needed

* Update changelog
fernandog pushed a commit to fernandog/Medusa that referenced this issue Jan 11, 2020
* Fix backlog search queue with multiple items. Fixes pymedusa#7448

* Fix season pack downloads even if not needed

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

4 participants