LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2016, 09:53 AM   #1
akya
LQ Newbie
 
Registered: Nov 2008
Location: India
Distribution: Fedora 25
Posts: 17

Rep: Reputation: 0
Dar throwing errors, Too many open files


I use dar in shell scripts to backup my stuff but recently I have started getting errors when backing up large folders. For ex:
Code:
Cannot read directory contents: /media/Data/Router ASUS RT-N12 LX : Error opening directory: /media/Data/Router ASUS RT-N12 LX : Too many open files
Cannot read directory contents: /media/Data/Textfiles : Error opening directory: /media/Data/Textfiles : Too many open files
Cannot read directory contents: /media/Data/Video_conversion : Error opening directory: /media/Data/Video_conversion : Too many open files
Cannot read directory contents: /media/Data/Website : Error opening directory: /media/Data/Website : Too many open files
Code:
Error while saving /media/Data/Design/Icons/IcoMoon/cc-zero.png: Cannot open file : Too many open files
Error while saving /media/Data/Design/Icons/IcoMoon/cc.png: Cannot open file : Too many open files
Error while saving /media/Data/Design/Icons/IcoMoon/ccw.png: Cannot open file : Too many open files
I am using Fedora 24, and dar 2.5.2

Last edited by akya; 06-30-2016 at 11:09 AM.
 
Old 06-30-2016, 09:59 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,387

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Hi

That error message is not really from dar, but from the kernel. But of course, it could be dar is having too many files open at once. You can increase the limit:

http://www.cyberciti.biz/faq/linux-i...of-open-files/
 
Old 06-30-2016, 11:05 AM   #3
akya
LQ Newbie
 
Registered: Nov 2008
Location: India
Distribution: Fedora 25
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Guttorm View Post
Hi

That error message is not really from dar, but from the kernel. But of course, it could be dar is having too many files open at once. You can increase the limit:

http://www.cyberciti.biz/faq/linux-i...of-open-files/
Thanks, I had tried looking about the limit, but
cat /proc/sys/fs/file-maxc

shows my limit is at 2097152, which is already high enough?
 
Old 07-01-2016, 12:16 AM   #4
akya
LQ Newbie
 
Registered: Nov 2008
Location: India
Distribution: Fedora 25
Posts: 17

Original Poster
Rep: Reputation: 0
Ok I added this to limits.conf
* soft nofile 409600
* hard nofile 1024000
root soft nofile 409600
root hard nofile 1024000

Now If I backup with dar under root, the backup completes as it should. If I check limits using su, the new limits are in place. But limits for my current user are the old ones. Unable to set limits using terminal either.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pygtk configure throwing odd errors. ninja master Linux - Software 2 07-28-2010 04:22 AM
New Cavalry external USB HD throwing errors peter3731 Linux - Hardware 0 02-10-2008 02:26 AM
LXer: Disk ARchive (Backup and Restore) using dar and kdar(dar Frontend) LXer Syndicated Linux News 0 01-12-2007 06:54 PM
Kernel 2.6.19 throwing up hd read errors cr9c1 Slackware 6 12-18-2006 05:01 PM
GCC First Pass throwing errors...pls help! chakkaradeepcc Linux From Scratch 2 04-11-2005 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration