Cannot add or remove playlist on Adventurer — TomTom Community

Cannot add or remove playlist on Adventurer

theoriginaldustheoriginaldus Posts: 5 [Master Traveler]
Hi there,

I'm a linux user and have an adventurer watch. Since around the last version of either the watch or connect software (not sure which as both were upgraded between adding/removing playlists) adding or removing playlists fails with an error message 'Ooops something went wrong' when adding a playlist, and 'Couldn't delete playlist' when removing a playlist. I can still add/remove playlists manually but it's a bit of a pain, and support won't help as they don't support Linux so I was wondering if anyone else in the community has come across the same issue and knows a fix? A little searching suggests the 'Ooops something went wrong' message indicates a problem communicating with the watch via USB, but everything else works just fine i.e. syncing activities, installing new watch software etc so not really convinced by that.

Any thoughts/ideas from anyone?

Thanks

Jon

Comments

  • Stuart McDonaldStuart McDonald Posts: 759 [Exalted Navigator]
    Hi,
    If you send the log files using the Sports Connect (settings page, advanced section 'Send now' button) I will have a look. You can also have a look yourself if you like, they are plain text and will be somewhere like

    ~/.local/share/TomTom/MySportsConnect/Log.txt

    and Log.prev.txt.

    If you want more verbose logging you can add

    LogLevel=65535

    to the [App] section of the prefs.ini file (same directory as the log files). You should probably turn off the verbose logging after though since it can slow down the music scan quite a lot (depending on how many files it has to check).

    Regards,
    Stuart.
  • theoriginaldustheoriginaldus Posts: 5 [Master Traveler]
    I've set the logging to verbose in prefs.ini and restarted the connect software, but unfortunately I don't see any output to the log file when attempting to add/remove playlists. I've submitted the app data anyway.
  • Stuart McDonaldStuart McDonald Posts: 759 [Exalted Navigator]
    Hi, I'm confused because the Log files finish at '2017-08-09' and don't have the verbose logging. I can only assume SportsConnect doesn't have permission to write to the files.

    Can you check the permissions? Alternatively you can delete the entire TomTom directory and SportsConnect will recreate it when it starts.

    Regards,
    Stuart.
  • theoriginaldustheoriginaldus Posts: 5 [Master Traveler]
    File ownership was root, after deleting the TomTom directory and starting SportsConnect ownership is now the current user which looks a more sensible. Setting logging to verbose and then attempting to add or remove a playlist now populates the log so that's good. I've added an extract of the log file for when I click to first remove, and then add a playlist. I've also submitted app data again. A quick glance suggests perhaps a permissions issue with the mounted location at /media/usb0. Ownership of everything at this mount point is root, and that includes the music directory (but that's pretty normal I would say?).
    remove:
    
    2018-01-12 13:19:03.149 UTC|10|Information|PlaylistViewModel::action|Playlist 'NSB 24 Aug', state: OnWatch
    2018-01-12 13:19:07.157 UTC|10|Information|MusicManager::onRemovePlaylistFromWatch|Removing watch playlist: NSB 24 Aug
    2018-01-12 13:19:07.157 UTC|10|Information|WatchPlaylist::remove|Remove NSB 24 Aug from /media/usb0/ (1 items)
    2018-01-12 13:19:07.158 UTC|0|Error|WatchPlaylist::remove|Failed to remove: /media/usb0/MySportsConnect/Music/playlist009/nsb_24-8-17.mp3 (Error 0, Unknown error)
    2018-01-12 13:19:07.158 UTC|0|Error|WatchPlaylist::remove|Failed to remove: /media/usb0/MySportsConnect/Music/playlist009/PLAYLIST.m3u8 (Error 0)
    2018-01-12 13:19:07.158 UTC|0|Error|WatchPlaylist::remove|Failed to remove: /media/usb0/MySportsConnect/Music/playlist009
    2018-01-12 13:19:07.159 UTC|10|Information|PlaylistStore::onRemovePlaylist|Removing NSB 24 Aug
    2018-01-12 13:19:07.159 UTC|10|Information|PlaylistStore::onRemovePlaylist|...Found => Removed
    2018-01-12 13:19:07.159 UTC|10|Information|MusicController::onRemovedWatchPlaylist|Removing: NSB 24 Aug
    2018-01-12 13:19:07.179 UTC|0|Error|WatchStorage::writeMasterPlaylist|Failed to create /media/usb0/MySportsConnect/Music/masterplaylist.m3u8 (Error 5
    2018-01-12 13:19:10.211 UTC|10|Information|MusicController::onErrorAction|Error state: 3
    
    add:
    
    2018-01-12 13:19:30.613 UTC|10|Information|PlaylistViewModel::action|Playlist 'Mix 2017', state: OnComputer
    2018-01-12 13:19:30.613 UTC|10|Information|PlaylistWriteQueue::addPlaylist|Adding: Mix 2017 (Linked NO)
    2018-01-12 13:19:30.613 UTC|10|Information|WatchPlaylist::WatchPlaylist|Name: Mix 2017 File:
    2018-01-12 13:19:30.613 UTC|10|Information|PlaylistWriteQueue::addPlaylist|Empty queue => start write
    2018-01-12 13:19:30.613 UTC|10|Information|MusicController::onWriteQueueStarted|
    2018-01-12 13:19:30.613 UTC|10|Information|PlaylistWriteQueue::checkNextPlaylist|Schedule writing front of queue: Mix 2017
    2018-01-12 13:19:30.613 UTC|10|Information|PlaylistStore::onAddPlaylist|Playlist number 13: Mix 2017 (0 items)
    2018-01-12 13:19:30.613 UTC|10|Information|MusicManager::onAddedWatchPlaylist|Added to model: Mix 2017
    2018-01-12 13:19:30.613 UTC|10|Information|MusicController::onAddedWatchPlaylist|Adding: Mix 2017
    2018-01-12 13:19:30.615 UTC|10|Information|PlaylistWriteQueue::onWriteNextPlaylist|Write front of queue: Mix 2017
    2018-01-12 13:19:30.615 UTC|10|Information|PlaylistWriter::write|Write Mix 2017 to Mix 2017, path /media/usb0/ (Existing: NO)
    2018-01-12 13:19:30.615 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, STARTING_WRITE
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|13 current playlists
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|Get current playlists
    2018-01-12 13:19:30.615 UTC|0|Error|WatchPlaylist::getPlaylistDir|XXX 2136c30 ERROR Empty file name
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist001/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist002/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist003/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist004/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist005/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist006/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist007/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|/media/usb0/MySportsConnect/Music/playlist008/PLAYLIST.m3u8 is a current playlist
    2018-01-12 13:19:30.615 UTC|10|Information|WatchStorage::getNextPlaylistDir|Next free playlist dir: /media/usb0/MySportsConnect/Music/playlist009/
    2018-01-12 13:19:30.615 UTC|10|Information|PlaylistWriter::write|Write playlist to: /media/usb0/MySportsConnect/Music/playlist009/
    2018-01-12 13:19:30.615 UTC|10|Information|PlaylistWriter::onWrite|Write Mix 2017 track 1/1: /media/usb0/MySportsConnect/Music/playlist009/Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3 (80344849 bytes)
    2018-01-12 13:19:30.616 UTC|10|Information|FileWriter::onStart|FileWriter failed to create: /media/usb0/MySportsConnect/Music/playlist009/Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3 (Error 5)
    2018-01-12 13:19:30.616 UTC|10|Information|PlaylistWriter::onWritePlaylistError|Error writing file /media/usb0/MySportsConnect/Music/playlist009/Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3, because FileWriter failed to create: /media/usb0/MySportsConnect/Music/playlist009/Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3 (Error 5). Cleaning up.
    2018-01-12 13:19:30.616 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, STARTING_READ
    2018-01-12 13:19:30.616 UTC|10|Information|PlaylistWriter::cleanupPartiallyWritten|Removing track /media/usb0/MySportsConnect/Music/playlist009/Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3
    2018-01-12 13:19:30.616 UTC|0|Error|PlaylistWriteQueue::onWritePlaylistError|Running Music Playlist Motivation Mix 2017 ? - Top 100 jogging training workout music.mp3
    2018-01-12 13:19:30.623 UTC|10|Information|PlaylistWriter::finishPlaylistWriting|Wrote playlist Mix 2017 => update master
    2018-01-12 13:19:30.623 UTC|0|Error|WatchStorage::writeMasterPlaylist|Failed to create /media/usb0/MySportsConnect/Music/masterplaylist.m3u8 (Error 5
    2018-01-12 13:19:30.637 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, ENDED_WRITE
    2018-01-12 13:19:30.638 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, IDLE
    2018-01-12 13:19:30.638 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, IDLE
    2018-01-12 13:19:30.638 UTC|10|Information|MusicController::onPlaylistStateChanged|Mix 2017, IDLE
    2018-01-12 13:19:30.638 UTC|10|Information|PlaylistWriteQueue::onPlaylistWritten|Mix 2017 changed state
    2018-01-12 13:19:30.638 UTC|10|Information|PlaylistWriteQueue::onPlaylistWritten|Copy finished - Mix 2017. Remove from queue
    2018-01-12 13:19:30.638 UTC|10|Information|PlaylistWriteQueue::onPlaylistWritten|Copy finished - Mix 2017 has 0 items
    2018-01-12 13:19:30.638 UTC|10|Information|MusicManager::onRemovePlaylistFromWatch|Removing watch playlist: Mix 2017
    2018-01-12 13:19:30.638 UTC|10|Information|WatchPlaylist::remove|Remove Mix 2017 from /media/usb0/ (0 items)
    2018-01-12 13:19:30.638 UTC|0|Error|WatchPlaylist::remove|Failed to remove: /media/usb0/MySportsConnect/Music/playlist009/PLAYLIST.m3u8 (Error 0)
    2018-01-12 13:19:30.638 UTC|0|Error|WatchPlaylist::remove|Failed to remove: /media/usb0/MySportsConnect/Music/playlist009
    2018-01-12 13:19:30.638 UTC|10|Information|PlaylistStore::onRemovePlaylist|Removing Mix 2017
    2018-01-12 13:19:30.638 UTC|10|Information|PlaylistStore::onRemovePlaylist|...Found => Removed
    2018-01-12 13:19:30.638 UTC|10|Information|MusicController::onRemovedWatchPlaylist|Removing: Mix 2017
    2018-01-12 13:19:30.658 UTC|0|Error|WatchStorage::writeMasterPlaylist|Failed to create /media/usb0/MySportsConnect/Music/masterplaylist.m3u8 (Error 5
    2018-01-12 13:19:30.658 UTC|10|Information|PlaylistWriteQueue::checkNextPlaylist|Finished writing queue
    2018-01-12 13:19:30.658 UTC|10|Information|MusicController::onWriteQueueFinished|
    2018-01-12 13:19:32.638 UTC|0|Error|MusicController::onProcessPendingUI|Couldn't find playlist to remove complete UI
    
  • Stuart McDonaldStuart McDonald Posts: 759 [Exalted Navigator]
    Hi,
    The device should be under /media/[user] so you can write to it. Try creating a file
    /etc/udev/rules.d/99-tomtom.rules and putting the following in it (you need to change the 501 to whatever your user group is).
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7474", GROUP="501", MODE="0660"
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7475", GROUP="501", MODE="0660" 
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7476", GROUP="501", MODE="0660" 
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7477", GROUP="501", MODE="0660" 
    

    You an either reboot or use
    sudo udevadm control --reload-rules
    
    to reload the rules.
    Cheers,
    Stuart.
  • theoriginaldustheoriginaldus Posts: 5 [Master Traveler]
    Haven't been able to get this to work unfortunately. There was already a file /etc/udev/rules.d/tomtomsportsconnect.rules so I tried editing what was already in there to match the above, and also creating /etc/udev/rules.d/99-tomtom.rules with the same ownership and permissions as the existing file and with the contents above. The watch is still being mounted under /media/usb0. I have reloaded the rules as above, but not yet rebooted so I'll try again after a reboot. Any other thoughts in the mean time?
  • theoriginaldustheoriginaldus Posts: 5 [Master Traveler]
    Unfortunately still no joy after a full reboot. At least I know the issue now - ownership needs to be the current user after the watch is mounted rather than root.
  • Stuart McDonaldStuart McDonald Posts: 759 [Exalted Navigator]
    Hi,
    Sorry I was off last week. I'm not sure why the drive is being mounted as root. That's not actually something we control. The OS should be detecting and mounting the drive with the correct permissions. The fix will depend on what flavour of Linux you're running. All I can suggest is some searching for something like "usb drive mounted as root".

    The music drive is exactly the same as a usb stick, so any generic solution will should apply. The udev rules above are for talking to the watch (there are 2 parts to the Music watch, the generic usb disk to store music and a HID device for reading workouts, updating preferences etc). The rules are needed to allow you talk to the watch, but that part is working, it's the usb disk that's mounted wrongly.

    On my machine whenever I connect a watch the OS creates an entry in /etc/mtab for /dev/sdc1 (the usb disk device) to /media/sm/MUSIC e.g.
    (depending on your OS some of this might be different/not work)
    cat /etc/mtab | grep media
    /dev/sdc1 /media/sm/MUSIC vfat rw,nosuid,nodev,uid=2034,gid=2034,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2 0 0
    
    This was all automatic, I don't have any special rules in udev or /etc/fstab. You may be able to solve your problem however using them, or even just manually re-mounting the device with the 'user' option (see 'mount' man page, though you would lose the mount after a reboot).

    Regards,
    Stuart.
Sign In or Register to comment.

Who's Online in this Category0