mediascanner ignoring media files on first boot

Bug #1342288 reported by Selene ToyKeeper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediascanner2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have been seeing mediascanner crash on boot for a while, but just recently it has sometimes not recovered and then the music and video scopes were unable to display any files. In the past it always seemed to restart and provide normal service, and I'm not sure what changed to make it stay dead this time.

I'll have to get a fresh crash dump file immediately after boot. I've attached the crash file currently on my device, but I suspect it may have already been replaced (maybe more than once) by a new crash after the on-boot one. After noticing the issues, I rebooted and things worked more normally.

This was on a mako on image Utopic 124.

Tags: mako u124 ue-qa
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

I tried again on Utopic 132, and again it shows no local media in the music/video scopes.

It seems that mediascanner is actually still running; it just doesn't appear to work.

I see a bunch of messages in syslog about it having trouble with AppArmor though. For example:

Jul 15 19:17:56 ubuntu-phablet kernel: [ 88.652433] type=1400 audit(1405451876.040:107): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/home/phablet/Videos/sintel_trailer-720p.mp4" pid=2337 comm="mediascanner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000
Jul 15 19:17:56 ubuntu-phablet kernel: [ 88.653654] type=1400 audit(1405451876.040:108): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/home/phablet/Videos/sintel_trailer-720p.mp4" pid=2337 comm="mediascanner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000
Jul 15 19:17:56 ubuntu-phablet kernel: [ 88.654051] type=1400 audit(1405451876.040:109): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/home/phablet/Videos/sintel_trailer-720p.mp4" pid=2337 comm="mediascanner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000

These happened very soon after first boot, before I even touched the screen of the phone. The script I'm using to send data waits for the device to boot, waits another minute or so, does an adb push of a tarball, un-tars the file, then chowns everything to phablet.phablet. I think mediascanner might be trying to access the files before they're chown'd, and then ignoring them until the next time it runs. And perhaps the reason why the symptoms are only now showing up is because mediascanner is *not* crashing on boot any more, so it's not restarting after permissions are fixed. Just a guess though.

summary: - mediascanner crashing on boot, unsure why
+ mediascanner ignoring media files on first boot
affects: mediascanner → mediascanner2
Revision history for this message
James Henstridge (jamesh) wrote :

I never noticed this bug because you filed it against the wrong project. Can you still reproduce this problem?

Changed in mediascanner2:
status: New → Incomplete
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

The cause of this issue is most likely not fixed yet, but I doubt it really matters any more. ADB now uses the phablet user instead of root, so the conditions which trigger the bug have become far less likely to ever happen.

affects: mediascanner2 → mediascanner2 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mediascanner2 (Ubuntu) because there has been no activity for 60 days.]

Changed in mediascanner2 (Ubuntu):
status: Incomplete → Expired
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.