Deluge RPC daemon can't bind to port - Ubuntu 10.04 Server
Posted: Wed Nov 10, 2010 3:40 am
Hey,
So my daemon won't start correctly. Deluge-webui starts fine, but the daemon fails.
So i enabled debug logging, saw that it was failing to bind to the default port, changed port... didn't work.
Told it localhost only... didn't work. Told it lo only, didn't work.
So I'm at a loss as to how to fix this. Obviously it's not binding to the port right, but I don't know why.
Here's my debug log:
So my daemon won't start correctly. Deluge-webui starts fine, but the daemon fails.
So i enabled debug logging, saw that it was failing to bind to the default port, changed port... didn't work.
Told it localhost only... didn't work. Told it lo only, didn't work.
So I'm at a loss as to how to fix this. Obviously it's not binding to the port right, but I don't know why.
Here's my debug log:
Code: Select all
[INFO ] 04:34:48 daemon:129 Deluge daemon 1.3.1
[DEBUG ] 04:34:48 daemon:130 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'interface': None, 'logfile': '/var/log/deluged.log', 'config': '/var/lib/deluge', 'port': None, 'pidfile': None, 'donot': True}
[DEBUG ] 04:34:48 daemon:131 args: []
[INFO ] 04:34:48 configmanager:70 Setting config directory to: /var/lib/deluge
[DEBUG ] 04:34:48 core:74 Core init..
[INFO ] 04:34:48 core:78 Starting libtorrent 0.14.10.0 session..
[DEBUG ] 04:34:48 configmanager:111 Getting config 'core.conf'
[DEBUG ] 04:34:48 config:197 Setting 'info_sent' to 0.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'lsd' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'send_info' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'move_completed_path' to /var/lib/deluge of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'enc_in_policy' to 1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'queue_new_to_top' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'ignore_limits_on_local_network' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'rate_limit_ip_overhead' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'daemon_port' to 58846 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'torrentfiles_location' to /var/lib/deluge of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'max_active_limit' to 8 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'utpex' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_active_downloading' to 3 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'max_active_seeding' to 5 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'allow_remote' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_half_open_connections' to 50 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'download_location' to /var/lib/deluge of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'compact_allocation' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_upload_speed' to -1.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'cache_expiry' to 60 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'prioritize_first_last_pieces' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'auto_managed' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'enc_level' to 2 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'max_connections_per_second' to 20 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'dont_count_slow_torrents' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'random_outgoing_ports' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'dht' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'new_release_check' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'enc_out_policy' to 1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'max_upload_slots_global' to 4 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'seed_time_limit' to 180 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'cache_size' to 512 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'share_ratio_limit' to 2.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'max_download_speed' to -1.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'geoip_db_location' to /usr/share/GeoIP/GeoIP.dat of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'natpmp' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'stop_seed_at_ratio' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'peer_tos' to 0x00 of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'listen_interface' to of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'upnp' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_download_speed_per_torrent' to -1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'outgoing_ports' to [0, 0] of <type 'list'>
[DEBUG ] 04:34:48 config:197 Setting 'enabled_plugins' to [] of <type 'list'>
[DEBUG ] 04:34:48 config:197 Setting 'random_port' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'autoadd_enable' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_connections_global' to 200 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'enc_prefer_rc4' to True of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'listen_ports' to [6881, 6891] of <type 'list'>
[DEBUG ] 04:34:48 config:197 Setting 'max_upload_slots_per_torrent' to -1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'stop_seed_ratio' to 2.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'seed_time_ratio_limit' to 7.0 of <type 'float'>
[DEBUG ] 04:34:48 config:197 Setting 'max_upload_speed_per_torrent' to -1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'copy_torrent_file' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'del_copy_torrent_file' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'move_completed' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'proxies' to {'peer': {'username': '', 'password': '', 'hostname': '', 'type': 0, 'port': 8080}, 'web_seed': {'username': '', 'password': '', 'hostname': '', 'type': 0, 'port': 8080}, 'tracker': {'username': '', 'password': '', 'hostname': '', 'type': 0, 'port': 8080}, 'dht': {'username': '', 'password': '', 'hostname': '', 'type': 0, 'port': 8080}} of <type 'dict'>
[DEBUG ] 04:34:48 config:197 Setting 'add_paused' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'max_connections_per_torrent' to -1 of <type 'int'>
[DEBUG ] 04:34:48 config:197 Setting 'remove_seed_at_ratio' to False of <type 'bool'>
[DEBUG ] 04:34:48 config:197 Setting 'autoadd_location' to /var/lib/deluge of <type 'str'>
[DEBUG ] 04:34:48 config:197 Setting 'plugins_location' to /var/lib/deluge/plugins of <type 'str'>
[DEBUG ] 04:34:48 config:388 Config /var/lib/deluge/core.conf version: 1.1 loaded: {'info_sent': 0.0, 'lsd': True, 'send_info': False, 'move_completed_path': u'/var/www/finished/', 'enc_in_policy': 1, 'queue_new_to_top': False, 'ignore_limits_on_local_network': True, 'rate_limit_ip_overhead': True, 'daemon_port': 51337, 'natpmp': True, 'max_active_limit': 8, 'utpex': True, 'max_active_downloading': 3, 'max_active_seeding': 5, 'allow_remote': False, 'max_half_open_connections': 50, 'download_location': u'/var/www/inprog/', 'compact_allocation': False, 'max_upload_speed': -1.0, 'cache_expiry': 60, 'prioritize_first_last_pieces': False, 'auto_managed': True, 'enc_level': 2, 'max_connections_per_second': 20, 'dont_count_slow_torrents': False, 'random_outgoing_ports': True, 'max_upload_slots_per_torrent': -1, 'new_release_check': False, 'enc_out_policy': 1, 'outgoing_ports': [0, 0], 'seed_time_limit': 180, 'cache_size': 512, 'share_ratio_limit': 2.0, 'max_download_speed': -1.0, 'geoip_db_location': u'/usr/share/GeoIP/GeoIP.dat', 'torrentfiles_location': u'/var/www/torr/', 'stop_seed_at_ratio': False, 'peer_tos': u'0x00', 'listen_interface': u'eth0', 'upnp': True, 'max_download_speed_per_torrent': -1, 'max_upload_slots_global': 4, 'enabled_plugins': [], 'random_port': True, 'autoadd_enable': False, 'max_connections_global': 200, 'enc_prefer_rc4': True, 'listen_ports': [6881, 6891], 'dht': True, 'stop_seed_ratio': 2.0, 'seed_time_ratio_limit': 7.0, 'max_upload_speed_per_torrent': -1, 'copy_torrent_file': False, 'del_copy_torrent_file': False, 'move_completed': False, 'proxies': {u'peer': {u'username': u'', u'password': u'', u'type': 0, u'hostname': u'', u'port': 8080}, u'web_seed': {u'username': u'', u'password': u'', u'type': 0, u'hostname': u'', u'port': 8080}, u'tracker': {u'username': u'', u'password': u'', u'type': 0, u'hostname': u'', u'port': 8080}, u'dht': {u'username': u'', u'password': u'', u'type': 0, u'hostname': u'', u'port': 8080}}, 'add_paused': False, 'max_connections_per_torrent': -1, 'remove_seed_at_ratio': False, 'autoadd_location': u'/root', 'plugins_location': u'/var/lib/deluge/plugins'}
[DEBUG ] 04:34:48 alertmanager:53 AlertManager initialized..
[DEBUG ] 04:34:48 pluginmanagerbase:65 Plugin manager init..
[DEBUG ] 04:34:48 configmanager:111 Getting config 'core.conf'
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: AutoAdd 1.02
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Execute 1.2
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Blocklist 1.2
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Extractor 0.1
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Label 0.1
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Notifications 0.1
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: WebUi 0.1
[DEBUG ] 04:34:48 pluginmanagerbase:116 Found plugin: Scheduler 0.2
[DEBUG ] 04:34:48 torrentmanager:126 TorrentManager init..
[DEBUG ] 04:34:48 configmanager:111 Getting config 'core.conf'
[DEBUG ] 04:34:48 config:301 Registering function for max_connections_per_torrent key..
[DEBUG ] 04:34:48 torrentmanager:768 max_connections_per_torrent set to -1..
[DEBUG ] 04:34:48 config:301 Registering function for max_upload_slots_per_torrent key..
[DEBUG ] 04:34:48 torrentmanager:774 max_upload_slots_per_torrent set to -1..
[DEBUG ] 04:34:48 config:301 Registering function for max_upload_speed_per_torrent key..
[DEBUG ] 04:34:48 torrentmanager:779 max_upload_speed_per_torrent set to -1..
[DEBUG ] 04:34:48 config:301 Registering function for max_download_speed_per_torrent key..
[DEBUG ] 04:34:48 torrentmanager:784 max_download_speed_per_torrent set to -1..
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert torrent_finished_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert torrent_paused_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert torrent_checked_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert tracker_reply_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert tracker_announce_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert tracker_warning_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert tracker_error_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert storage_moved_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert torrent_resumed_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert state_changed_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert save_resume_data_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert save_resume_data_failed_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert file_renamed_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert metadata_received_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert file_error_alert
[DEBUG ] 04:34:48 alertmanager:96 Registered handler for alert file_completed_alert
[DEBUG ] 04:34:48 filtermanager:105 FilterManager init..
[DEBUG ] 04:34:48 configmanager:111 Getting config 'core.conf'
[DEBUG ] 04:34:48 config:301 Registering function for autoadd_enable key..
[DEBUG ] 04:34:48 autoadd:124 _on_autoadd_enable
[DEBUG ] 04:34:48 config:301 Registering function for autoadd_location key..
[DEBUG ] 04:34:48 autoadd:131 _on_autoadd_location
[DEBUG ] 04:34:48 configmanager:111 Getting config 'core.conf'
[INFO ] 04:34:48 rpcserver:366 Starting DelugeRPC server localhost:51337
[INFO ] 04:34:48 rpcserver:374 Daemon already running or port not available..
[ERROR ] 04:34:48 rpcserver:375 [('system library', 'fopen', 'Permission denied'), ('BIO routines', 'FILE_CTRL', 'system lib'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'system lib')]