Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

kernel: xhci_hcd WARN: Stalled endpoint

Discussion in 'Asuswrt-Merlin' started by Marko Polo, Aug 6, 2017.

  1. Marko Polo

    Marko Polo Regular Contributor

    Joined:
    May 23, 2017
    Messages:
    124
    I get this weird error from time to time without any possible reason:

    Code:
    Aug  6 07:58:49 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:58:49 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:58:54 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:58:54 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:02 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:02 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:04 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:04 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:07 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:07 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:15 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 07:59:15 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
    Aug  6 08:16:51 kernel: sd 0:0:0:0: timing out command, waited 180s
    Aug  6 08:16:51 kernel: sd 0:0:0:0: [sda] Unhandled sense code
    Aug  6 08:16:51 kernel: sd 0:0:0:0: [sda]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    Aug  6 08:16:51 kernel: sd 0:0:0:0: [sda]  Sense Key : Hardware Error [current] 
    Aug  6 08:16:51 kernel: sd 0:0:0:0: [sda]  ASC=0x44 <<vendor>> ASCQ=0x81
    Aug  6 08:16:51 kernel: sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 01 e2 00 00 08 00
    Aug  6 08:16:51 kernel: end_request: I/O error, dev sda, sector 482
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 9): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0xe0.
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 9): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0xe1.
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 9): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0xe2.
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 9): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0xe3.
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 14427): ntfs_mft_record_map(): Failed to map page containing mft record 0xd3 (error 5).
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 14427): ntfs_mft_record_map(): Failed with error code 5.
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 14427): ntfs_index_lookup_init(): Failed to map mft record (error 5).
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 14427): ntfs_index_lookup_by_position(): Failed (error 5).
    Aug  6 08:16:51 kernel: tntfs error (device sda1, pid 14427): ntfs_readdir(): Failed to look up index entry with position 0x0 in directory 0xd3 (error 5).
    
    I cannot access Samba shares and cannot complete SSH-connection successfully. Only router reboot helps.
    Any suggestions? Is attached drive is dying?
     
    Last edited: Aug 6, 2017
  2. Marko Polo

    Marko Polo Regular Contributor

    Joined:
    May 23, 2017
    Messages:
    124
    Is there any disk check tool I can utilyze just from router (from Entware)? I checked ntfs partitions with chkdsk but I have no physical linux machine to check EXT4 partitions.
     
  3. RMerlin

    RMerlin Part of the Furniture

    Joined:
    Apr 14, 2012
    Messages:
    23,925
    Location:
    Canada
    Try a surface scan check (many HDD manufacturers provide such tools on their website), it will scan the whole surface rather than just the NTFS partitions.

    Also try replacing the USB cable, and make sure the HDD has its own power supply rather than relying strictly on USB power.

    The logged errors aren't at the filesystem level (and in fact those logged were on the NTFS partition), so you don't need to run any ext filesystem check.
     
    Marko Polo likes this.
  4. Marko Polo

    Marko Polo Regular Contributor

    Joined:
    May 23, 2017
    Messages:
    124
    I checked the HDD (including surface scan) on several utilities (including those from the HDD vendor) and found no errors. It is absolutely healthy. So it seems to be strictly (mis)configuration issue. Are you really thinking this is insufficient power supply?
    It's odd I never faced such issues in previous months of using Merlin.
     
  5. sfx2000

    sfx2000 Part of the Furniture

    Joined:
    Aug 11, 2011
    Messages:
    11,499
    Location:
    San Diego, CA
    Concur - good power and a high quality cable are a must.

    Do not use bus-powered HDD's and ensure a direct connection - no USB hubs in between.

    The fs errors are due to the stalled xhci endpoint.
     
  6. Marko Polo

    Marko Polo Regular Contributor

    Joined:
    May 23, 2017
    Messages:
    124
    Still struggling with this problem. Now I get such errors:

    Code:
    Sep  8 13:18:54 kernel: gro enabled with interval 2
    Sep  8 13:18:58 kernel: usb 2-2: device not accepting address 10, error -110
    Sep  8 13:18:59 kernel: usb 2-2: new high speed USB device using ehci_hcd and address 11
    Sep  8 13:19:02 custom_script: Running /jffs/scripts/smb.postconf (args: /etc/smb.conf)
    Sep  8 13:19:02 hotplug[2455]: USB ext4 fs at /dev/sda4 mounted on /tmp/mnt/IMAGES
    Sep  8 13:19:02 usb: USB ext4 fs at /dev/sda4 mounted on /tmp/mnt/IMAGES.
    Sep  8 13:19:02 kernel: EXT4-fs (sda4): recovery complete
    Sep  8 13:19:02 kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: user_xattr
    Sep  8 13:19:03 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/IMAGES)
    Sep  8 13:19:07 kernel: gro enabled with interval 2
    Sep  8 13:19:08 custom_script: Running /jffs/scripts/smb.postconf (args: /etc/smb.conf)
    Sep  8 13:19:09 Samba_Server: daemon is started
    Sep  8 13:19:09 kernel: usb 2-2: device not accepting address 11, error -110
    Sep  8 13:19:09 kernel: hub 2-0:1.0: unable to enumerate USB device on port 2
    Can you say what they mean?
     
  7. john9527

    john9527 Part of the Furniture

    Joined:
    Mar 28, 2014
    Messages:
    4,639
    Location:
    United States

Share This Page