rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use

General support for problems installing or using Deluge
Post Reply
mar344
New User
New User
Posts: 1
Joined: Wed Sep 19, 2018 2:55 am

rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use

Post by mar344 »

First time posting. I recently upgraded to 18.04 and deluged no longer works. I have spent 2 days trying to figure this out to no avail. I keep getting the error "rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use". If I change the port on the web UI deluged seems to work but my webui no longer displays downloading torrents. Any help would be greatly appreciated. My log is posted below.


Code: Select all

[INFO    ] 02:50:29 daemon:127 Deluge daemon 1.3.15
[DEBUG   ] 02:50:29 daemon:128 options: {'profile': False, 'read_only_config_keys': None, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'listen_interface': None, 'logfile': '/mnt/torrents/deluge.log', 'config': None, 'port': None, 'pidfile': None, 'donot': False}
[DEBUG   ] 02:50:29 daemon:129 args: []
[DEBUG   ] 02:50:29 core:78 Core init..
[DEBUG   ] 02:50:29 core:84 read_only_config_keys: []
[INFO    ] 02:50:29 core:87 Starting libtorrent 1.1.5.0 session..
[WARNING ] 02:50:29 core:197 Failed to load lt state: [Errno 2] No such file or directory: '/home/mark/.config/deluge/session.state'
[DEBUG   ] 02:50:29 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 02:50:29 config:199 Setting 'info_sent' to 0.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'lsd' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'send_info' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'move_completed_path' to /home/mark/Downloads of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'enc_in_policy' to 1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'queue_new_to_top' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'ignore_limits_on_local_network' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'rate_limit_ip_overhead' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'daemon_port' to 58846 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'torrentfiles_location' to /home/mark/Downloads of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_active_limit' to 8 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'utpex' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_active_downloading' to 3 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_active_seeding' to 5 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'allow_remote' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_half_open_connections' to 50 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'download_location' to /home/mark/Downloads of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'compact_allocation' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_upload_speed' to -1.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'cache_expiry' to 60 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'prioritize_first_last_pieces' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'auto_managed' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'enc_level' to 2 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_connections_per_second' to 20 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'dont_count_slow_torrents' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'random_outgoing_ports' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'dht' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'new_release_check' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'enc_out_policy' to 1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_upload_slots_global' to 4 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'seed_time_limit' to 180 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'cache_size' to 512 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'share_ratio_limit' to 2.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_download_speed' to -1.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'geoip_db_location' to /usr/share/GeoIP/GeoIP.dat of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'natpmp' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'stop_seed_at_ratio' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'peer_tos' to 0x00 of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'listen_interface' to  of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'upnp' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_download_speed_per_torrent' to -1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'outgoing_ports' to [0, 0] of <type 'list'>
[DEBUG   ] 02:50:29 config:199 Setting 'enabled_plugins' to [] of <type 'list'>
[DEBUG   ] 02:50:29 config:199 Setting 'random_port' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'autoadd_enable' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_connections_global' to 200 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'enc_prefer_rc4' to True of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'listen_ports' to [6881, 6891] of <type 'list'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_upload_slots_per_torrent' to -1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'stop_seed_ratio' to 2.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'seed_time_ratio_limit' to 7.0 of <type 'float'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_upload_speed_per_torrent' to -1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'copy_torrent_file' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'del_copy_torrent_file' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'move_completed' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 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   ] 02:50:29 config:199 Setting 'add_paused' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'max_connections_per_torrent' to -1 of <type 'int'>
[DEBUG   ] 02:50:29 config:199 Setting 'remove_seed_at_ratio' to False of <type 'bool'>
[DEBUG   ] 02:50:29 config:199 Setting 'autoadd_location' to /home/mark/Downloads of <type 'str'>
[DEBUG   ] 02:50:29 config:199 Setting 'plugins_location' to /home/mark/.config/deluge/plugins of <type 'str'>
[DEBUG   ] 02:50:29 config:394 Config /home/mark/.config/deluge/core.conf version: 1.1 loaded: {'info_sent': 0.0, 'lsd': True, 'send_info': False, 'move_completed_path': u'/mnt/torrents/Downloads', 'enc_in_policy': 1, 'queue_new_to_top': False, 'ignore_limits_on_local_network': True, 'rate_limit_ip_overhead': True, 'daemon_port': 58846, '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/lib/deluge/Downloads', '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': 0.5, 'max_download_speed': -1.0, 'geoip_db_location': u'/usr/share/GeoIP/GeoIP.dat', 'torrentfiles_location': u'/var/lib/deluge/Downloads', 'stop_seed_at_ratio': True, 'peer_tos': u'0x00', 'listen_interface': u'', 'upnp': True, 'max_download_speed_per_torrent': -1, 'max_upload_slots_global': 4, 'enabled_plugins': [u'WebUi', u'AutoRemovePlus', u'Execute'], 'random_port': True, 'autoadd_enable': True, 'max_connections_global': 200, 'enc_prefer_rc4': True, 'listen_ports': [59179, 59179], 'dht': True, 'stop_seed_ratio': 0.5, 'seed_time_ratio_limit': 1.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': True, 'autoadd_location': u'/mnt/torrents', 'plugins_location': u'/var/lib/deluge/.config/deluge/plugins'}
[DEBUG   ] 02:50:29 alertmanager:53 AlertManager initialized..
[DEBUG   ] 02:50:29 pluginmanagerbase:65 Plugin manager init..
[DEBUG   ] 02:50:29 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Extractor 0.6 at /usr/lib/python2.7/dist-packages/deluge/plugins/Extractor-0.6.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Execute 1.3 at /usr/lib/python2.7/dist-packages/deluge/plugins/Execute-1.3.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Blocklist 1.3 at /usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.3.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: AutoAdd 1.5 at /usr/lib/python2.7/dist-packages/deluge/plugins/AutoAdd-1.5.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Label 0.2 at /usr/lib/python2.7/dist-packages/deluge/plugins/Label-0.2.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Notifications 0.2 at /usr/lib/python2.7/dist-packages/deluge/plugins/Notifications-0.2.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: WebUi 0.1 at /usr/lib/python2.7/dist-packages/deluge/plugins/WebUi-0.1.egg
[DEBUG   ] 02:50:29 pluginmanagerbase:124 Found plugin: Scheduler 0.3 at /usr/lib/python2.7/dist-packages/deluge/plugins/Scheduler-0.3.egg
[DEBUG   ] 02:50:29 torrentmanager:127 TorrentManager init..
[DEBUG   ] 02:50:29 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 02:50:29 config:306 Registering function for max_connections_per_torrent key..
[DEBUG   ] 02:50:29 torrentmanager:910 max_connections_per_torrent set to -1..
[DEBUG   ] 02:50:29 config:306 Registering function for max_upload_slots_per_torrent key..
[DEBUG   ] 02:50:29 torrentmanager:916 max_upload_slots_per_torrent set to -1..
[DEBUG   ] 02:50:29 config:306 Registering function for max_upload_speed_per_torrent key..
[DEBUG   ] 02:50:29 torrentmanager:921 max_upload_speed_per_torrent set to -1..
[DEBUG   ] 02:50:29 config:306 Registering function for max_download_speed_per_torrent key..
[DEBUG   ] 02:50:29 torrentmanager:926 max_download_speed_per_torrent set to -1..
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert torrent_finished_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert torrent_paused_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert torrent_checked_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert tracker_reply_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert tracker_announce_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert tracker_warning_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert tracker_error_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert storage_moved_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert storage_moved_failed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert torrent_resumed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert state_changed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert save_resume_data_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert save_resume_data_failed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert file_renamed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert metadata_received_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert file_error_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert file_completed_alert
[DEBUG   ] 02:50:29 alertmanager:97 Registered handler for alert fastresume_rejected_alert
[DEBUG   ] 02:50:29 filtermanager:105 FilterManager init..
[DEBUG   ] 02:50:29 configmanager:111 Getting config 'core.conf'
[DEBUG   ] 02:50:29 config:306 Registering function for autoadd_enable key..
[DEBUG   ] 02:50:29 autoadd:124 _on_autoadd_enable
[DEBUG   ] 02:50:29 config:306 Registering function for autoadd_location key..
[DEBUG   ] 02:50:29 autoadd:131 _on_autoadd_location
[DEBUG   ] 02:50:29 configmanager:111 Getting config 'core.conf'
[INFO    ] 02:50:29 rpcserver:369 Starting DelugeRPC server localhost:58846
[INFO    ] 02:50:29 rpcserver:377 Daemon already running or port not available..
[ERROR   ] 02:50:29 rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use.
blackdalek
Member
Member
Posts: 17
Joined: Fri Jul 21, 2017 11:00 pm

Re: rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use

Post by blackdalek »

I also recently installed 18.04 and have been presented with the same error message.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use

Post by shamael »

in your process list does the port appear? bind with which process?
If Deluged, then it seems you try to launch the software twice.
blackdalek
Member
Member
Posts: 17
Joined: Fri Jul 21, 2017 11:00 pm

Re: rpcserver:378 Couldn't listen on localhost:58846: [Errno 98] Address already in use

Post by blackdalek »

In my case, I was getting the error because I was trying to start deluged twice. The error went away once I realised this.
Post Reply