Storage error: [File chunk write error: Cannot allocate memory.] error
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Like Tree11Likes

Thread: Storage error: [File chunk write error: Cannot allocate memory.] error

  1. #1

    Join Date
    Oct 2011
    Posts
    79

    Default Storage error: [File chunk write error: Cannot allocate memory.] error

    Hi,

    I'm new user with rtorrent and rutorrent.

    I just bought my Kimsufi 2G. After that, I installed rutorrent thanks to the topic http://forums.rutorrent.org/index.php?topic=608.0 . It works well when I had some torrents. However, when I had more than 20 torrents for seeding and about 4 downloading torrents. It occurs the error "Storage error: [File chunk write error: Cannot allocate memory.]".

    I found some articles on the Internet which said I must edit my rtorrent.rc. But I don't know where is the file. I couldn't find the file on /home/<rutorrent_user> and /var/rutorrent/rutorrent/conf/users/<rutorrent_user>. I'm using multi-user rutorrent.

    What is the best setting for my server to fix the problem? My server is Kimsufi 2G, Celeron 1,2Ghz, 2G RAM, 1TB HDD.



    Many thanks,
    Last edited by konlen; October 26th, 2011 at 11:05 AM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Feb 2011
    Location
    London, UK
    Posts
    1,646

    Default

    the .rtorrent.rc file is in the user home directory, it has the '.' at the beginning which makes it a hidden file. Just log in using shell, and type cd and it will take you to your home directory, then type ls -a and you should see it in the listing.

    I use the same server and below are the settings I use, which seem to work fine from me, adjust the directory settings according to how your system is organised.

    Code:
    # BitTorrent
    max_downloads_global = 0
    max_uploads_global = 0
    min_peers = 30 
    max_peers = 150 
    min_peers_seed = -1 
    max_peers_seed = -1
    
    
    max_uploads = 150
    
    
    download_rate = 0
    upload_rate = 0
    
    
    # Directories
    directory = /home/'username'/rtorrent/downloads
    
    
    session = /home/'username'/rtorrent/.session
    
    
    schedule = watch_directory,5,5,load_start=/home/'username'/rtorrent/torrents/*.torrent
    
    
    
    
    
    
    # Network
    port_range = 50000-52999 
    network.scgi.open_port = localhost:5000
    network.http.ssl_verify_peer.set=0
    port_random = yes
    use_udp_trackers = yes 
    encryption = allow_incoming,enable_retry,prefer_plaintext
    network.max_open_files.set = 1024 
    network.max_open_sockets.set = 1536 
    network.http.max_open.set = 48 
    network.send_buffer.size.set = 4M 
    network.receive_buffer.size.set = 4M
    dht = disable
    peer_exchange = no
    
    
    
    
    # Hash
    check_hash = no
    hash_read_ahead = 30
    hash_interval = 5
    hash_max_tries = 5
    pieces.preload.type.set = 1
    max_memory_usage = 3500M
    Last edited by Arakasi; October 26th, 2011 at 11:27 AM.
    konlen likes this.

    "The strength to change what I can, the inability to accept what I can't, and the incapacity the tell the difference."


  4. #3

    Join Date
    Jun 2011
    Location
    Paranoialand
    Posts
    1,534
    Blog Entries
    1

    Default

    4 torrents downloading is A lot, because the more torrents you have active the more your HDD drive has to work and it it's too much it will temporarely write in the RAM. This error occurs when RAM is full.

    The only possible way to solve this, if possible, is to set the memory configuration higher, if it's too low.
    Can you please post your rtorrent configuration?

    If you need help feel free to PM me, but keep in mind that asking for an invite is not considered help.

  5. #4

    Join Date
    Oct 2011
    Posts
    79

    Default

    Hi Arakasi, Many thanks. I see many differences between your .rtorrent.rc and my .rtorrent.rc file. Especially:
    scgi_port = 127.0.0.1:23876
    port_range = 23877-23877
    Should I change scgi_port and port_range like your settings?

    After changing the file, should I restart my server or do something else to apply new settings?

    Hi Magister, this is my setting file.

    scgi_port = 127.0.0.1:23876
    encoding_list = UTF-8
    system.umask.set = 022
    port_range = 23877-23877
    port_random = no
    check_hash = no
    directory = /home/<user>/downloads
    session = /home/<user>/rtorrent/session
    encryption = allow_incoming, try_outgoing, enable_retry
    schedule = watch_directory,1,1,"load_start=/home/<user>/rtorrent/watch/*.torrent"
    #schedule = untied_directory,5,5,"stop_untied=/home/<user>/rtorrent/watch/*.torrent"
    trackers.enable = 1
    #min_peers = 40
    #max_peers = 100
    #min_peers_seed = 10
    #max_peers_seed = 50
    #max_uploads = 15
    #download_rate = 0
    #upload_rate = 0
    use_udp_trackers = yes
    dht = auto
    dht_port = 6881
    peer_exchange = yes
    #hash_read_ahead = 10
    #hash_interval = 100
    #hash_max_tries = 10
    execute = {sh,-c,/usr/bin/php /var/rutorrent/rutorrent/php/initplugins.php <user> &}
    Last edited by konlen; October 26th, 2011 at 11:47 AM.

  6. #5

    Join Date
    Jun 2011
    Location
    Paranoialand
    Posts
    1,534
    Blog Entries
    1

    Default

    Quote Originally Posted by konlen View Post
    Hi Arakasi, Many thanks. I see many differences between your .rtorrent.rc and my .rtorrent.rc file. Especially:


    Should I change scgi_port and port_range like your settings?

    After changing the file, should I restart my server or do something else to apply new settings?
    The port range is not relevant for this error, but you can change it if you want to.
    Your server tries to write on the HDD and when the HDD can't keep up with the speeds it temporarely writes in the memory.
    Go to rutorrent/rtorrent settings/connection/other limitations / memory
    It is possible that you have set this too low, in which case you should change the file that Arakasi has mentioned and change max memory to something like 3277MB. (Works for me)
    After that you can either reboot your server or you can restart rtorrent.


    EDIT: In your rtorrent.rc file there should somewhere be
    max_memory_usage = ????MB
    ???? = some number
    In my file I have it set to 3277MB.
    Please check in rutorrent/rtorrent settings/ connection / other limitation / memory
    If it's already set to something like 3500MB or more you can nothing to prevent this error and you have just too many torrents downloading at the same time and your server can't keep up, otherwise change it and restart rtorrent or your whole server.
    Last edited by Magister; October 26th, 2011 at 12:01 PM.
    Rock3r and konlen like this.

    If you need help feel free to PM me, but keep in mind that asking for an invite is not considered help.

  7. #6

    Join Date
    Oct 2011
    Posts
    79

    Default

    After changine the port, I see the following error. How to fix it? And how to restart rtorrent only? I always reboot my server to apply new setting. Many thanks,
    [26.10.2011 21:29:31] No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

  8. #7

    Join Date
    Jun 2011
    Location
    Paranoialand
    Posts
    1,534
    Blog Entries
    1

    Default

    Quote Originally Posted by konlen View Post
    After changine the port, I see the following error. How to fix it? And how to restart rtorrent only? I always reboot my server to apply new setting. Many thanks,
    Ok first question: Is there any particular reason why you changed the port? You do know that this won't solve your error.
    This error means that rtorrent is not running.
    Type
    /etc/init.d/autodl
    (In my case I have renamed this whole things - in your case it's probably something like rtorrent or so)
    just type
    /etc/init.d/
    ls
    And check if you have rtorrent there, then do /etc/init.d/rtorrent ...
    konlen likes this.

    If you need help feel free to PM me, but keep in mind that asking for an invite is not considered help.

  9. #8

    Join Date
    Feb 2011
    Location
    London, UK
    Posts
    1,646

    Default

    Leave the ports as it was previously, as these port details are reflected in ruTorrent, so you would need to go and change the config there. Better just to leave it as it was installed. Also your directory settings should all be fine as they are.

    If you are using private trackers turn dht and peer exchange off

    dht = disable
    peer_exchange = no
    Last edited by Arakasi; October 26th, 2011 at 12:51 PM.
    konlen likes this.

    "The strength to change what I can, the inability to accept what I can't, and the incapacity the tell the difference."


  10. #9

    Join Date
    Oct 2011
    Posts
    79

    Default

    Quote Originally Posted by Magister View Post
    Ok first question: Is there any particular reason why you changed the port? You do know that this won't solve your error.
    This error means that rtorrent is not running.
    Type (In my case I have renamed this whole things - in your case it's probably something like rtorrent or so)
    just type
    And check if you have rtorrent there, then do /etc/init.d/rtorrent ...
    Many thanks. I change back the port and restart rtorrent. It works well.

    Command to call rtorrent is:
    /etc/init.d/autodl_<rtorrent_user>

  11. #10

    Join Date
    Jun 2011
    Location
    Paranoialand
    Posts
    1,534
    Blog Entries
    1

    Default

    Now the problem why you have even opened this thread is still not solved. Just because it's not here anymore doesn't mean it's solved.
    Did you ever changed the memory configuration, because the memory is the reason for your error.
    konlen likes this.

    If you need help feel free to PM me, but keep in mind that asking for an invite is not considered help.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 3
    Last Post: December 6th, 2011, 05:29 PM
  2. Replies: 1
    Last Post: October 28th, 2011, 01:50 PM
  3. Replies: 4
    Last Post: June 23rd, 2011, 10:59 PM
  4. Replies: 8
    Last Post: March 7th, 2011, 04:00 AM
  5. Memory Allocation error on T-I!
    By sTuDD in forum Help
    Replies: 16
    Last Post: December 1st, 2010, 02:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •