[Solved]Socket failure from large cache?
Posted: Thu Oct 06, 2011 2:13 am
Deluge 1.3.3, libtorrent 0.15.7, Win 7-64 home, AMD hex core, NAT router to cable modem w/ fixed port mapping set for deluged (uPnP had the same issues).
So, I noticed that Deluged was losing 'active' seeding connectivity after a few hours with the cache size and expiry bumped up. It appeared that once cache hit about 80000 the Port test would fail and connections would drop to just a few. Set cache_size to 0, and no problems after 37 hours.
This seems like it could be a libtorrent issue and I just grabbed 0.15.8 to try out. I'll post if it helps or I get things narrowed down a bit more.
I'm only seeding 4 torrents with nothing downloading on my solid folding box that has plenty of ram to cache them all, which is why I was trying to run cache_size 300000 and cache_expiry 600000. Yes, it will seem a bit ridiculous to most, but it still shouldn't break the silly thing.
Anyways, here's a few bits of the debug logs where the failures start. Nothing has been config'd oddly except for the cache settings.
With lots more of the same errors until I reset the cache_size to 0 and restarted to a new log file.
So... just thought I'd throw a post in here, since a search didn't turn up anything that looked quite like this.
Dana
So, I noticed that Deluged was losing 'active' seeding connectivity after a few hours with the cache size and expiry bumped up. It appeared that once cache hit about 80000 the Port test would fail and connections would drop to just a few. Set cache_size to 0, and no problems after 37 hours.
This seems like it could be a libtorrent issue and I just grabbed 0.15.8 to try out. I'll post if it helps or I get things narrowed down a bit more.
I'm only seeding 4 torrents with nothing downloading on my solid folding box that has plenty of ram to cache them all, which is why I was trying to run cache_size 300000 and cache_expiry 600000. Yes, it will seem a bit ridiculous to most, but it still shouldn't break the silly thing.

Anyways, here's a few bits of the debug logs where the failures start. Nothing has been config'd oddly except for the cache settings.
Code: Select all
[INFO ] 23:08:36 daemon:129 Deluge daemon 1.3.3
[DEBUG ] 23:08:36 daemon:130 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'interface': None, 'logfile': 'C:\\Users\\dana\\AppData\\Roaming\\deluge.log', 'config': None, 'port': None, 'pidfile': None, 'donot': True}
[DEBUG ] 23:08:36 daemon:131 args: []
[DEBUG ] 23:08:36 core:76 Core init..
[INFO ] 23:08:36 core:80 Starting libtorrent 0.15.7.0 session..
[INFO ] 23:18:12 rpcserver:203 Deluge Client connection made from: 192.168.1.101:44594
[DEBUG ] 23:18:36 torrentmanager:678 Saving torrent state file.
[DEBUG ] 23:18:40 config:216 Setting 'cache_size' to 300000 of <type 'int'>
[DEBUG ] 23:18:40 preferencesmanager:504 cache_size: 300000
[DEBUG ] 23:18:40 rpcserver:466 intevents: {5: ['NewVersionAvailableEvent', 'PluginEnabledEvent', 'SessionPausedEvent', 'TorrentAddedEvent', 'PluginDisabledEvent', 'ConfigValueChangedEvent', 'PreTorrentRemovedEvent', 'TorrentStateChangedEvent', 'TorrentFinishedEvent', 'SessionResumedEvent', 'TorrentRemovedEvent']}
[DEBUG ] 23:18:40 rpcserver:470 Emit Event: ConfigValueChangedEvent ['cache_size', 300000]
[DEBUG ] 03:56:42 alertmanager:123 file_error_alert: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 03:56:42 torrentmanager:1083 on_alert_file_error: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 04:05:31 alertmanager:123 file_error_alert: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 04:05:31 torrentmanager:1083 on_alert_file_error: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 04:08:39 alertmanager:123 tracker_error_alert: linuxmint-201109-gnome-dvd-32bit.iso (http://torrents.linuxmint.com/announce.php) (-1) An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full (1)
[DEBUG ] 04:08:39 alertmanager:123 tracker_error_alert: linuxmint-201109-gnome-dvd-64bit.iso (http://torrents.linuxmint.com/announce.php) (-1) An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full (1)
[DEBUG ] 04:08:39 alertmanager:123 tracker_error_alert: linuxmint-201109-xfce-dvd-32bit.iso (http://torrents.linuxmint.com/announce.php) (-1) An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full (1)
[DEBUG ] 04:08:39 torrentmanager:966 on_alert_tracker_error
[DEBUG ] 04:08:39 torrentmanager:966 on_alert_tracker_error
[DEBUG ] 04:08:39 torrentmanager:966 on_alert_tracker_error
[DEBUG ] 04:08:39 alertmanager:123 tracker_error_alert: linuxmint-201109-xfce-dvd-64bit.iso (http://torrents.linuxmint.com/announce.php) (-1) An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full (1)
[DEBUG ] 04:08:39 torrentmanager:966 on_alert_tracker_error
[DEBUG ] 04:19:02 alertmanager:123 file_error_alert: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 04:19:02 torrentmanager:1083 on_alert_file_error: linuxmint-201109-gnome-dvd-64bit.iso file () error: Not enough space
[DEBUG ] 04:19:02 torrent:379 set_state_based_on_ltstate: Seeding
[DEBUG ] 04:19:02 torrent:380 session.is_paused: False
[DEBUG ] 04:21:27 alertmanager:123 file_error_alert: linuxmint-201109-gnome-dvd-32bit.iso file () error: Not enough space
[DEBUG ] 04:21:27 torrentmanager:1083 on_alert_file_error: linuxmint-201109-gnome-dvd-32bit.iso file () error: Not enough space
So... just thought I'd throw a post in here, since a search didn't turn up anything that looked quite like this.
Dana