Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    6

    downloading files from LMS

    Hi All,

    I decided to register and ask help for a problem I've had for quite some time.

    Is there a way to download/copy all files from LMS?

    Here's the background as to why I'm asking this. A long time ago my NAS broke and I started the recovery process, which for the most part was a success. I was able to save most of my music. Something went very wrong though, and in LMS I can see most of the folders and files as a double. The first folder contains the music that plays fine and the second only zero byte songs or just some tracks that play for a few seconds. If I browse the files normally on a computer I can only see the zero byte and bad files. This is some sort of file system corruption issue I suppose. Just to make it clear, the only way to see the proper files is via LMS and squeezebox. The file system is ZFS with two mirrored hard drives, if that makes any difference.

    Now I'd like to find a way to safely copy the music to another destination, and then delete the original files and rebuild the library.

    Naturally I'd like to understand why the double file thing has happened, but the most important thing for me is just to be able to copy and save my music.


    Muksuluuri

  2. #2
    Junior Member
    Join Date
    Jan 2018
    Posts
    6
    Quote Originally Posted by DJanGo View Post
    Hi,

    1: no way
    2: did you do a cleanup and rebuild databse from scratch already?
    3: What System? There are many of them and each one uses other ways to only copy files larger than x bytes.

    Thanks for the quick reply!

    Currently squeezebox is the only thing that can see the proper files. I really don't want to rebuild database or anything else, I'm just looking for a way to save my music. If I browse the files in any other way, be it windows, linux, all I can see is the corrupted files. Once I have the files safe I can rebuild database. For the moment I'm not worried about double files, only about saving the music.

    Most of my music is ripped from my original CDs. It would be a huge task to rip it all again. Plus there are some rare stuff I only have as mp3s.

    My LMS resides on my linux mint box.

  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,899

    downloading files from LMS

    Can you get to command line on the NAS (eg SSH or Telnet)?
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  4. #4
    Senior Member KeBul's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    201
    In LMS if you drill down through your library to an individual track, in the left hand pane, you should get a location for that track, this may provide you with a clue as to the whereabouts of the good working file(s).

    Also on my system If I right click on the location I get the option to download the linked file, (also a Linux mount point to a share on a NAS) which works for me. Might be time consuming but if no better methods appear at least you might be able to get your rare mp3's safely off the NAS.

    Good lesson learnt here, regarding backups... even a couple of 2.5" external USB hard drives won't break the bank and would give you two separate copies to recover from.

    Good luck

    Kev

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

    downloading files from LMS

    > Also on my system If I right click on the location I get the option to
    > download the linked file, (also a Linux mount point to a share on a NAS)


    That's correct. But LMS will only allow you to download a single file at
    any time. I don't think this will be a reasonable way to get to the files.

    But anyway: if LMS can see the "correct" files, then you should be able
    to do so, too. You're better off trying to understand the real problem
    and fix it with some tool closer to the OS than LMS.

    > Good lesson learnt here, regarding backups... even a couple of 2.5"
    > external USB hard drives won't break the bank and would give you two
    > separate copies to recover from.


    Yes! Backup. Do backups. Really.

    --

    Michael

  6. #6
    Junior Member
    Join Date
    Jan 2018
    Posts
    6
    Thank you everyone for your replies. I've been away for a while but now I'm back.

    Originally I had a Buffalo NAS which broke, along with two of the four hard drives inside. I was able to mount the two good drives on my desktop pc running linux mint and do recovery using tools and help online. I was able to save almost all of my music. The NAS could survive one disk failure but not two, so I consider myself very lucky to have been able to recover so much.

    The situation now is that I have the two working hard drives formatted and as a mirrored zfs, and this is where the music is stored. Something went wrong during the process of copying the files into this zfs drive. And the result is if I browse the files via desktop, ssh into it or anything else I only see broken files. But LMS sees both the good files and the broken files.

    I do agree that I should first understand what is going on at the os level. But I don't, and that's why I'm asking for help. And my first priority still is to save the music.

    I'm just hoping someone with more experience can guess what's going on and give me something I could try.

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,451
    Quote Originally Posted by muksuluuri View Post
    The situation now is that I have the two working hard drives formatted and as a mirrored zfs, and this is where the music is stored. Something went wrong during the process of copying the files into this zfs drive. And the result is if I browse the files via desktop, ssh into it or anything else I only see broken files. But LMS sees both the good files and the broken files.
    I think you should try to get a better understanding of how zfs works. This sounds like an issue with the file system, rather than LMS applying some magic. If LMS can see the files, then you can see them, too. But you might want/need to see what is wrong with zfs.

    Don't panic. The files obviously are there. Leave the system alone while you figure out the details :-).
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

  8. #8
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,998
    Where is LMS actually running ?
    I have read through the thread and must assume its on a different machine to the desktop and NAS that you refer to.
    If I am right have a look at the path that LMS thinks the files are stored at and try shelling onto the NAS directly from the LMS machine using that path and NOT from your desktop.

    EDIt. Now I see that LMS is ona Linux mint box. Shell to the NAs from there.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  9. #9
    Junior Member
    Join Date
    Jan 2018
    Posts
    6
    My NAS broke. The LMS and the library both are on the linux mint machine. Sorry if I wasn't being clear on that.

    Another concern is that from the original NAS two HDs broke. Now the music is on ZFS on the remaining two HDs. Which of course is very stupid, because if the first two HDs broke and the two remaining ones are of the same manufacturing batch, there is a risk that they are faulted too and that it is just a matter of time.

    So I am a bit nervous and want to get the music into a safe location.

    Thanks again guys for your replies.

  10. #10
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,915
    hi muksuluuri,

    Normally, if 2 drives fail in a 4 disk array your files are gone. Your files are striped across the 4 drives.

    I am not familiar with ZPS though.

    In a professional environment, monitoring disk health is daily task and disks are replaced when they become unhealthy rather than completely fail. You also have to remember that the disk rebuild process can take some time and if another disk fails in the array during the rebuild process you have a big problem.

    I can't see a mechanism where files are available through one application but not available through the operating system.

    regards
    Greg

Posting Permissions

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