mediascanner ignoring media files on first boot
Bug #1342288 reported by
Selene ToyKeeper
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.
affects: | mediascanner → mediascanner2 |
affects: | mediascanner2 → mediascanner2 (Ubuntu) |
To post a comment you must log in.
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(140545187 6.040:107) : apparmor="DENIED" operation="open" profile= "/usr/bin/ mediascanner- service- 2.0" name="/ home/phablet/ Videos/ sintel_ trailer- 720p.mp4" pid=2337 comm="mediascan ner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000 6.040:108) : apparmor="DENIED" operation="open" profile= "/usr/bin/ mediascanner- service- 2.0" name="/ home/phablet/ Videos/ sintel_ trailer- 720p.mp4" pid=2337 comm="mediascan ner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000 6.040:109) : apparmor="DENIED" operation="open" profile= "/usr/bin/ mediascanner- service- 2.0" name="/ home/phablet/ Videos/ sintel_ trailer- 720p.mp4" pid=2337 comm="mediascan ner-se" requested_mask="r" denied_mask="r" fsuid=32011 ouid=1000
Jul 15 19:17:56 ubuntu-phablet kernel: [ 88.653654] type=1400 audit(140545187
Jul 15 19:17:56 ubuntu-phablet kernel: [ 88.654051] type=1400 audit(140545187
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.