Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Repair a crashing Personal File Sharing service Network
For the last couple of weeks, I've had a most annoying problem: Personal File Sharing (in the Sharing System Preferences panel) on my Mac Pro would crash whenever I connected to the machine from another Mac. I could restart file sharing, but it would crash again the next time I tried to connect. To further complicate troubleshooting, connecting as a guest worked perfectly -- it was only when I tried to login as me that file sharing would crash. Needless to say, this made it most difficult to transfer files around the house. After much work with Google, trying to find the right terms to search with, I eventually stumbled onto the solution ... right here on our very own forums! To make the solution a bit easier for others to find, I'm posting it here, without the crash logs and other detail you can find in the linked post above.

The problem turned out to be a missing file, com.apple.ByteRangeLocking.plist, which is supposed to reside in the top-level /Library » Preferences folder. On my Mac Pro, it was missing (as was /var/db/BRLM.db, another file sharing-related file). The fix? You can copy the file from another Mac. However, it's a simple file, and forum poster voldenuit posted the contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>DB_HASH_TABLE_MAX</key>
  <integer>4096</integer>
  <key>DB_INIT_SIZE</key>
  <integer>2097152</integer>
  <key>DB_Location</key>
  <string>/var/db/BRLM.db</string>
  <key>DB_PROC_TABLE_MAX</key>
  <integer>1000</integer>
</dict>
</plist>

I copied the above code, ran sudo vi com.apple.ByteRangeLocking.plist (from the /Library » Preferences directory) to open the editor as root, then I pasted the code and saved the changes.

When I restarted Personal File Sharing, it worked perfectly: the BRLM.db file was created automatically, and I could once again login as myself without crashing the server. Hooray!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[13,901 views]  

Repair a crashing Personal File Sharing service | 7 comments | Create New Account
Click here to return to the 'Repair a crashing Personal File Sharing service' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I just wonder how two (seemingly) important system files got deleted.
Authored by: bradleyd1971 on Feb 27, '07 09:17:39AM

I wonder if something you installed/uninstalled deleted them, or if you use a program like appZapper if it deleted them.

However, wouldn't you be prompted for a root user password if something you were doing was going to delete system related files?



[ Reply to This | # ]
I just wonder how two (seemingly) important system files got deleted.
Authored by: robg on Feb 27, '07 10:06:19AM

Yes, I certainly should have been notified of any changes. I've never installed any app removing tools, so that can't be it.

As someone pointed out on the forums, the fact that the entire file sharing system crashes due to a missing preferences file is quite inane -- it should just recreate the necessary plist file if it's not there, as all our other apps do!

-rob.



[ Reply to This | # ]
I just wonder how two (seemingly) important system files got deleted.
Authored by: macevangelist on Feb 28, '07 07:22:54AM

Did you file a bug report?



[ Reply to This | # ]
Repair a crashing Personal File Sharing service
Authored by: vonkas on Feb 27, '07 01:35:51PM

Here is my insight into why these files may have dissappeared (10.4.x). I have seen similar things happen with mail and iCal where for example in iCal a certain calendar simply vanished - the associated .ics file dissapeared. Another case was a dissapearing mail box. These occurances were preceeded with the application crashing. My theory is that the app (or something) corrupted the file to a point where the OS did no longer see it or even eliminated it - on re-launch of the app that file cannot load resulting in odd behaviour or lost data. I have a feeling there is an underlying problem in the OS that allows files to corrupt & subsequently disappear without warning. I'm not sure how journalling works and if that may be relevant here, but I have one Mac where journalling has been turned off for years and the user data is on a non system partition - that machine is has had it's share of crashes, system re-installs & upgrades, but has never lost any user data.



[ Reply to This | # ]
Repair a crashing Personal File Sharing service
Authored by: scottdb on Feb 27, '07 02:08:32PM
I too was having this problem. Apple File Server (administered from the 'personal file sharing' preference pane) was crashing every time I tried to connect. And yes, replacing this file did fix this super-annoying problem.

[ Reply to This | # ]
Repair a crashing Personal File Sharing service
Authored by: tkw4u on Feb 28, '07 01:04:00PM

We had a similar problem on our OS X server with AFP. File Sharing wasn't crashing but slowed to almost a complete stop. Called AppleCare and they suggested deleting the BRLM.db file and restarting AFP. Fixed the problem in an instant. The AppleCare rep said it was a known problem that they couldn't find a reason for yet.



[ Reply to This | # ]
Repair a crashing Personal File Sharing service
Authored by: WaltBudz on Apr 03, '07 10:42:51AM

Perfect. This was it. That file was missing and recreating it in terminal was a breeze with this information. Thanks for a most helpful post.



[ Reply to This | # ]