Deluged cannot start - LookupError: unknown encoding

Support for Deluge on Apple Mac OS
Post Reply
allonblack
New User
New User
Posts: 9
Joined: Mon Nov 22, 2010 10:19 pm

Deluged cannot start - LookupError: unknown encoding

Post by allonblack »

Deluge just crashed on my mac-mini out of nowhere and I'm now unable to start it. Here's what I'm getting running with debug logging to console. Any help would be appreciated.

Code: Select all

Mac-mini:deluge allonblack$ deluged -d -L debug
[INFO    ] 10:21:57 daemon:129 Deluge daemon 1.3.1
[DEBUG   ] 10:21:57 daemon:130 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'interface': None, 'logfile': None, 'config': None, 'port': None, 'pidfile': None, 'donot': True}
[DEBUG   ] 10:21:57 daemon:131 args: []
[DEBUG   ] 10:21:57 core:74 Core init..
[INFO    ] 10:21:57 core:78 Starting libtorrent 0.14.12.0 session..
[WARNING ] 10:21:57 core:162 Failed to load lt state: [Errno 2] No such file or directory: '/Users/allonblack/.config/deluge/session.state'
[DEBUG   ] 10:21:57 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 10:21:57 config:197 Setting 'info_sent' to 0.0 of <type 'float'>
[DEBUG   ] 10:21:57 config:197 Setting 'lsd' to True of <type 'bool'>
[DEBUG   ] 10:21:57 config:197 Setting 'send_info' to False of <type 'bool'>
[ERROR   ] 10:21:57 main:221 unknown encoding: 
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/main.py", line 214, in start_daemon
    Daemon(options, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/core/daemon.py", line 138, in __init__
    self.core = Core()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/core/core.py", line 105, in __init__
    self.preferencesmanager = PreferencesManager()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/core/preferencesmanager.py", line 150, in __init__
    self.config = deluge.configmanager.ConfigManager("core.conf", DEFAULT_PREFS)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/configmanager.py", line 122, in ConfigManager
    return _configmanager.get_config(config, defaults)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/configmanager.py", line 114, in get_config
    self.config_files[config_file] = Config(config_file, defaults, self.config_directory)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/config.py", line 150, in __init__
    self.set_item(key, value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/config.py", line 192, in set_item
    value = deluge.common.utf8_encoded(value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/common.py", line 594, in utf8_encoded
    s = decode_string(s, locale.getpreferredencoding())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/deluge-1.3.1-py2.6-macosx-10.6-x86_64.egg/deluge/common.py", line 578, in decode_string
    s = s.decode(encoding).encode("utf8", "ignore")
LookupError: unknown encoding: 
allonblack
New User
New User
Posts: 9
Joined: Mon Nov 22, 2010 10:19 pm

Re: Deluged cannot start - LookupError: unknown encoding

Post by allonblack »

I should note that I've already cleared my .config/deluge directory to make certain there was nothing in there screwing things up which is why we're seeing this line -

[WARNING ] 10:21:57 core:162 Failed to load lt state: [Errno 2] No such file or directory: '/Users/allonblack/.config/deluge/session.state'

However I'm getting the same error.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluged cannot start - LookupError: unknown encoding

Post by Cas »

I have moved this topic to the Mac forum. You have not said what version of deluge or how you installed it.
allonblack
New User
New User
Posts: 9
Joined: Mon Nov 22, 2010 10:19 pm

Re: Deluged cannot start - LookupError: unknown encoding

Post by allonblack »

The version is in the dump - 1.3.1 and I installed it via port. Does this really belong in the mac specific forum? In theory this could happen on any system?
allonblack
New User
New User
Posts: 9
Joined: Mon Nov 22, 2010 10:19 pm

Re: Deluged cannot start - LookupError: unknown encoding

Post by allonblack »

I should add that I just saw this on the originating console -

Code: Select all

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/deluged ; exit;
Mac-mini:~ allonblack$ /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/deluged ; exit;
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  Address family not supported by protocol family
Abort trap
logout
allonblack
New User
New User
Posts: 9
Joined: Mon Nov 22, 2010 10:19 pm

Re: Deluged cannot start - LookupError: unknown encoding

Post by allonblack »

Problem solved - for whatever reason this is what I get when I attempt to start deluge via SSH, however when running it locally it's working just fine. No idea why there may be such a difference, but there you go...
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluged cannot start - LookupError: unknown encoding

Post by Cas »

Good to know you solved it yourself. :)
allonblack wrote:Does this really belong in the mac specific forum? In theory this could happen on any system?
It does depend on the issue. Quite a few Deluge starting issues can be OS specific, so testing needs a matching OS, thus having a topic in the relevent forums flags it up for like OS'd people to help.
Post Reply