OS X El Capitan – 10.11.6
MBP Mid 2015
I have file sharing setup to a folder on an external drive. I use the sharing via VLC on my phone or on a fire stick.
The most recent example was watching a movie for more than an hour, pausing and coming back less than 5 minutes later and not being able to continue watching. Confirming on the phone the file sharing seemed to be no longer working. Going back to the laptop and turning sharing off and back on resolved the problem.
The laptop is connected to a power adapter and the power settings in adapter mode prevent the computer from sleeping automatically when display is off and the put hard drives to sleep when possible is not checked.
I had noticed that if the filesharing is working properly and I come back to the laptop and unclick filesharing, osx will come up with a dialog that says users are still connected to the sharing, would you like to end sharing in x minutes. If I come back and the sharing is not working and unclick the sharing it doesn't give this warning. Sometimes the problem is the firestick as I can see the sharing working on the phone but sometimes the problem is osx as the sharing has stopped working for both. I am not too surprised the firestick stuff is a little unstable but the problems with osx and sharing surprise me.
Any thoughts as to what causes this?
Best Answer
The following might be one of the issues but it hasn't fixed the issue for me so I'll continue to look for a solution. Opening preferences, sharing and enabling and disabling sharing causes the sharing to start working again so possibly I just need a cron job that runs every so often and does whatever the gui is doing in the background. The other possible hint is that my monitors are typically asleep so I might test around disabling the "turn display off after" or "automatic graphics switching" features.
The OSX powernap feature and SMB don't like each other. I've quoted and pasted the link below describing the problem. The answer is also apple recommended so that leads credence to it.
https://discussions.apple.com/thread/7842881
I'll update once I've had a chance to test out disabling the other energy features and see that I don't encounter any more issues with the file sharing.