Os Error 31 Too Many Links
Contents |
sorted by: [ date ] [ thread ] [ subject ] [ author ] On Mar 11, 3:08am, mkdir too many links Thomas Guettler
Cp: Cannot Create Directory Too Many Links
and renaming: > > > temp = tempfile.NamedTemporaryFile(delete=False) > > temp.file.write(data) > > temp.file.close() > > os.rename(temp.name, output_file) > > > This worked but after 39567 files
Ext4 Max Subdirectories
os.rename raises an OSError: [Errno > > 31] Too many links > > > I can still create files in this directory so I doubt it is a platform > > limitation. > > Can you tell what is wrong? Am I not freeing the temporary file > > resources properly? > > If you checksum_type: too many links are on linux you can have a look at the open file descriptors of > a running process like this: > > ls -l /proc/PID/fd/ > > But I guess it is a limitation of your filesystem. What do you use? > > I once had this problem with ext2. It has a low limit for > subdirectories. > > With xfs the limits are much greater. > > Thomas > > -- > Thomas Guettler,http://www.thomas-guettler.de/ > E-Mail: guettli (*) thomas-guettler + de I am using Ubuntu 9.10 with ext3, which I believe has a limit for the number of subdirectories but not files. Thanks for the open file descriptor tip - I will check that out. Richard Previous message (by thread): os.rename [Errno 31] Too many links Next message (by thread): Anything like "Effective Java" for Python? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Python-list mailing list
Perl Lists Python Lists PHP Lists Ruby Lists Tcl Lists ActiveState
Ext4 Subdirectory Limit
Lists Lists » python-list os.rename [Errno 31] Too many too many links fastboot links From: Richard
Sign in Pricing Blog Support Search GitHub https://github.com/cykl/infoqscraper/issues/4 This repository Watch 9 Star 87 Fork http://www.mobileread.com/forums/showthread.php?t=218164 10 cykl/infoqscraper Code Issues 2 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue OSError: [Errno 31] Too many links #4 Closed mortenlarsen opened this Issue Apr 9, 2013 · 5 comments too many Projects None yet Labels bug Milestone v0.0.4 Assignees cykl 2 participants mortenlarsen commented Apr 9, 2013 Installed with pip: $ ~/.local/bin/infoqscraper -c presentation download latency-pitfalls Traceback (most recent call last): File "/home/user/.local/bin/infoqscraper", line 46, in sys.exit(main.main()) File "/home/user/.local/lib/python2.7/site-packages/infoqscraper/main.py", too many links line 357, in main module.main(infoq_client, args.module_args) File "/home/user/.local/lib/python2.7/site-packages/infoqscraper/main.py", line 193, in main return command.main(infoq_client, args.command_args) File "/home/user/.local/lib/python2.7/site-packages/infoqscraper/main.py", line 297, in main builder.create_presentation(output_path=output) File "/home/user/.local/lib/python2.7/site-packages/infoqscraper/presentation.py", line 270, in create_presentation frame_pattern = self._prepare_frames(jpg_slides) File "/home/user/.local/lib/python2.7/site-packages/infoqscraper/presentation.py", line 409, in _prepare_frames os.link(slides[slide_index], os.path.join(self.tmp_dir, "frame-{0:04d}." + ext).format(frame)) OSError: [Errno 31] Too many links Owner cykl commented Apr 9, 2013 Thanks for the report. However I'm not able to reproduce this issue on my systems. For some reason it seems that the creation of a hard fails. Could you: describe your environment (OS, file systems etc.) Attach the output of strace -e link ~/.local/bin/infoqscraper -c presentation download latency-pitfalls Check the content of the temporary directory, /tmp/infoq*. A command like ls -lh /tmp/infoq* | cut -d' ' -f2 | egrep "[0-9]$"
Join our MobileRead Facebook Fan Page! Latest Uploads Browse Latest Uploads Latest Uploads (Feed) Kindle Download Guide Formats Kindle (MOBI) Sony BBeB (LRF) ePub (EPUB) eBookwise (IMP) Miscellaneous Search Forums Custom Search Advanced Search Attachment Search Find New Posts All New Posts - w/o E-Book Uploads Last 24 Hours Last 2 Days Last 5 Days Your Posts Go to Page... Thread Tools Search this Thread 07-16-2013, 02:11 PM #1 Boingo Junior Member Posts: 3 Karma: 10 Join Date: Jul 2013 Device: Nook OSError: [Errno 31] Too many links: Hello there, Been happily using Calibre for some time, through a number of versions. No problems until now. I am on Kubuntu Linux 12.04. I have a lot of books (66851) and recently when trying to add more, I get this for every book. [Some names have changed to protect the innocent] Any help or hints would be great. Thank you in advance. calibre, version 0.9.39 ERROR: Some failures: Failed to apply updated metadata for some books in your library. Click "Show Details" to see details. Some Book Title - Some Author Traceback (most recent call last): File "site-packages/calibre/gui2/actions/edit_metadata.py", line 670, in apply_mi File "site-packages/calibre/library/database2.py", line 2278, in set_metadata File "site-packages/calibre/library/database2.py", line 641, in set_path File "os.py", line 150, in makedirs File "os.py", line 157, in makedirs OSError: [Errno 31] Too many links: '/home/myhome/Books/CalibreLibrary/Some Author' Boingo View Public Profile Find More Posts by Boingo Track Posts by Boingo via RSS 07-16-2013, 07:54 PM #2 BetterRed null operator Posts: 7,285 Karma: 6425993 Join Date: Mar 2012 Location: NSW Australia Device: none if I google for Kubuntu Too many links - some references refer to a limit of 64K links 64K is 65,536 - which is not far from 66851 - just a thought BR Advertisement BetterRed View Public Profile Find More Posts by BetterRed Track Posts by BetterRed via RSS 07-17-2013, 02:40 PM #3 jgaiser Omnivorous Posts: 3,272 Karma: 25839547 Join Date: Feb 2008 Location: Rural NW Oregon Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1 I think the error is related to *symbolic links* Does calibre use symbolic links instead of actual directories? I don't know. jgaiser View Public Profile Find More Posts by jgaiser Track Posts by jgaiser via RSS 07-17-2013, 03:46 PM #4 PeterT Grand Sorcerer Posts: 9,280 Karma: 56044859 Join Date: Nov 2007 Location: Toronto Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo Check the quota setting to see if you have exceeded the de