aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Added lots of files in one day and get this error:  (Read 7073 times)

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Added lots of files in one day and get this error:
« on: February 19, 2008, 09:20:38 AM »

Hi,

i get a bunch of these...!!

2008-02-19 16:11:43: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
etc....(lots)
and these:
2008-02-19 16:18:42: Logger.cpp(269): Error: Failed to create a temporary file name (error 24: Too many open files)
2008-02-19 16:18:42: Logger.cpp(269): Error: can't open user configuration file.

i use aMuled latest from Festor Packages

If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048

aMuled crashes after 1Minute !!

amule.conf file:

MaxDownload=0
MaxUpload=1053
SlotAllocation=20
...
Port=4662
UDPPort=4672
..
MaxSourcesPerFile=300
MaxConnections=1024

So im stuck as half the files i added in aMuleGUI wern't there...i added about 300-400 in about an hour...

2008-02-19 16:02:00: DownloadQueue.cpp(175): Found 940 part files

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Added lots of files in one day and get this error:
« Reply #1 on: February 19, 2008, 10:22:41 AM »

What's the output of ulimit -n ?
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #2 on: February 19, 2008, 10:27:45 AM »

firebox@firebox-desktop:~$ ulimit -n
1024
firebox@firebox-desktop:~$ ls /proc/$(pidof amuled)/fd|wc -l
1024
firebox@firebox-desktop:~$
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Added lots of files in one day and get this error:
« Reply #3 on: February 19, 2008, 02:09:27 PM »

Well, increase your opened file limit by executing e.g. "ulimit -n 2048" as root and your problems should be gone.
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #4 on: February 19, 2008, 02:24:38 PM »

i'll give that a try...

:)

whats the difference between this and they way i did it in my first post?

If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048

aMuled crashes after 1Minute !!
« Last Edit: February 19, 2008, 02:40:09 PM by hopelessone »
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #5 on: February 19, 2008, 02:34:29 PM »

nope gives me:

2008-02-19 21:35:04: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
2008-02-19 21:35:06: ClientCreditsList.cpp(381): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Added lots of files in one day and get this error:
« Reply #6 on: February 19, 2008, 03:05:48 PM »

Could you please check the ulimit and the file descriptors in the moment aMuled crashes? What values do they have?
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #7 on: February 19, 2008, 03:30:00 PM »

Check the what what with the what?

How so?
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Added lots of files in one day and get this error:
« Reply #8 on: February 19, 2008, 03:38:42 PM »

Actually, doing "ulimit -n 2048"  as root will simply change the limit for the root user. ;)
You'll either have to specify the limit in /etc/security or /etc/security/limits.conf , or in whatever startup script your distro provides that is run during boot (such as /etc/conf.d/local.start when using Gentoo).
Check this page: http://gentoo-wiki.com/SECURITY_Limit_User_Processes

Check with "ulimit -n" before running aMule to see if you've actually set the value for that user.
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #9 on: February 19, 2008, 03:43:46 PM »

i'm gonna kill myself...
in the the first post in this thread...

i said...........

If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048

aMuled crashes after 1Minute !!
<<---- Still Does...

what's that you say? have a beer instead of killing myself?...OK...
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Added lots of files in one day and get this error:
« Reply #10 on: February 19, 2008, 03:45:43 PM »

firebox@firebox-desktop:~$ ulimit -n
1024
firebox@firebox-desktop:~$ ls /proc/$(pidof amuled)/fd|wc -l
1024
firebox@firebox-desktop:~$

Clearly you did something wrong. ;)
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #11 on: February 19, 2008, 03:49:44 PM »

ok ...i have to put the limits back...oh man...

If i increase my limits in /etc/security/limits.conf
User soft nofile 2048
User hard nofile 2048

aMuled crashes after 1Minute !! <<---- Still Does...

so i have to log out and reset it back to 1024...

i will log out and post a new one...one second...please..
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #12 on: February 19, 2008, 03:52:55 PM »

firebox@firebox-desktop:~$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 8188
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 2048
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 8188
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


and watch aMuled crash in 1 minute......
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Added lots of files in one day and get this error:
« Reply #13 on: February 19, 2008, 03:54:04 PM »

Can you post a backtrace?
Logged

hopelessone

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 107
  • Ubuntu 8.04
Re: Added lots of files in one day and get this error:
« Reply #14 on: February 19, 2008, 03:58:22 PM »

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217763648 (LWP 12135)]
0x080707e9 in ?? ()
(gdb) bt
#0  0x080707e9 in ?? ()
#1  0x08072276 in ?? ()
#2  0x080724e3 in ?? ()
#3  0xb79bc51a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb79bc5c7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x08072810 in ?? ()
#6  0xb76c2450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#7  0x08070551 in ?? ()
(gdb) bt full
#0  0x080707e9 in ?? ()
No symbol table info available.
#1  0x08072276 in ?? ()
No symbol table info available.
#2  0x080724e3 in ?? ()
No symbol table info available.
#3  0xb79bc51a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#4  0xb79bc5c7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#5  0x08072810 in ?? ()
No symbol table info available.
#6  0xb76c2450 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#7  0x08070551 in ?? ()
No symbol table info available.
(gdb) bt fullthread apply all bt
No symbol table is loaded.  Use the "file" command.
Logged
Pages: [1] 2