Find the answer to your Linux question:
Results 1 to 3 of 3
Hi everyone, NOTE: While writing this forum post, I've discovered a fix. Since I put a reasonable amount of effort into this I figured I might as well post my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191

    [SOLVED] Amarok collection scan


    Hi everyone,

    NOTE: While writing this forum post, I've discovered a fix. Since I put a reasonable amount of effort into this I figured I might as well post my line of thinking and the eventual solution. Hopefully it will help someone else out as well.

    Background:
    I use gentoo and am currently using the stable amarok and mysql versions:

    media-sound/amarok-2.2.2-r1 USE="embedded opengl"
    dev-db/mysql-5.0.90-r2 USE="berkdb community embedded perl ssl"

    Recently, and unfortunately I'm not sure if this started after an upgrade or not, my amarok collection has been on the fritz. Initial googleing and forum searching did not reveal an answer.

    Description:
    It started with missing songs. Songs that should have been there were suddenly missing from the collection despite the fact that the files in fact exist. The ones that disappeared from the collection that were still in the playlist would not play and had a 0:00 length associated with them. The album would still be recognized as existing, but the songs themselves were not available.

    After ripping a new CD, I noticed that the new songs were available, but the album for whatever reason did not. I tried to manually change all of the tags, but this did not seem to help. (The tags themselves would properly change in the editing gui, but in the collection they would still show up as being improperly sorted. This problem is usually one of a lag between what is displayed and what is recorded in the db, but even after quitting the program and restarting it still did not work.)

    Standard attempts to fix:
    1.) Complete rescan of collection - Resulted in an even more messed up collection. Now, out of many many songs, only a few even register. There are now dozens of empty albums, many of which are incorrectly associated with unknown or compilation artists.
    2.) revdep-rebuild - Results in no missed dependencies, and no problems fixed.
    3.) Rebuilding amarok - No help
    4.) Rebuilding mysql - No dice

    Additional digging and actual fix:
    Download:Gentoo - Amarok Wiki

    The web page listed above has some interesting information. A somewhat similar problem is described as manifesting itself as the collection scanner not adding files to the collection. It recommends adding some LDFLAG options. The recommended options are safe according to Safe LDFLAGS - Gentoo Linux Wiki .

    LDFLAGS="-Wl,--as-needed"

    Note: that is a lowercase L in the Wl.

    After this change in make.conf, rebuild both mysql and amarok.

    Despite the fact that it is listed as safe, I have seen elsewhere that you still need to be careful. There are instructions on how to do this on a per-package basis, but I just threw it in make.conf because I don't mind breaking something in lieu of an immediate solution (also, in this case I'll have a good place to start).
    Last edited by techieMoe; 04-06-2010 at 05:38 PM.
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    I was having a similar problem with Amarok-2.3.0-r1, I wasn't getting any files at all in my collection. Let me warn you, mysql-5.1 currently has no support for the embedded use flag in case you want to update that. It took me awhile to figure it out, but I eventually downgraded mysql to 5.0 and got things working again.

    EDIT: Thanks for the solution, I'm sure it'll help others too.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    1
    Quote Originally Posted by sdimhoff View Post
    ...

    Description:
    It started with missing songs. Songs that should have been there were suddenly missing from the collection despite the fact that the files in fact exist. The ones that disappeared from the collection that were still in the playlist would not play and had a 0:00 length associated with them. The album would still be recognized as existing, but the songs themselves were not available.
    That happens when Amarok notices that the files are not longer there. It does not remove them from the collection right away.
    Nothing wrong with MySql until here.

    Quote Originally Posted by sdimhoff View Post
    After ripping a new CD, I noticed that the new songs were available, but the album for whatever reason did not. I tried to manually change all of the tags, but this did not seem to help. (The tags themselves would properly change in the editing gui, but in the collection they would still show up as being improperly sorted. This problem is usually one of a lag between what is displayed and what is recorded in the db, but even after quitting the program and restarting it still did not work.)
    Partly right.
    Amarok versions up until 2.3 did get confused after scanning. After collection copy operations (ripping is one of them) the UI didn't display the tracks correctly.
    Changing the tags doesn't fix this because it doesn't re-read the tracks from the database.
    Restarting Amarok solves the problem usually.

    You can try the new Amarok 2.4 beta. It should solve those issues.

    Quote Originally Posted by sdimhoff View Post
    Standard attempts to fix:
    1.) Complete rescan of collection - Resulted in an even more messed up collection. Now, out of many many songs, only a few even register. There are now dozens of empty albums, many of which are incorrectly associated with unknown or compilation artists.
    That sounds more and more like a messed up database.
    And there should never be an empty album after all.
    Please try Amarok 2.4 beta and/or make a bug report.
    Also we have a nice channel on freenode where questions can be asked.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •