MTP device cannot be mounted after some time

Bug #1392405 reported by Brendan Donegan
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mtp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It's hard to get exact steps for this, but basically the behaviour I'm seeing is that if I leave the device disconnected, after a while (10-15 minutes, when I go to plug it back in, it is not mounted. Then no matter how many times I unplug and plug the device it will never be mounted. When I reboot it works again - for another 10-15 minutes then it breaks again in the same way.

STEPS:
1. Connect the phone via mtp ensure you can see content on both phone and sd card
2. Unplug the phone
3. Leave the phone to one side till the screen blanks
4. Now time it for 15 minutes
5. Plug the phone back in.
6. Now try and connect to the device via mtp

You now get an error message from nautilus that you can't connect to mtp, and 'ls $XDG_RUNTIME_DIR/gvfs' on the host contains nothing when it should contain the MTP device. Also on the phone 'status mtp-server' shows stopped/waiting. Restarting mtp-server and replugging, or rebooting the device revives things.

ProblemType: Bug
DistroRelease: Ubuntu RTM 14.09
Package: libmtpserver1 0.0.4+15.04.20141104~rtm-0ubuntu1
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.14.7-0ubuntu8
Architecture: armhf
Date: Thu Nov 13 16:52:46 2014
InstallationDate: Installed on 2014-11-12 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20141112-181954)
SourcePackage: mtp
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :
tags: added: qa-promotion
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I can't reproduce this on the last promoted image (#151)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mtp (Ubuntu):
status: New → Confirmed
Dave Morley (davmor2)
description: updated
description: updated
tags: added: rtm14 touch-2014-11-13
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

I verified this just now using gmtp instead of the default Ubuntu mtp tools. Gmtp can't see the device either, after it has been unplugged and idle for 15 minutes, and it doesn't get hung up on gvfs issues so it's usually much more reliable.

After a reboot, /usr/bin/mtp-server is normally running, but after being unplugged and idle for 15 minutes it wasn't running any more. I saw only the kernel's [f_mtp] process still going, which isn't sufficient to make mtp function.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mtp - 0.0.4+15.04.20141113-0ubuntu1

---------------
mtp (0.0.4+15.04.20141113-0ubuntu1) vivid; urgency=medium

  [ Mathieu Trudel-Lapierre ]
  * Remove the limit on respawns on mtp-server to workaround the fact that on
    unplug/plug, the USB device gets quickly reset a few times and that makes
    mtp fail reads and exit, which triggers a restart of the job. (LP: #1392405)
 -- Ubuntu daily release <email address hidden> Thu, 13 Nov 2014 19:37:51 +0000

Changed in mtp (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

the fix works, the only side effect is a number of restart attempts and failures and the associated logging , as the system wakes up every 5 mins due to push client

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.