[Bug 463347] Re: devices not detected -- too many open files
For as long as I can remember, going back several Ubuntu versions, I've been able to plug in my external USB backup drive and it has automatically mounted on /media/Backup and opened a Nautilus window. However, about 2-3 weeks ago this just stopped working and I have had to manually mount my external USB backup drive or reboot my laptop to get auto-mounting working again. Having found this bug report, running the sudo udevadm control --reload-rules seems to get auto-mounting working again. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Oops. I forgot to say that my laptop is running Ubuntu 9.10. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
hi i have fresh ubuntu 9.10 install i updated and upgraded everything using synaptic. its about 200 mb of data after update i get udev ver 147 6.1 and my usb 8 gb flash is recognised. the problem i got is that there is high cpu usage in around 40% non-stop. i checked and found that when i downgrade udev to version 147 6.0 then cpu usage is around 0 to 3% max. but with version 147 6.0 usb flash is not recognised. so i got choice use udev 147 6.0 and dont use usb flash drive or use udev 147 6.1 and kill my cpu. my laptop spec msi gt 725. it have q9000 quad core 2Ghz ddr2 4gb hdd 500gb graphic ati hd 4850 sound intel acl1200+ati hdmi. is there any solution for it? -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
OK I just booted and plugged in a USB mp3 player (USB Storage) it automounted and opened a window in gnome. I did this because I tried to do the same just before rebooting and I needed to stop/start udev in order to get the /dev/sdc1 device created. The difference ? .. before the reboot I had been running stress stress -d 100 -i 100 plus other work to create load on my disk (I have a failing seagate 1.5Tb disk). So I have a failing case followed by a working case: # udevd --version 147 Most recent (working) /var/log/messages: Feb 13 17:12:43 eddie kernel: [ 482.284514] usb 4-2: new full speed USB device using uhci_hcd and address 2 Feb 13 17:12:44 eddie kernel: [ 482.455130] usb 4-2: configuration #1 chosen from 1 choice Feb 13 17:12:44 eddie kernel: [ 482.486055] Initializing USB Mass Storage driver... Feb 13 17:12:44 eddie kernel: [ 482.486275] scsi4 : SCSI emulation for USB Mass Storage devices Feb 13 17:12:44 eddie kernel: [ 482.486409] usbcore: registered new interface driver usb-storage Feb 13 17:12:44 eddie kernel: [ 482.486414] USB Mass Storage support registered. Feb 13 17:12:49 eddie kernel: [ 487.492841] scsi 4:0:0:0: Direct-Access JUNGSOFT MUZIO JM-300 PQ: 0 ANSI: 0 Feb 13 17:12:49 eddie kernel: [ 487.493898] sd 4:0:0:0: Attached scsi generic sg3 type 0 Feb 13 17:12:49 eddie kernel: [ 487.543801] sd 4:0:0:0: [sdc] 1013760 512-byte logical blocks: (519 MB/495 MiB) Feb 13 17:12:49 eddie kernel: [ 487.629792] sd 4:0:0:0: [sdc] Write Protect is off Feb 13 17:12:49 eddie kernel: [ 487.767789] sdc: sdc1 Feb 13 17:12:49 eddie kernel: [ 487.911793] sd 4:0:0:0: [sdc] Attached SCSI removable disk previous: # grep udev /var/log/messages Feb 8 18:46:32 eddie kernel: [8.961440] udev: starting version 147 Feb 10 08:13:27 eddie kernel: [8.928125] udev: starting version 147 Feb 11 18:31:02 eddie kernel: [ 13.560037] udev: starting version 147 Feb 12 19:44:27 eddie kernel: [ 13.585444] udev: starting version 147 Feb 13 12:27:31 eddie kernel: [60199.243449] udev: starting version 147 -- this is me doing stop/start Feb 13 17:05:02 eddie kernel: [8.832194] udev: starting version 147 From start of day ... (I guess popularity-contest ignores my proxy settings :-) ) Feb 13 08:03:45 eddie popularity-contest: unable to submit report to http://popcon.ubuntu.com/popcon-submit.cgi. Feb 13 08:03:45 eddie popularity-contest: unable to submit report. Feb 13 12:06:47 eddie kernel: [58955.212026] usb 4-1: new full speed USB device using uhci_hcd and address 2 Feb 13 12:06:47 eddie kernel: [58955.387137] usb 4-1: configuration #1 chosen from 1 choice Feb 13 12:06:47 eddie kernel: [58955.532833] Initializing USB Mass Storage driver... Feb 13 12:06:47 eddie kernel: [58955.533249] scsi4 : SCSI emulation for USB Mass Storage devices Feb 13 12:06:47 eddie kernel: [58955.533853] usbcore: registered new interface driver usb-storage Feb 13 12:06:47 eddie kernel: [58955.533858] USB Mass Storage support registered. Feb 13 12:06:50 eddie kernel: [58958.448047] usb 4-1: USB disconnect, address 2 Feb 13 12:07:50 eddie kernel: [59018.244527] usb 4-1: new full speed USB device using uhci_hcd and address 3 Feb 13 12:07:50 eddie kernel: [59018.419138] usb 4-1: configuration #1 chosen from 1 choice Feb 13 12:07:50 eddie kernel: [59018.422214] scsi5 : SCSI emulation for USB Mass Storage devices Feb 13 12:07:53 eddie kernel: [59021.688041] usb 4-1: USB disconnect, address 3 Feb 13 12:08:04 eddie kernel: [59033.27] usb 4-1: new full speed USB device using uhci_hcd and address 4 Feb 13 12:08:05 eddie kernel: [59033.175148] usb 4-1: configuration #1 chosen from 1 choice Feb 13 12:08:05 eddie kernel: [59033.178206] scsi6 : SCSI emulation for USB Mass Storage devices Feb 13 12:08:10 eddie kernel: [59038.180803] scsi 6:0:0:0: Direct-Access JUNGSOFT MUZIO JM-300 PQ: 0 ANSI: 0 Feb 13 12:08:10 eddie kernel: [59038.181382] sd 6:0:0:0: Attached scsi generic sg3 type 0 Feb 13 12:08:10 eddie kernel: [59038.256785] sd 6:0:0:0: [sdc] 1013760 512-byte logical blocks: (519 MB/495 MiB) Feb 13 12:08:10 eddie kernel: [59038.342775] sd 6:0:0:0: [sdc] Write Protect is off Feb 13 12:08:10 eddie kernel: [59038.494780] sdc: sdc1 Feb 13 12:08:10 eddie kernel: [59038.636793] sd 6:0:0:0: [sdc] Attached SCSI removable disk Feb 13 12:10:10 eddie kernel: [59158.725309] __ratelimit: 24 callbacks suppressed At this point /dev/sdc1 did NOT exist. I also note these (which may be of interest): # grep udevd /var/log/daemon.log Feb 13 12:11:10 eddie udevd[543]: worker [780] unexpectedly returned with status 0x0100 Feb 13 12:11:10 eddie udevd[543]: worker [780] failed while handling '/devices/pci:00/:00:1d.2/usb4/4-1/4-1:1.0/host6/target6:0:0/6:0:0:0/block/sdc' Feb 13 12:17:18 eddie udevd[543]: worker [12316] unexpectedly returned with status 0x0100 Feb 13 12:17:18 eddie udevd[543]: worker [12316] failed while handling
[Bug 463347] Re: devices not detected -- too many open files
Hello, I've got the same problem. My usb camera had no problem to be mounted with gphoto2 in my Karmic. When I installed the gnone-volume-manager (Version 2.24.1-3ubuntu1) is doens't mount anymore. I tried to uninstall gnome-volume-manager, and reinstall udev, gphoto2, libgphoto... and still not working. Let me give some system informations: When I plug the camera i have: tail -f /var/log/message: kernel: [183586.411330] usb 2-3: new high speed USB device using ehci_hcd and address 10 kernel: [183586.594509] usb 2-3: configuration #1 chosen from 1 choice udevadm monitor: KERNEL[1264625537.297637] add /devices/pci:00/:00:04.1/usb2/2-3 (usb) KERNEL[1264625537.297876] add /devices/pci:00/:00:04.1/usb2/2-3/2-3:1.0 (usb) UDEV [1264625537.310658] add /devices/pci:00/:00:04.1/usb2/2-3 (usb) UDEV [1264625537.317801] add /devices/pci:00/:00:04.1/usb2/2-3/2-3:1.0 (usb) udevadm test /devices/pci:00/:00:04.1/usb2/2-3 run_command: calling: test udevadm_test: version 147 This program is for debugging only, it does not run any program, specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run. parse_file: reading '/etc/udev/rules.d/10-vboxdrv.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-gnupg.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-hplip.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-ia64.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-infiniband.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-isdn.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-libgphoto2-2.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-libibverbs1.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-libpisock9.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-libsane.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-pilot-links.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-ppc.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-usbmount.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-xserver-xorg-input-wacom.rules' as rules file parse_file: reading '/lib/udev/rules.d/40-zaptel.rules' as rules file parse_file: reading '/lib/udev/rules.d/45-fuse.rules' as rules file parse_file: reading '/etc/udev/rules.d/45-libmtp7.rules' as rules file parse_file: reading '/lib/udev/rules.d/45-libmtp8.rules' as rules file parse_file: reading '/etc/udev/rules.d/45-libnjb5.rules' as rules file parse_file: reading '/lib/udev/rules.d/50-firmware.rules' as rules file parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file parse_file: reading '/lib/udev/rules.d/56-hpmud_support.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file parse_file: reading '/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules' as rules file parse_file: reading '/lib/udev/rules.d/61-mobile-action.rules' as rules file parse_file: reading '/lib/udev/rules.d/61-option-modem-modeswitch.rules' as rules file parse_file: reading '/lib/udev/rules.d/61-persistent-storage-edd.rules' as rules file parse_file: reading '/lib/udev/rules.d/64-device-mapper.rules' as rules file parse_file: reading '/lib/udev/rules.d/65-dmsetup.rules' as rules file parse_file: reading '/lib/udev/rules.d/65-mdadm.vol_id.rules' as rules file parse_file: reading '/lib/udev/rules.d/70-acl.rules' as rules file parse_file: reading '/lib/udev/rules.d/70-hid2hci.rules' as rules file parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules file parse_file: reading '/lib/udev/rules.d/70-printers.rules' as rules file parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file parse_file: reading '/lib/udev/rules.d/77-mm-ericsson-mbm.rules' as rules file parse_file: reading '/lib/udev/rules.d/77-mm-zte-port-types.rules' as rules file parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file parse_file: reading '/lib/udev/rules.d/79-fstab_import.rules' as rules file parse_file: reading
[Bug 463347] Re: devices not detected -- too many open files
Even after updating to latest udev (147~-6.1), I still have this problem. The start/stop udev workaround does work, but how do I get this fixed to avoid the workaround? -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 463347] Re: devices not detected -- too many open files
deerewright [2009-12-30 16:55 -]: Even after updating to latest udev (147~-6.1), I still have this problem. The start/stop udev workaround does work, but how do I get this fixed to avoid the workaround? If you really have this new version and rebooted since then, then you do not have this problem, but another unrelated bug. Can you please open a new report and describe the symptoms in detail? Thanks! -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Ragnar If none of these workarounds have helped, your problem is probably different. Log out and then check the locale settings for your user, probably they have been set to something other than what you expect. Set them to whatever language you normally use and log in again, then try mounting your drive. (i read this bug trying to fix the same problem). -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Hello, I've got the same problem. Usb drives don't automount. I've tried workaround and nothing happens. Here's the output: mount: wrong fs type, bad option, bad superblock on /dev/sdc1,missing codepage or helper program, or other errorIn some cases useful info is found in syslog - trydmesg | tail or so . and the dmesg | tail : [ 343.630427] sd 8:0:0:0: [sdc] Mode Sense: 00 c0 00 00 [ 343.630433] sd 8:0:0:0: [sdc] Assuming drive cache: write through [ 343.637338] sd 8:0:0:0: [sdc] Assuming drive cache: write through [ 343.637350] sdc: sdc1 [ 343.660578] sd 8:0:0:0: [sdc] Assuming drive cache: write through [ 343.660591] sd 8:0:0:0: [sdc] Attached SCSI removable disk [ 344.956850] FAT: IO charset ANSI_X3.4-1968 not found [ 344.972328] FAT: IO charset ANSI_X3.4-1968 not found [ 344.986351] FAT: IO charset ANSI_X3.4-1968 not found [ 345.042095] FAT: IO charset ANSI_X3.4-1968 not found Any help would be appreciated. Thanx in advance! -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Hi, restarting udev does not work for me. Also upgrading udev has no effect. Is there another workaroud ? Thanks Stitch -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 463347] Re: devices not detected -- too many open files
Stitch [2009-11-12 15:40 -]: Hi, restarting udev does not work for me. Also upgrading udev has no effect. Is there another workaroud ? You have a different problem then. Hard to say what the workaround is without knowing the details. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 463347] Re: devices not detected -- too many open files
Zeniff [2009-11-12 5:55 -]: Hi~ Sorry it took a while to get back, but I tried the fix, and it seems like it's working for me! Great to hear! I also recently clean- installed 9.10 on a desktop, but didn't seem to have this problem at all, so I guess it was specific to certain hardware? It happened pretty randomly, but it was only hardware dependent in the sense that depending on the number of partitions/drives/etc. and how long udev had been running you were more or less likely to hit the maximum number of open fds. Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
fresh karmic install on panasonic cf73 laptop. on livecd automount worked, after installing and upgrading system is not working anymore no usb storages are automounted. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Hi~ Sorry it took a while to get back, but I tried the fix, and it seems like it's working for me! Thank you very much!! I also recently clean- installed 9.10 on a desktop, but didn't seem to have this problem at all, so I guess it was specific to certain hardware? Anyway, thanks again! Have a great day! ^_^ -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Perhaps I'm doing something incorrectly, but none of these solutions work for me. I've tried the stop start udev and that hasn't helped. I'm trying to get my Casio camera to mount when i attach it via USB as well as an external USB hard drive and numerous USB sticks. I've also notice that in the nautilus computer view there are 4 cd rom drives instead of the two that were in jaunty. AMD64 Karmic udev 147 6.1 I would appreciate some help with this. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 463347] Re: devices not detected -- too many open files
piratemurray [2009-11-10 14:48 -]: I've tried the stop start udev and that hasn't helped. You have a different problem them. I would appreciate some help with this. Please do ubuntu-bug storage procedure for your camera. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Thanks Martin. I've followed your suggestion and created a new bug with the ubuntu-bug storage procedure. The bug number is #480131. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
This bug was fixed in the package udev - 147~-6.1 --- udev (147~-6.1) karmic-proposed; urgency=low * udev/udev-node.c: Properly close directory handles to fix a major fd leak which caused hotplugging to fail entirely. (LP: #463347) * udev/udevd.c, handle_inotify(): Fix datatype for FIONREAD ioctl return type. It must be an int, not an ssize_t; the latter causes uninitialized values and tries to allocate a 15 digit number of bytes, unless the upper half of the variable just happens to be zeroed. (Upstream commit http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=4daa146b) -- Martin Pitt martin.p...@ubuntu.com Mon, 02 Nov 2009 23:47:49 +0100 ** Changed in: udev (Ubuntu Karmic) Status: Fix Committed = Fix Released -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
I think there may be more than one cause for this problem. My udev isn't showing mad numbers of fds left open (though the scripted test case to reproduce the problem noted above by Martin Pitt *does* cause an increase in open file handles for udevd). WRT bug 466275, which has been marked as a potential dupe of this one, I have the same experience -- running palimpsest causes the removable drive, on next insert, to be recognised by gnome / gvfs / whatever is ignoring the drive. However, inserting the drive *does* produce device nodes -- and it's my understanding that that is part of what udev does? If so, then there's something else which is causing the drive(s) not to appear in the Nautilus places bar. Interestingly enough, other file managers (Dolphin, in particular), *do* see the drive as an unmounted volume which it will mount when the item is clicked. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Accepted into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Changed in: udev (Ubuntu Karmic) Status: In Progress = Fix Committed ** Tags added: verification-needed -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
stop/start udev makes things work again. tested it with a fat usb stick a ext3+luks usb hd Thanks! -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
sudo udevadm control --reload-rules is enough to fix the pb for me -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
I think I nailed it down. I uploaded an udev package with a proposed fix to my PPA: https://launchpad.net/~pitti/+archive/ppa With karmic final's duev I can reproduce the leak, and this version fixes it. However, to be 100% sure, I'd appreciate if you all could upgrade to my new udev package and confirm that everything works then? Please also reboot afterwards, since this bug only tends to happen after a clean boot. Thank you in advance! -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Even if it shouldn't be _this_ fd leak, the patch does fix a real fd leak, so I committed it upstream: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=495d408 -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
** Changed in: udev (Ubuntu Karmic) Status: Confirmed = In Progress ** Changed in: udev (Ubuntu Karmic) Assignee: (unassigned) = Martin Pitt (pitti) ** Changed in: udev (Ubuntu Karmic) Milestone: None = karmic-updates ** Tags added: regression-potential -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Martin, the fix in your ppa works like a charm ! Thanks a lot, remind me to get you at least a beer next time we met ! -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Thanks Christope! Marking as fix committed for Karmic, since I committed it upstream, and it will be part of the 147 release (which is planned to happen soon). ** Changed in: udev (Ubuntu Lucid) Status: Triaged = Fix Committed -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Uploaded to karmic-proposed queue, waiting for SRU team processing. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
I also included the fix for http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=4daa146b into the SRU. It immediately breaks udev when building with -O0 on amd64. It's purely coincidental that it seems to work with the current .debs (apparently the upper bits of nbytes are usually zero), but it's a disaster waiting to happen, and the fix is obvious. I stumbled over this myself when I debugged the original problem here, and independently arrived at the same patch. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
/proc/pid/fd/ on Christophes' system: lr-x-- 1 root root 64 2009-11-02 15:58 1000 - /dev/.udev/links/dvd lr-x-- 1 root root 64 2009-11-02 15:58 1001 - /dev/.udev/links/dvdrw lr-x-- 1 root root 64 2009-11-02 15:58 1002 - /dev/.udev/links/scd0 lr-x-- 1 root root 64 2009-11-02 15:58 1003 - /dev/.udev/links/disk\x2fby-path\x2fpci-:00:1f.2-scsi-1:0:0:0 lr-x-- 1 root root 64 2009-11-02 15:58 1004 - /dev/.udev/links/cdrom lr-x-- 1 root root 64 2009-11-02 15:58 1005 - /dev/.udev/links/cdrw lr-x-- 1 root root 64 2009-11-02 15:58 1006 - /dev/.udev/links/dvd lr-x-- 1 root root 64 2009-11-02 15:58 1007 - /dev/.udev/links/dvdrw lr-x-- 1 root root 64 2009-11-02 15:58 1008 - /dev/.udev/links/scd0 lr-x-- 1 root root 64 2009-11-02 15:58 1009 - /dev/.udev/links/disk\x2fby-path\x2fpci-:00:1f.2-scsi-1:0:0:0 lr-x-- 1 root root 64 2009-11-02 15:58 101 - /dev/.udev/links/dvdrw lr-x-- 1 root root 64 2009-11-02 15:58 1010 - /dev/.udev/links/cdrom lr-x-- 1 root root 64 2009-11-02 15:58 1011 - /dev/.udev/links/cdrw lr-x-- 1 root root 64 2009-11-02 15:58 1012 - /dev/.udev/links/dvd lr-x-- 1 root root 64 2009-11-02 15:58 1013 - /dev/.udev/links/dvdrw lr-x-- 1 root root 64 2009-11-02 15:58 1014 - /dev/.udev/links/scd0 lr-x-- 1 root root 64 2009-11-02 15:58 1015 - /dev/.udev/links/disk\x2fby-path\x2fpci-:00:1f.2-scsi-1:0:0:0 [...] On my own system (where stuff works), I also have many repeated fds, but not up to 1024, but to 45 only: lr-x-- 1 root root 64 2009-11-02 16:01 10 - /dev/.udev/links/disk\x2fby-id\x2fusb-0204_Flash_Disk_2518140190946614-0:0-part1 lr-x-- 1 root root 64 2009-11-02 16:01 11 - /dev/.udev/links/disk\x2fby-path\x2fpci-:00:1d.7-usb-0:8.2:1.0-scsi-0:0:0:0-part1 lr-x-- 1 root root 64 2009-11-02 16:01 12 - /dev/.udev/links/disk\x2fby-uuid\x2f33C1-15B4 lr-x-- 1 root root 64 2009-11-02 16:01 13 - /dev/.udev/links/disk\x2fby-label\x2fUBUINSTALL lr-x-- 1 root root 64 2009-11-02 16:01 14 - /dev/.udev/links/disk\x2fby-id\x2fusb-0204_Flash_Disk_2518140190946614-0:0-part1 lr-x-- 1 root root 64 2009-11-02 16:01 15 - /dev/.udev/links/disk\x2fby-path\x2fpci-:00:1d.7-usb-0:8.2:1.0-scsi-0:0:0:0-part1 lr-x-- 1 root root 64 2009-11-02 16:01 16 - /dev/.udev/links/disk\x2fby-uuid\x2f33C1-15B4 lr-x-- 1 root root 64 2009-11-02 16:01 17 - /dev/.udev/links/disk\x2fby-label\x2fUBUINSTALL lr-x-- 1 root root 64 2009-11-02 16:01 18 - /dev/.udev/links/disk\x2fby-id\x2fusb-0204_Flash_Disk_2518140190946614-0:0-part1 Something is looping here.. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
I think I got it: With pidof udevd I determined the udev subprocess which runs the callouts and rules, straced it, and now see the cause: 9782 open(/sys/devices/pci:00/:00:1f.2/host1/target1:0:0/1:0:0:0/block, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EMFILE (Too many open files) 9782 open(/sys/devices/pci:00/:00:1f.2/host1/target1:0:0/1:0:0:0/block/*/uevent, O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EMFILE (Too many open files) 9782 socket(PF_FILE, 0x80002 /* SOCK_??? */, 0) = -1 EMFILE (Too many open files) 9782 open(/dev/console, O_WRONLY|O_NOCTTY) = -1 EMFILE (Too many open files) 9782 unlink(/dev/.udev/db/scsi:1:0:0:0) = -1 ENOENT (No such file or directory) 9782 socket(PF_FILE, SOCK_DGRAM, 0)= -1 EMFILE (Too many open files) 9782 socket(PF_FILE, 0x80002 /* SOCK_??? */, 0) = -1 EMFILE (Too many open files) 9782 open(/dev/console, O_WRONLY|O_NOCTTY) = -1 EMFILE (Too many open files) [...] That explains why restarting udev cures this. It seems that there is an fd leak somewhere. ** Summary changed: - Usb Media not automaticaly mounted + devices not detected -- too many open files -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
If I do sudo ls -l /proc/pid/fd | wc -l, I see that increase by 4 for every udevadm trigger --sysname-match=sdb1 --action=change that I do. ** Changed in: udev (Ubuntu Lucid) Status: Incomplete = Triaged ** Description changed: - Binary package hint: gvfs - When i am plugging my usb removable media in karmic, nothing gets mounted automatically. It is an update from jaunty, and everything was fine in jaunty. + + WORKAROUND: sudo stop udev; sudo start udev ProblemType: Bug Architecture: amd64 Date: Thu Oct 29 15:43:34 2009 DistroRelease: Ubuntu 9.10 HotplugNewDevices: /dev/sdb /dev/sdb1 HotplugNewMounts: - + Package: gvfs 1.4.1-0ubuntu1 ProcEnviron: - LANG=fr_FR.UTF-8 - SHELL=/bin/bash + LANG=fr_FR.UTF-8 + SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: gvfs Symptom: storage Uname: Linux 2.6.31-14-generic x86_64 -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Easy reproducer: $ for p in `pidof udevd`; do sudo ls -l /proc/$p/fd | wc -l; done | awk '{$s += $1} END { print $s }' 14 $ sudo udevadm trigger --action=change --subsystem-match=block $ for p in `pidof udevd`; do sudo ls -l /proc/$p/fd | wc -l; done | awk '{$s += $1} END { print $s }' 34 ** Description changed: - When i am plugging my usb removable media in karmic, nothing gets - mounted automatically. + When I plug in my USB removable media in karmic, nothing gets mounted + automatically. It is an update from jaunty, and everything was fine in jaunty. + + To see if you are affected by this particular bug, run: + + for p in `pidof udevd`; do sudo ls -l /proc/$p/fd | wc -l; done | awk + '{$s += $1} END { print $s }' + + If the resulting number is around 1000 or higher, then you have the + problem described in this bug report. WORKAROUND: sudo stop udev; sudo start udev ProblemType: Bug Architecture: amd64 Date: Thu Oct 29 15:43:34 2009 DistroRelease: Ubuntu 9.10 HotplugNewDevices: /dev/sdb /dev/sdb1 HotplugNewMounts: Package: gvfs 1.4.1-0ubuntu1 ProcEnviron: LANG=fr_FR.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: gvfs Symptom: storage Uname: Linux 2.6.31-14-generic x86_64 -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
I can confirm that sudo stop udev sudo start udev acts as a workaround for me. -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 463347] Re: devices not detected -- too many open files
Yes .. that did it :D Thanks -- devices not detected -- too many open files https://bugs.launchpad.net/bugs/463347 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs