Need to change the path on every file in the library

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Need to change the path on every file in the library

Post by mwg47x »

Just want to ask before doing this.
I have all my music files on a NAS (TrueNAS).
In MMW4 the path for every file is \\servername\sharename
I want to change this to \\IPaddress\sharename.
I think it will help with MM randomly not playing files and greying them out which is quite annoying at times.

Can I just use Locate Moved/Missing Files, highlight network/add the IP address of the server and when the shares populate just have it scan the appropriate share?
Is it that simple or am I missing something?
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

Hi,
Yes you can simply use Locate moved missing files. But make sure that \\servername\ is not accessible anymore eg. rename it in NAS settings.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

Thanks for the reply.
Does that change of name have to be permanent?
Or can I change it temporarily and then change it back when I'm done?
I don't really want to change it permanently as that will screw up a lot of other stuff.
It can be done but it will be a PITA, know what I mean?
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

Hi,
Locate moved/missing is permanent change because MM stop looking at old place.

You can always repeat same procedure as it is not destructive it just saves you lots of Copy/Paste action in SQL editor.

Also I use static IP for years on my nas ne never reverted back, so easier than with name and depending on other factors.

NOTE: that MM will also detect taht orginal path is still available and will not let you update to new path. Thus I suggested rename.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

OK.
Thanks for the explanation.

I also use a static IP for the TrueNAS box.
After thinking on it, it shouldn't be hard to sort this out.
Just have to change the name and the A record in DNS. (I run a domain here so I don't get rusty with AD)
And change some shortcuts on the wife's computer.

I have kind of been wanting to change the name anyways after the change from FreeNAS to TrueNAS.
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

So now I am finding out I have to remove the NAS from the domain to do this properly.
That causes a lot of other work and issues.
Is it possible to edit the database directly?
Replace all references to hostname with the IP Address?
What editor (free) can I use to do that, assuming it is possible?
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

Hi,
Out of curiosity what you use for DNS and your setup, I am thinking to reorganize my LAN for quite some time, but bit lazy to renew knowledge about all the hardware I accumulated over the years.

I was thinking to run sort of https://www.qnapclub.eu/en/qpkg/267
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

mwg47x wrote: Mon Jul 18, 2022 7:03 am So now I am finding out I have to remove the NAS from the domain to do this properly.
That causes a lot of other work and issues.
Is it possible to edit the database directly?
Replace all references to hostname with the IP Address?
What editor (free) can I use to do that, assuming it is possible?
It is possible, but not recommended and it involved multiple tables. Locate moved/missing is safe bet.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

So editing the database directly is a no go.
Got it.

Let me ask you this - If I do this, is it going to help with my issue?
Sometimes MM will actually play a song for 2 to 5 seconds, then it stops and goes to the next song in the playlist.
The song that played for a few seconds will be greyed out in MMW4.
Drives me crazy.
If I do all this work, is this even going to help or am I wasting my time?

To answer your DNS question - I have a pfSense box as my router and that is the main DNS server for the network.
All lookups for my domain are forwarded from pfSense to one of the domain controllers, which also acts as a DNS and DHCP server.
If you want any specifics, just ask.
I'll help in anyway I can...
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

Hi,
Why don't you just install latest MM5 as Portable and play.

Also if you get back to Grayed track and play it again does it play completely or just few seconds and skips?

WiFi can be problematic, if you have Auto Switch channels. I created Asus Mesh (WiFi 6 4300 Mbps LACP on 4 LAN ports Switch) around house to avoid issues with mobile devices, tablets, STB and Android TV that depends on WiFi, but server is on L2+ Switch in LACP 2Gb/s (1+1 LAN port), and main PC is wired.

As for DNS, looks like I will not avoid to dig in Mikrotik again and set it to be DNS LAN server+Proxy alongside firewall function. THX for offer, I maybe will need some suggestions.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

Peke wrote: Mon Jul 18, 2022 9:43 am Hi,
Why don't you just install latest MM5 as Portable and play.

Also if you get back to Grayed track and play it again does it play completely or just few seconds and skips?

WiFi can be problematic, if you have Auto Switch channels. I created Asus Mesh (WiFi 6 4300 Mbps LACP on 4 LAN ports Switch) around house to avoid issues with mobile devices, tablets, STB and Android TV that depends on WiFi, but server is on L2+ Switch in LACP 2Gb/s (1+1 LAN port), and main PC is wired.

As for DNS, looks like I will not avoid to dig in Mikrotik again and set it to be DNS LAN server+Proxy alongside firewall function. THX for offer, I maybe will need some suggestions.
MM5 requires Win10 which I hate and do not use.

If I go back to the greyed out track, sometimes it refuses to play at all and other times it will play a couple of seconds and skip again.
No WiFi here. The house is wired and everything is on a wired 1Gbps LAN.
What is interesting is that if I browse the NAS and right click the files that MM has greyed out and click "Play in MediaMonkey", they play just fine.
That is why I am hoping that changing the path to the IP address versus the host name will help.
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

So I was wrong, right clicking and starting playback from Windows doesn't always work either.
In looking at this more, I remembered that SMB v1 was disabled in TrueNAS by default.
I went into the SMB config on TrueNAS and found a checkbox to turn that on which I did.
This has helped but I'm not convinced it is the solution yet.

What is really irritating is that this worked fine for years and then in the last 2 or 3 months or so it has become a major issue.
I can't for the life of me figure out what changed to cause this suddenly but I do have a feeling it was one of the updates to TrueNAS.
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

mwg47x wrote: Mon Jul 18, 2022 11:52 am MM5 requires Win10 which I hate and do not use.
I was early adopter of Win 10. except telemetry it is very stable OS especially if you enable GOD MODE control Panel.
mwg47x wrote: Mon Jul 18, 2022 1:20 pm What is really irritating is that this worked fine for years and then in the last 2 or 3 months or so it has become a major issue.
I can't for the life of me figure out what changed to cause this suddenly but I do have a feeling it was one of the updates to TrueNAS.
Do not exclude MS that quickly.

Please keep us posted.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
mwg47x
Posts: 42
Joined: Thu Nov 27, 2014 2:39 pm
Location: Colorado

Re: Need to change the path on every file in the library

Post by mwg47x »

I think I am going to take some of your advice and approach this issue differently.
Changing the name on that box is going to break a lot of things and I just don't want to deal with it.
Especially since I can't be 100% sure it will even fix my issue.

So, I have decided to install Win 10 into a Virtual machine.
I will load MM5 on that VM.
I can just import the MM4 database, correct?
I assume that having the path as \\servername\sharename in MM5 doesn't cause the issues that it does in MM4?
You mentioned that I should install MM5 as a portable install.
I'm curious as to why that is better.
Is it to avoid the issues I am having?
Peke
Posts: 17489
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Need to change the path on every file in the library

Post by Peke »

mwg47x wrote: Tue Jul 19, 2022 6:50 am So, I have decided to install Win 10 into a Virtual machine.
I will load MM5 on that VM.
I can just import the MM4 database, correct?
I assume that having the path as \\servername\sharename in MM5 doesn't cause the issues that it does in MM4?
You mentioned that I should install MM5 as a portable install.
I'm curious as to why that is better.
Is it to avoid the issues I am having?
1. Yes.
2. Yes, correct MM5 should not have issues with UNC paths
3, 4. No system files access eg. better compatibility with VM versions of Windows and all is under same roof in MM install folder
5. Yes and it is easier to fully backup full working copy of MM..
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply