← Back to team overview

ubuntu-phone team mailing list archive

Re: SDcard content not visible

 

Hi James, sorry for the late reply - busy time of late. Attached are my logs - let me know how you go. Still having issues - card is mounted, but media scanner not picking up any music. I recently changed sdcards (16gb from 8gb), however the system is recognising the new card, I can view files on the device, etc., just not being picked up by music. New pictures however taken with the camera seem fine.

Issue seems to be this:

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Any ideas?

Can you please copy replies to: mitchell@xxxxxxxxxxxxxxxxxxxxx
I work in the Arts (theatre company), and am flat out with projects right now. Keen to see this sorted, but might miss something on the mailing list.

Cheers,

Mitchell


On 29/09/15 12:03, James Henstridge wrote:
On 26 September 2015 at 05:50, Mitchell Reese <dev@xxxxxxxxxxxxxxxxxxxxx <mailto:dev@xxxxxxxxxxxxxxxxxxxxx>> wrote:

    Weird issue on rc-proposed with revision 133 - each time I reboot
    my device (BQ 4.5) the external sdcard is no longer scanned for
    content, and does not show up in either the music or gallery app.

    I can still browse content in the file browser however by going to
    the device directly - all images and music files are there. Have
    checked the permissions, and the files are the expected
    phablet:phablet. Is this a known issue? It means I'm unable to use
    the nearly 8gb of music stored on my external sdcard.


The mediascanner service is responsible for cataloguing your music, but there hasn't been any changes to its handling of removable media for a long time. Could you send an extract of ~/.cache/upstart/mediascanner-2.0.log (or possibly .log.1.gz if the phone has been running for a while)?

In particular, I'd be interested in log messages that look like "Volume XXX was mounted." These should be emitted when the card is inserted, and also when the media scanner initially starts up (it essentially generates mount events for all the presently mounted volumes marked as removable). If you don't see any messages like this, it could indicate a problem communicating with the udisks2 daemon.

James.

phablet@ubuntu-phablet:~$ less .cache/upstart/mediascanner-2.0.log

Mediascanner service starting at 2015-10-02  6:31:12.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:13.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:16.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:36.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:37.

.cache/upstart/mediascanner-2.0.log...skipping...

Mediascanner service starting at 2015-10-02  6:31:12.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:13.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:16.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:36.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:37.

terminate called after throwing an instance of 'std::runtime_error'
:...skipping...

Mediascanner service starting at 2015-10-02  6:31:12.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:13.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:31:16.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:36.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:37.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:38.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:38.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Mediascanner service starting at 2015-10-02  6:34:39.

terminate called after throwing an instance of 'std::runtime_error'
  what():  UNIQUE constraint failed: media_attic.id

Attachment: mediascanner-2.0.log.1.gz
Description: application/gzip

Attachment: mediascanner-2.0.log.7.gz
Description: application/gzip


Follow ups

References