CouchPotato: [ERROR] Quality.Single and Movie.Searcher.Single when adding new movie...

Status
Not open for further replies.

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Hey All - there is more information available on the bug report I submitted to the CouchPotato github. I have not received any sort of response and I see that other issues similar to this did not receive any attention.

I had a brand new, fresh CP install and then removed some default quality profiles. Now I am seeing this error in the logs.

Code:
02-13 17:48:58 ERROR [   couchpotato.core.event] Error in event "quality.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/quality/main.py", line 117, in single
    quality = db.get('quality', identifier, with_doc = True)['doc']
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 944, in get
    raise RecordNotFound("Not found")
RecordNotFound: Not found
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace(config_file='/var/db/couchpotato/settings.conf', console_log=False, daemon=True, data_dir='/var/db/couchpotato', debug=False, pid_file='/var/run/couchpotato/couchpotato.pid', quiet=False) 
02-13 17:48:58 ERROR [   couchpotato.core.event] Error in event "movie.searcher.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/searcher.py", line 200, in single
    log.info('Search for %s in %s%s', (default_title, quality['label'], ' ignoring ETA' if always_search or ignore_eta else ''))
TypeError: 'NoneType' object has no attribute '__getitem__'
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace(config_file='/var/db/couchpotato/settings.conf', console_log=False, daemon=True, data_dir='/var/db/couchpotato', debug=False, pid_file='/var/run/couchpotato/couchpotato.pid', quiet=False) 


Does anyone have an idea why this is happening? This happens when I add a movie but it appears the movie is still added successfully.

I am at work so do not have access to check my CouchPotato install until I am home... wondering if this can be resolved or if I need to nuke my install and start over again.

Thanks,

bmcclure937
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
I blew away the CP database to start "fresh" and added a couple movies. Checked the log file and still have the damn error:

