Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37

    Playlists get deleted automatically when scaning library… o.o

    Hi! I really hope someone can help here cz really i don't understand... m(_ _)m
    I’m having problems with the playlists in LMS.

    Hardware :
    Server: Pi3
    Players: Squeezebox Touch+Squeezebox Radio +iPad

    Software :
    Last LMS (7.9****831)
    Playlist folder (in nas qnap, type cifs) /mnt/mountdir/PL

    Description :
    I can set up a list of tracks and save it im LMS, choose the name of my playlist and the playlist newly created will be available in the PL list and perfectly working !

    Problem :
    Until i scan the library… Then i get the message at the end of the scan reporting that :
    « Removing deleted playlists: /mnt/mountdir/PL (1 of 1) Complete 00:00:00 »
    While i didn’t ask for any playlist removal…. And after that i don’t have any playlist left.
    I tried to reset and even re-install everything, but it is always doing this.

    Could anyone help me with that ?
    Thank you !

  2. #2
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,854
    Hi,

    what plugins do you use?
    provide the last 100 lines of the log.

  3. #3
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37
    Quote Originally Posted by DJanGo View Post
    Hi there is one step missing and i believe thats the reason where your other failure (see your other Thread) started.

    You should add some group like lms and put your username, root and squeezeboxserver in it.

    Your fstab should be altered eg. uid=1000,gid=the id from your created group
    hello Django, thank you for your attention!

    my plugins are pretty basic, the default ones, then i removed Deezer and added Spotify Protocole Handler. That's it.

    my logs look bad indeed:

    Code:
    [16-07-15 21:09:57.7339] Slim::Utils::Misc::msg (1244) Warning: [21:09:57.7331] Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode
    [16-07-15 21:11:39.1111] Slim::Formats::Playlists::Base::_filehandleFromNameOrString (86) Error: Could't open /var/lib/squeezeboxserver/PL/CLF.m3u for writing.
    [16-07-15 21:35:38.0973] Slim::Menu::BrowseLibrary::_doRequest (980) Bad params!
    [16-07-15 21:39:02.8978] Slim::Formats::Playlists::Base::_filehandleFromNameOrString (86) Error: Could't open /mnt/mounted/PL/CLF.m3u for writing.
    Code:
    [16-07-15 21:39:20.8352] main::main (205) Starting Logitech Media Server scanner (v7.9.0, 1467729831, Mon Jul 11 04:37:22 UTC 2016) perl 5.020002
    [16-07-15 21:39:21.3349] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [16-07-15 21:39:22.2821] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan
    [16-07-15 21:39:22.2834] Slim::Utils::Scanner::Local::rescan (181) Discovering audio files in /mnt/mounted/Squeezebox
    [16-07-15 21:39:29.1605] Slim::Utils::Scanner::Local::__ANON__ (193) Start processing found tracks
    [16-07-15 21:39:29.1616] Slim::Utils::Scanner::Local::__ANON__ (201) Connect do DB
    [16-07-15 21:39:29.1622] Slim::Utils::Scanner::Local::__ANON__ (204) Get latest ID
    [16-07-15 21:39:29.1634] Slim::Utils::Scanner::Local::__ANON__ (226) Delete temporary table if exists
    [16-07-15 21:39:29.1643] Slim::Utils::Scanner::Local::__ANON__ (229) Re-build temporary table
    [16-07-15 21:39:29.3225] Slim::Utils::Scanner::Local::__ANON__ (278) Get deleted tracks count
    [16-07-15 21:39:29.5655] Slim::Utils::Scanner::Local::__ANON__ (285) Get new tracks count
    [16-07-15 21:39:29.5668] Slim::Utils::Scanner::Local::__ANON__ (290) Get changed tracks count
    [16-07-15 21:39:29.7829] Slim::Utils::Scanner::Local::__ANON__ (296) Removing deleted audio files (0)
    [16-07-15 21:39:29.7840] Slim::Utils::Scanner::Local::__ANON__ (374) Scanning new audio files (0)
    [16-07-15 21:39:29.7846] Slim::Utils::Scanner::Local::__ANON__ (454) Rescanning changed audio files (0)
    [16-07-15 21:39:31.0005] Slim::Utils::Scanner::LMS::__ANON__ (260) Scanning new media files (254)
    [16-07-15 21:39:31.8662] Slim::Utils::Scanner::LMS::__ANON__ (245) ERROR SCANNING /mnt/mounted/Squeezebox/I AM/IAM - ARTS MARTIENS DELUXE EDITION (2013) [FLAC]/iam arts martiens front.jpg: Invalid or corrupt image file(code -4)
    [16-07-15 21:39:31.8693] Slim::Utils::Scanner::LMS::__ANON__ (260) Scanning new media files (567)
    [16-07-15 21:39:31.9242] Slim::Music::Import::endImporter (643) Completed Slim::Media::MediaFolderScan Scan in 9 seconds.
    [16-07-15 21:39:31.9544] Slim::Music::Import::runImporter (511) Starting Slim::Music::PlaylistFolderScan scan
    [16-07-15 21:39:31.9562] Slim::Utils::Scanner::Local::rescan (181) Discovering audio files in /mnt/mounted/PL
    [16-07-15 21:39:32.0009] Slim::Utils::Scanner::Local::__ANON__ (193) Start processing found tracks
    [16-07-15 21:39:32.0016] Slim::Utils::Scanner::Local::__ANON__ (201) Connect do DB
    [16-07-15 21:39:32.0022] Slim::Utils::Scanner::Local::__ANON__ (204) Get latest ID
    [16-07-15 21:39:32.0033] Slim::Utils::Scanner::Local::__ANON__ (226) Delete temporary table if exists
    [16-07-15 21:39:32.0044] Slim::Utils::Scanner::Local::__ANON__ (229) Re-build temporary table
    [16-07-15 21:39:32.1383] Slim::Utils::Scanner::Local::__ANON__ (278) Get deleted tracks count
    [16-07-15 21:39:32.2758] Slim::Utils::Scanner::Local::__ANON__ (285) Get new tracks count
    [16-07-15 21:39:32.2771] Slim::Utils::Scanner::Local::__ANON__ (290) Get changed tracks count
    [16-07-15 21:39:32.2783] Slim::Utils::Scanner::Local::__ANON__ (296) Removing deleted audio files (1)
    [16-07-15 21:39:32.4267] Slim::Utils::Scanner::Local::deleted (802) Handling deleted playlist file:///mnt/mounted/PL/CLF.m3u
    [16-07-15 21:39:34.5446] Slim::Utils::Scanner::Local::__ANON__ (374) Scanning new audio files (0)
    [16-07-15 21:39:34.5460] Slim::Utils::Scanner::Local::__ANON__ (454) Rescanning changed audio files (0)
    [16-07-15 21:39:34.5477] Slim::Music::Import::endImporter (643) Completed Slim::Music::PlaylistFolderScan Scan in 2 seconds.
    [16-07-15 21:39:34.5500] Slim::Music::Import::runImporter (511) Starting Slim::Plugin::FullTextSearch::Plugin scan
    [16-07-15 21:39:34.5533] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (396) Starting fulltext index build
    [16-07-15 21:39:34.5547] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (400) Initialize fulltext table
    [16-07-15 21:39:34.6357] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (406) Create fulltext index for tracks
    [16-07-15 21:39:38.4288] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (416) Create fulltext index for albums
    [16-07-15 21:39:40.8650] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (425) Create fulltext index for contributors
    [16-07-15 21:39:53.1124] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (435) Create fulltext index for playlists
    [16-07-15 21:39:53.5707] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (470) Optimize fulltext index
    [16-07-15 21:39:56.5143] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (485) Fulltext index build done!
    [16-07-15 21:39:56.5151] Slim::Music::Import::endImporter (643) Completed Slim::Plugin::FullTextSearch::Plugin Scan in 21 seconds.
    [16-07-15 21:39:56.6958] Slim::Music::Artwork::updateStandaloneArtwork (204) Starting updateStandaloneArtwork for 291 albums
    [16-07-15 21:39:59.6511] Slim::Music::Artwork::__ANON__ (309) updateStandaloneArtwork finished in 2.94455409049988
    [16-07-15 21:39:59.6975] Slim::Music::Artwork::precacheAllArtwork (619) Starting precacheArtwork for 5 albums
    [16-07-15 21:39:59.9843] Slim::Music::Artwork::__ANON__ (738) precacheArtwork finished in 0.276070117950439
    [16-07-15 21:39:59.9852] Slim::Music::Import::endImporter (643) Completed precacheArtwork Scan in 0 seconds.
    [16-07-15 21:40:00.0309] Slim::Music::Import::runScanPostProcessing (435) Starting Database optimization.
    [16-07-15 21:40:25.6406] Slim::Music::Import::endImporter (643) Completed dbOptimize Scan in 25 seconds.

    Beside that, sorry i'm really just starting with all that stuff, could you please explain me how to create a group, add me, squeezebox server and root?
    thanks a lot for your support!

  4. #4
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,854
    Quote Originally Posted by mugen808 View Post
    [16-07-15 21:39:32.2783] Slim::Utils::Scanner::Local::__ANON__ (296) Removing deleted audio files (1)
    [16-07-15 21:39:32.4267] Slim::Utils::Scanner::Local::deleted (802) Handling deleted playlist file:///mnt/mounted/PL/CLF.m3u
    thats exactly what i'd expected.


    The first line says there is one file that is scanned sometime ago and now its gone.
    The last line says path and filename from the deleted file.

  5. #5
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37
    sorry i'm really just starting with all that stuff, could you please explain me how to create a group, add me, squeezebox server and root?
    thanks a lot for your support!

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,715

    =?utf-8?q?Playlists_get_deleted_auto?==?utf-8?q?matically_when_scaning_library_o=2Eo?=

    > [16-07-15 21:11:39.1111] Slim::Formats::Playlists::Base::_filehandleFromNam eOrString (86) Error: Could't open /var/lib/squeezeboxserver/PL/CLF.m3u for writing.

    LMS doesn't have permisson to write to your playlist folder. Therefore
    the playlist does exist before the scan - but only in the database. Once
    you rescan, and the database gets wiped, the playlists are gone, because
    LMS wasn't able to write them to disk.

    Try to change permissions on that folder.

    --

    Michael

  7. #7
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37
    i'm very thankful for the help, however can't get it to work.

    i have chmod a lot (a+rwx . and many others) and i believe there are some effects. or even
    Code:
    sudo chmod -R 777 /mnt/mounted/PL
    for example, before, if i used:
    Code:
    mkdir /mnt/mounted/PL/new
    without the sudo, i was getting a:
    Code:
    mkdir: cannot create directory '/mnt/mounted//PL/new': Permission denied
    after a few chmod, i am now getting the access to PL folder and can write new folder inside without sudo.
    i have added the squeezeboxserver to the group lms and have chmod the group.

    but still, when trying to save a playist, i still get the
    Code:
    [16-07-16 01:09:25.3377] Slim::Formats::Playlists::Base::_filehandleFromNameOrString (86) Error: Could't open /mnt/mounted/PL/retry again.m3u for writing.
    Last edited by mugen808; 2016-07-15 at 16:27.

  8. #8
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37
    i suspect that maybe the LMS username is not squeezeboxserver ? but then what is it? how to find its name?

    Code:
    osmc@osmc:~$ sudo touch /mnt/mounted/PL
    osmc@osmc:~$ sudo stat /mnt/mounted/PL
      File: '/mnt/mounted/PL'
      Size: 0               Blocks: 0          IO Block: 16384  directory
    Device: 20h/32d Inode: 268959749   Links: 2
    Access: (0755/drwxr-xr-x)  Uid: ( 1001/ UNKNOWN)   Gid: ( 1001/     lms)
    Access: 2016-07-16 01:39:55.888573000 +0200
    Modify: 2016-07-16 01:39:55.239648300 +0200
    Change: 2016-07-16 01:39:55.239648300 +0200
     Birth: -
    Last edited by mugen808; 2016-07-15 at 16:43.

  9. #9
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,854
    Quote Originally Posted by mugen808 View Post
    i suspect that maybe the LMS username is not squeezeboxserver ? but then what is it? how to find its name?
    There are many ways to find its name.

    If you installed the regular .deb its squeezeboxserver - if you unsure take a look @ /etc/init.d/logitechmediaserver there is a line NAME=squeezeboxserver and another SLIMUSER=$NAME

    ls -l /var/log/squeezeboxserver/server.log even shows you the name of the user and its group.

    Quote Originally Posted by mugen808 View Post
    Code:
    sudo touch /mnt/mounted/PL
    osmc@osmc:~$ sudo stat /mnt/mounted/PL
    Thats wrong..
    if you create a file with sudo - the owner must be the superuser.

    Code:
    be sure you NOT running this as root!
    $ mount /mnt/mounted/PL
    $ sudo chown -R $USER:lms /mnt/mounted/PL

  10. #10
    Member mugen808's Avatar
    Join Date
    Jul 2016
    Location
    France
    Posts
    37

    will do...

    hi,

    thank you so much for all your advices!

    well i wouldn't say that i've fixed the problem (cz i haven't^^) but let's say i have figured out how to workaround it.
    i am not entirely satisfied but it will do if i can't do better.

    i am totally unable to give permission to normal user to write in the /mnt/mounted directory.
    it refers to my qnap nas, and i have also tried to open this folder throught the nas interface, but LMS will never be able to save and write the playlist there.

    so i have just moved my playlist directory inside the sd card of the pi in /media
    then i granted permissions:

    Code:
    sudo chmod a+rwx . /media
    and now it s working perfectly when saving in LMS the playlist directory in /media

    however, the reason why am not satisfied is that i don't like to take space inside the sd, and the biggest threath is that if my system crashes or if for whatever reason i format the sd card, i'll lose all my playlists... T___T

    that's why i first wanted to save it in the nas, throught /mnt/mounted

Posting Permissions

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