INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Client mounting remote disk unnecessarily  (Read 383 times)

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Client mounting remote disk unnecessarily
« on: March 21, 2025, 11:34:53 pm »

<Moving this to new thread since the subject has changed>

  • On Machine "MCServer": MC serves a library which lives on an external disk "MediaDisk" on this machine.
  • On Machine "MCClient": MC loads library from "Server".
  • Playing a song on "MCClient" causes "MCClient" to mount "MediaDisk" as a remote volume.

Note "MCClient" has "Play local file if one that matches Library Server file is found" option FALSE.

This is a problem; the mount of "MediaDisk" on "MCClient":
  • should not happen, and
  • takes about 4 seconds, causing a delay when starting playing on "MCClient"

I cannot see any reason why "MCClient" should mount the disk "MediaDisk" in order to play songs from the library loaded from "MCServer". But it does, 100% of the time.

Is this a bug? Is there a way to avoid this behavior?

Both machines running MC 33.0.44, MacOS 15.3.2
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 73012
  • Where did I put my teeth?
Re: Client mounting remote disk unnecessarily
« Reply #1 on: March 22, 2025, 07:25:38 am »

33.0.71 is on the Download Page.
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #2 on: March 22, 2025, 09:29:15 am »

The problem persists with both server and client running 33.0.71.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 73012
  • Where did I put my teeth?
Re: Client mounting remote disk unnecessarily
« Reply #3 on: March 22, 2025, 10:07:52 am »

In your case, the MediaDisk file isn't a local file, is it?
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #4 on: March 22, 2025, 10:20:44 am »

In your case, the MediaDisk file isn't a local file, is it?

It's an external disk connected to the server. It's also net-mountable by the client. Both client and server see the files on Media disk with the same path. Like

   /Volumes/MediaDisk/Music/someArtist/someAlbum/someSong.wav
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #5 on: Yesterday at 09:20:46 am »

Any update on this one?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2880
Re: Client mounting remote disk unnecessarily
« Reply #6 on: Yesterday at 10:23:45 am »

Is the volume auto-mounted on access on the client (outside of MC) ?
If so, a simple "check if file exists" would mount it.

Why not just keep it mounted and enable the local playback option?
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #7 on: Yesterday at 11:18:05 am »

Is the volume auto-mounted on access on the client (outside of MC) ?
If so, a simple "check if file exists" would mount it.

A couple of points. One, I am trying to avoid the 4-second delay it takes to mount the remote volume when the client MC restarts. (For various reasons, the client doesn't run all the time.) Also, a constantly mounted remote disk complicates admin of the server machine due to "a client is connected to this machine, do you really want to do this" type of alerts. So I really don't want that remote disk mounted by the client all the time.

Quote
Why not just keep it mounted and enable the local playback option?

Because MacOS has terrible network file system performance. Even though I have a steady, reliable 300 Mb/s net connection on both client and server, it takes 5 seconds or more to fully preload a large FLAC file on the client so that it's all in memory. If I don't enable memory playback then the client will inevitably stutter. This is just a fact of life with MacOS's crappy network-mounted file system. Experimentation shows me that MC does WAY better at streaming its data than MacOS's net-mounted file system.

From another angle, is it fair to ask "why is MC causing this remote file system to mount when it has no business doing so?" It really should not do this, I can't imagine any good reason it does.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2880
Re: Client mounting remote disk unnecessarily
« Reply #8 on: Yesterday at 01:31:00 pm »

You didn't answer this:
Quote
Is the volume auto-mounted on access on the client (outside of MC) ?

If the volume is auto-mounted (eg, by doing an 'ls' on the mount path), then it's not an MC issue - just disable automount.
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #9 on: Yesterday at 01:44:52 pm »

You didn't answer this:
If the volume is auto-mounted (eg, by doing an 'ls' on the mount path), then it's not an MC issue - just disable automount.

I know nothing about any automounting of this path, I never configured anything to enable this. How would I go about disabling it?
Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #10 on: Yesterday at 01:50:29 pm »

In any case, no it is not getting automounted. After unmounting:

Rambler.local dmitch> ls /Volumes/dmMedia
ls: /Volumes/dmMedia: No such file or directory

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2880
Re: Client mounting remote disk unnecessarily
« Reply #11 on: Yesterday at 02:29:57 pm »

It may still be automount. I don't see how else the volume gets mounted, I don't think MC would mount a volume by itself.

Make sure this is NOT enabled:
https://www.google.com/search?q=macos+automount+volume+on+access

Or maybe:
https://discussions.apple.com/thread/8567057

Logged

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #12 on: Yesterday at 03:28:38 pm »

None of those apply and are not in play. Plus the volume doesn't get mounted at login itime. It gets mounted when MC plays a song that lives on that drive.

I don't think MC would mount a volume by itself.

I agree that MC shouldn't mount that volume. :-) But I know with 100% certainty that the volume gets mounted as soon I play a song that happens to live on that disk, even though I told MC not to use a local version. I don't know how it's getting mounted, I just know that MC is doing something, when it starts to play that song, which results in the disk getting mounted.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 8168
  • The color of Spring!
Re: Client mounting remote disk unnecessarily
« Reply #13 on: Yesterday at 06:52:03 pm »

Try enabling logging in MC and reproduce it and see what the log says.

... oh wait, that'd probably get it to mount, huh? :-X
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit (AMD 7900X CPU/AMD 7800 XT GPU/64GB RAM/2TB M.2 NVMe SSD)
macOS Sequoia 15.3.2 (M4 Mac Mini 16GB RAM/256GB SSD)
Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Mac + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

dmitch77

  • World Citizen
  • ***
  • Posts: 214
Re: Client mounting remote disk unnecessarily
« Reply #14 on: Yesterday at 11:51:14 pm »

Try enabling logging in MC and reproduce it and see what the log says.

The log doesn't make any sense to me, it doesn't have any text associated with the file in question, or the server (Number6, in this case) or the media volume (dmMedia in this case). I've attached the log here.

The sequence is
  • Quit MC
  • Unmount /Volumes/dmMedia
  • Run MC
  • Enable logging, reset log
  • Start playing a song from the dmMedia volume
  • As soon as playback starts, stop it. Note /Volumes/dmMedia is now mounted.
  • Grab the log file

Resulting log file is attached.
Logged
Pages: [1]   Go Up