Code:
02-22 20:30:08 ERROR ^[[31m[   couchpotato.core.event] Error in event "quality.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/quality/main.py", line 117, in single
    quality = db.get('quality', identifier, with_doc = True)['doc']
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 944, in get
    raise RecordNotFound("Not found")
RecordNotFound: Not found
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
02-22 20:30:08 ERROR ^[[31m[   couchpotato.core.event] Error in event "movie.searcher.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/searcher.py", line 200, in single
    log.info('Search for %s in %s%s', (default_title, quality['label'], ' ignoring ETA' if always_search or ignore_eta else ''))
TypeError: 'NoneType' object has no attribute '__getitem__'


Code:
02-22 20:30:16 ERROR ^[[31m[to.core.media.movie._base] Failed update media: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/_base/main.py", line 312, in update
    db.update(media)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 917, in update
    _id, new_rev = self._update_indexes(_rev, data)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 678, in _update_indexes
    _id, new_rev, db_data = self._update_id_index(_rev, data)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 666, in _update_id_index
    raise RevConflict()
RevConflict
^[[0m


Code:
02-22 20:30:19 ERROR ^[[31m[   couchpotato.core.event] Error in event "quality.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/quality/main.py", line 117, in single
    quality = db.get('quality', identifier, with_doc = True)['doc']
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 944, in get
    raise RecordNotFound("Not found")
RecordNotFound: Not found
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
02-22 20:30:19 ERROR ^[[31m[   couchpotato.core.event] Error in event "movie.searcher.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/searcher.py", line 200, in single
    log.info('Search for %s in %s%s', (default_title, quality['label'], ' ignoring ETA' if always_search or ignore_eta else ''))
TypeError: 'NoneType' object has no attribute '__getitem__'
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Update

I stopped the CP plugin, removed /var/db/couchpotato, and completely removed the CouchPotato plugin. I then restarted the jail and re-installed the plugin to the sabnzbd_1 jail using the latest PBI. This is a completely fresh install.

The only error in the logs now is:

Code:
02-22 21:09:04 ERROR ^[[31m[to.core.media.movie._base] Failed update media: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/_base/main.py", line 312, in update
    db.update(media)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 917, in update
    _id, new_rev = self._update_indexes(_rev, data)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 678, in _update_indexes
    _id, new_rev, db_data = self._update_id_index(_rev, data)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 666, in _update_id_index
    raise RevConflict()
RevConflict
^[[0m


I added a couple movies to test and everything was OK. I then modified the quality profiles to change some preferences. Now when I add movies I get the below errors again:

Code:
02-22 21:20:23 ERROR ^[[31m[   couchpotato.core.event] Error in event "quality.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/quality/main.py", line 117, in single
    quality = db.get('quality', identifier, with_doc = True)['doc']
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 944, in get
    raise RecordNotFound("Not found")
RecordNotFound: Not found
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
02-22 21:20:23 ERROR ^[[31m[   couchpotato.core.event] Error in event "movie.searcher.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/searcher.py", line 200, in single
    log.info('Search for %s in %s%s', (default_title, quality['label'], ' ignoring ETA' if always_search or ignore_eta else ''))
TypeError: 'NoneType' object has no attribute '__getitem__'
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
02-22 21:20:48 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get http://www.imdb.com/movies-in-theaters/, data: []^[[0m
02-22 21:21:18 ERROR ^[[31m[hpotato.core.plugins.base] Failed opening url in IMDB:IMDBCharts: http://www.imdb.com/movies-in-theaters/ Traceback (most recent call last):
ReadTimeout: HTTPConnectionPool(host='www.imdb.com', port=80): Read timed out. (read timeout=30)
^[[0m


Any thoughts or will I need to start posting on the CP forums? I already posted one bug report on github and go no response...
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Latest Logs

Code:
02-22 22:19:18 INFO ^[[0m[ie.providers.info.omdbapi] Found: MOVIE NAME^[[0m
02-22 22:19:18 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get http://ia.media-imdb.com/images/M/MV5BMjU4NDExNDM1NF5BMl5BanBnXkFtZTgwMDIyMTgxNzE@._V1_SX300.jpg, data: []^[[0m
02-22 22:19:48 ERROR ^[[31m[hpotato.core.plugins.base] Failed opening url in FileManager: http://ia.media-imdb.com/images/M/MV5BMjU4NDExNDM1NF5BMl5BanBnXkFtZTgwMDIyMTgxNzE@._V1_SX300.jpg Traceback (most recent call last):
ReadTimeout: HTTPConnectionPool(host='ia.media-imdb.com', port=80): Read timed out. (read timeout=30)
^[[0m
02-22 22:19:48 ERROR ^[[31m[hpotato.core.plugins.file] Failed downloading file http://ia.media-imdb.com/images/M/MV5BMjU4NDExNDM1NF5BMl5BanBnXkFtZTgwMDIyMTgxNzE@._V1_SX300.jpg: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/file.py", line 79, in download
    filedata = self.urlopen(url, **urlopen_kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/base.py", line 220, in urlopen
    response = r.request(method, url, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/requests/sessions.py", line 469, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/requests/sessions.py", line 577, in send
    r = adapter.send(request, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/requests/adapters.py", line 431, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='ia.media-imdb.com', port=80): Read timed out. (read timeout=30)
^[[0m
02-22 22:19:48 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/eta/tt1663202/, data: []^[[0m
02-22 22:19:48 INFO ^[[0m[core.media.movie.searcher] Search for THE MOVIE in 720p ignoring ETA^[[0m
02-22 22:19:48 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get <removed>: []^[[0m
02-22 22:19:49 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get <removed>: []^[[0m
02-22 22:19:50 INFO ^[[0m[hpotato.core.plugins.base] Opening url: get <removed>: []^[[0m
02-22 22:19:51 INFO ^[[0m[core.media.movie.searcher] Search for THE MOVIE in 1080p ignoring ETA^[[0m

02-22 22:19:51 ERROR ^[[31m[   couchpotato.core.event] Error in event "quality.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/quality/main.py", line 117, in single
    quality = db.get('quality', identifier, with_doc = True)['doc']
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
    res = f(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/libs/CodernityDB/database.py", line 944, in get
    raise RecordNotFound("Not found")
RecordNotFound: Not found
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$

02-22 22:19:51 ERROR ^[[31m[   couchpotato.core.event] Error in event "movie.searcher.single", that wasn't caught: Traceback (most recent call last):
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 15, in runHandler
    return handler(*args, **kwargs)
  File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/media/movie/searcher.py", line 200, in single
    log.info('Search for %s in %s%s', (default_title, quality['label'], ' ignoring ETA' if always_search or ignore_eta else ''))
TypeError: 'NoneType' object has no attribute '__getitem__'
encoding=UTF-8 debug=False args=['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/run/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/var/db/couchpotato desktop=None options=Namespace$
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Nope - I removed the plugin and started fresh. I left my settings file and started with a fresh database. I have not tweaked the quality profiles at all because I am not sure what is causing the issue. I can SSH into my FreeNAS tonight to see if there are any errors in the CP logs...
 

natobyte

Cadet
Joined
May 10, 2015
Messages
4
Looks like I have the same problem and there isn't any update on the bug report so Im going to reinstall the plugin as you suggested. Thanks for the great post, it helps a lot to know when other people have the same error.
 

unca_NAS

Explorer
Joined
Mar 25, 2012
Messages
87
Had the same issue. Occurred when I attempted to download a UHD-quality nzb. CP froze almost completely.

Logged into jail, killed CP with kill -9 (pid), started it with "service couchpotato onestart", deleted all UHD-related entries from quality settings.

To me it seemed to fix the issue. Now CP is working fluently again.
 
Last edited:
Status
Not open for further replies.
Top