NAS rescanning: what is happening here? |
Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
NAS rescanning: what is happening here? |
Aug 17 2010, 22:48
Post
#1
|
|
|
Group: Members Posts: 32 Joined: 23-February 09 Member No.: 67311 |
Ok, I use foobar for more than 2 years now. And I love it.
Now I recently got a NAS (Synology DS410j) and have now managed to transfer all my library to that place. I Have set the drives as a RAID 5 and it owns a fixed IP within my network. Every time I change some tag on a file sitting on the NAS, foobar is indexing the library. I have no exact clue whether it's a complete rescan but it's taking AGES. It never did that when I had external USB drives with the files residing. When watching the media library window in preferences, I recently realised that foobar is having "ERROR" displayed for a second after I had an album replaygain-scanned. After that it started indexing again. Now what is responsible for this behaviour and is there a switch I can use to keep foobar from annoying me this way? Please - if someone out there has come across it: I'd be immensely grateful for any clues. many thanks for your patience |
|
|
|
Aug 25 2010, 15:38
Post
#2
|
|
![]() Group: FB2K Moderator Posts: 2359 Joined: 30-November 07 Member No.: 49158 |
Here, I've submitted a bug report for you.
-------------------- Full-quoting makes you scroll past the same junk over and over.
|
|
|
|
Aug 26 2010, 23:12
Post
#3
|
|
|
Group: Members Posts: 32 Joined: 23-February 09 Member No.: 67311 |
Here, I've submitted a bug report for you. hey! great, thanks a lot. I have read the report and followed the link. Unfortunately, I don't get everything of it as I am not a programmer. Can I apply this patch to my NAS somehow and would it solve the problem? Would applying the patch mean I'd risk losing data on the NAS? Thanks very much for this in any case. All the best |
|
|
|
Aug 27 2010, 05:22
Post
#4
|
|
![]() Group: FB2K Moderator Posts: 2359 Joined: 30-November 07 Member No.: 49158 |
No, you personally can't do that. They should apply it to the source code (in text) of the Samba library (the server for Windows sharing on the NAS), then build and provide a new packaged version for you to upgrade. However I don't know if that's ever going to happen - I have no experience with Synology's support.
What's worse, this is an issue which affects most likely ALL Linux based devices out there, be it NAS or a full blown Linux server, because the bug has been surprisingly fixed only a few weeks ago and no version of the library has been released since yet. That said, I've successfully patched this on my Synology DS-109j. I'd give you the patch too, to test and enjoy it yourself, but it seems your DS410j is unfortunately based on a different hardware and it's not that easy. Oh well, I can try to do that blindly. If you want to be a guinea pig, feel free to say so Just a note: Of course, you would be doing all this at your own risk. I have not tried the patch for your NAS myself because I couldn't. However if you are careful, worst what can happen is you get non-working Windows shares for a while. No loss of data or anything. I can give you a detailed enough guide on how to patch your box, as well as help you to resolve any issues which might occur - but some general understanding of command line would be needed, for example. Tell me if you feel you could be up to this task. Or I might post the instructions regardless and you'll see then. -------------------- Full-quoting makes you scroll past the same junk over and over.
|
|
|
|
Aug 27 2010, 13:56
Post
#5
|
|
|
Group: Members Posts: 32 Joined: 23-February 09 Member No.: 67311 |
Well, thanks so much for the swift reply.
I think I'd try and go for it. I can handle a command line. That's not gonna be the problem. Is there anything that I can upload for you so you can have a look and see if your patch would be working with my box? Some part of the firmware data. If so, please let me know where to find it and I'll have it sent asap - or posted if it's just config files. I will be away for the weekend but am to return monday night. So don't wonder with me not posting - I have not lost interest. Again: So many thanks for your help and patience. All the best |
|
|
|
Aug 27 2010, 15:56
Post
#6
|
|
![]() Group: FB2K Moderator Posts: 2359 Joined: 30-November 07 Member No.: 49158 |
All right, here are some more information I have collected. Sorry if you find it too lame sometimes, I really didn't know what kind of audience I was writting it for
How to know if it's broken or not? I do it like this:
Installing instructions:
If it seems fine:
If anything goes wrong:
Just for completeness' sake, here are both patched smbd files I have.
-------------------- Full-quoting makes you scroll past the same junk over and over.
|
|
|
|
Oct 11 2010, 23:44
Post
#7
|
|
|
Group: Members Posts: 1 Joined: 11-October 10 Member No.: 84534 |
Hi Yirkha,
Thanks very much for your detailed post. I am also using a Synology DS (a DS209+II) with foobar2000 and am having the same issue (I also checked with MS Network Monitor and found the same messages as you describe with Wireshark). This problem still exists with the latest DSM 3.0 (1337) and it appears that Samba 3.2.8 is still present in this particular build of DSM (I personally think it has not been updated for a while). I was checking the Samba web site and noticed that the patch you mention is now integrated into Samba 3.5.6 (changelog here). However, my main question to you (if you do not mind!) is how did you create the new SMBD file for your DS109j? Is the source code for Samba on the device somewhere, so that you can easy patch it by copy-pasting the code patch and then compiling it on the diskstation? Sorry for the basic questions, I am intrigued by this as there doesn't seem to be many users that experience this issue. Thank you for your time. |
|
|
|
Oct 12 2010, 00:37
Post
#8
|
|
![]() Group: Admin Posts: 4220 Joined: 15-December 02 Member No.: 4082 |
The source code is rarely included on the device itself. Usually you download and unpack the source on your desktop system and build with a cross compiler tool chain.
|
|
|
|
Oct 13 2010, 00:43
Post
#9
|
|
![]() Group: FB2K Moderator Posts: 2359 Joined: 30-November 07 Member No.: 49158 |
But it's unfortunately not as simple. The vendors very often use their own tuned kernels, special build configuration and custom patches and it's next to impossible to replicate all that to compile stuff 100% correctly even on the device itself (like it is possible with Synology's products). The customizations are also one of the reasons why the companies are not very into updating system components on the devices across major versions.
So I use the safest method possible, which is download the original binary, learn yet another assembler flavor, find the broken code and patch it (that usually involves optimizing the existing code first to make some space for the fix). If you want, I can give you a patched smbd for DS209+II too. The fix might be even exactly the same as in one of the files I've already done, there are only a limited number of CPU architectures available afterall... -------------------- Full-quoting makes you scroll past the same junk over and over.
|
|
|
|
May 14 2012, 00:29
Post
#10
|
|
|
Group: Members Posts: 71 Joined: 22-August 10 Member No.: 83276 |
Yirkha: I have the same issue with my Synology NAS (212J). Would you be able to help compile smbd?
My version: QUOTE DiskStation> openssl md5 smbd WARNING: can't open config file: /usr/syno/ssl/openssl.cnf MD5(smbd)= 742f82a220109e351b5db2387e56af0a DiskStation> smbd -V Version 3.2.8 |
|
|
|
May 15 2012, 00:20
Post
#11
|
|
|
Group: Members Posts: 71 Joined: 22-August 10 Member No.: 83276 |
I think I figured out how to manually install an updated smbd package by following the detailed instructions at this Synology forums post.
Still playing with this thing so I'm not positive. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 06:10 |