Deluge web dies

General support for problems installing or using Deluge
Post Reply
MoRniR
New User
New User
Posts: 3
Joined: Tue Aug 06, 2013 7:27 am

Deluge web dies

Post by MoRniR »

Hi,

Sorry if this has been asked, I've searched but no result so far.

I'm running Ubuntu 12.04.2 on a HP Proliant Microserver, and installed Deluge following these instructions: http://www.linuxplained.com/install-del ... untu-1204/ (just the daemon and web, no gui)

Daemon is running fine. Deluge-web ran well for two days, but now everytime I go into the web app and logout (or close the webui) the deluge-web module seems to hang.

This is the message:

web.Server Traceback (most recent call last):
<type 'exceptions.IOError'>: [Errno 24] Too many open files: '/usr/lib/python2.7/dist-packages/deluge/ui/web/index.html'

/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 132 in process
/usr/lib/python2.7/dist-packages/twisted/web/server.py, line 167 in render
/usr/lib/python2.7/dist-packages/deluge/ui/web/server.py, line 573 in render
/usr/lib/python2.7/dist-packages/mako/template.py, line 224 in __init__
/usr/lib/python2.7/dist-packages/mako/template.py, line 267 in _compile_from_file
<type 'exceptions.IOError'>: [Errno 24] Too many open files: '/usr/lib/python2.7/dist-packages/deluge/ui/web/index.html'

I have only 8 torrents at this moment active, total about 100 files inside them I think.

I can just restart the deluge-web doing stop deluge-web -> start deluge-web, and it works fine again till next login, but having to log via ssh everytime just to put up a torrent is a bit stupid.

Anyone knows about this?

Thank you very much for reading.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: Deluge web dies

Post by abubin »

you need to increase your file limits in limits.conf and sysctl.conf

modify them to at least 65535.

Refer to this link for the guide:
http://www.cyberciti.biz/faq/linux-incr ... pen-files/
MoRniR
New User
New User
Posts: 3
Joined: Tue Aug 06, 2013 7:27 am

Re: Deluge web dies

Post by MoRniR »

Working, thank you very much.

Just in case, my own solution for the problem (stupid but effective) was putting up a cronjob with an sh with this content:

#!/bin/sh
stop deluge-web
start deluge-web
MoRniR
New User
New User
Posts: 3
Joined: Tue Aug 06, 2013 7:27 am

Re: Deluge web dies

Post by MoRniR »

Sorry to be here again, but it seems it is not working :(. Same problem.

I've noted now that deluge-web process goes to 100% cpu when it fails, I suppose it happened that way earlier.
Post Reply