briandigital

Q: Lion Server: All network users have disappeared

Hi,

 

A search through the forums and kbase didn't give me anything that mapped well to my problem. Here's the situation:

 

Specs:

Mac Pro (2008) 6GB RAM, SSD boot with space available, OS X Lion (latest) with Server.app

Services:

File Sharing

Users: less than 15—accounts only used for file server access.

This is the only server on the local network, all network routing is taken care of by a Meraki router.

 

I went to add a new user to our fileserver, and was unable to connect to the server over Apple Remote Desktop. At the time, file sharing from the server (I *believe*) was still working. I logged in with the file server's local admin account via SSH and tried to use Kickstart to get ARD running again—something I'm well versed in. The script ran as usual, but ARD could still not connect. So, as everyone was in a meeting, I tried to use `shutdown` to reboot the fileserver from the CLI, something I've also done in the past (but not frequently). Usually that takes about a minute to work, and then my shell disconnects—but after 5 minutes, the Mac had not rebooted.

 

At that point, I decided to walk to the server and manually force it down by holding the power button in. That powered off the Mac, and 30 seconds later, I booted it up.

 

Back on my Mac via ARD, I was able to remotely control it and got to the Fileserver's log in screen, which featured a red dot in the use field I'd never seen before. It's tool tip read "network users are currently unavailable" (paraphrased, perhaps). I logged in with the Fileserver's local admin user (as usual) and launched the Server.app, only to find that in the `Users` section, there were no users listed, and the plus and minus buttons were greyed out.

 

I tried rebooting but got the same results. I then repaired permissions and verified the boot drive. Lots of permissions repairs (as usual) but nothing improved. Another reboot after the permission repair and disk repair, just for safety's sakes… and as you can guess by me posting here… no improvement.

 

I'm not heavily versed in Server. I'm not even sure if those users are stored in a database, and where that DB would live. Does server make dumps or backups of the users on its own? Should I have been? Is this LDAP? Anyone have some next steps I can try? What info would be useful?

 

My first goal would be to recover a damaged DB. I only have just under 15 users, so re-creation isn't difficult. But, under the department of "I don't know a ton about Lion Server" I don't know if network users act like OS X users… where you could create a new user with the same username, but if their UID is different, then they won't have access to their owned files on the fileserver… is Server that exacting? Does it care who owns the file?

 

Thanks in advance for any ideas, or resources you can point me to!

Mac Pro, OS X Server, 10.7.5 Lion Server

Posted on Jan 19, 2015 11:42 AM

Close

Q: Lion Server: All network users have disappeared

  • All replies
  • Helpful answers

  • by briandigital,

    briandigital briandigital Jan 19, 2015 1:01 PM in response to briandigital
    Level 1 (5 points)
    Jan 19, 2015 1:01 PM in response to briandigital

    Interesting follow up:

     

    This all happened last Tuesday (I post this Monday of the following week after being away from work, and am the only administrator on this server). I wrote out everything, and posted the above today. Then I remoted-into the server, and discovered all the users have reappeared! I am able to access file services remotely now. One other person has confirmed she can as well. But not all is well. I tested the system by trying my original task: adding a new user. I receive an error message when I attempt to save the new user's info: couldn't complete request.

     

    Then I came back here to type that up… and then went back to check that error message again… and it's listing the new user as made. I was also able to add him to the proper group.

     

    What is going on here?

  • by briandigital,

    briandigital briandigital Jan 19, 2015 2:24 PM in response to briandigital
    Level 1 (5 points)
    Jan 19, 2015 2:24 PM in response to briandigital

    It gets far weirder……

     

    Now no one, myself included can log in.

     

    Checking the logs, which I'll try to attach a small sample of here (Dropbox link below since you can only attach images here), I see repeated instance of both `opendirectoryd` crashing and respawning, and of server manager unable to authenticate:

     

    1/19/15 4:57:06.658 PM com.apple.opendirectoryd: Assertion failed: (0 == (connection->flags & eODConnectionFlagSocketValid)), function __odconnection_connect_block_invoke_2, file /SourceCache/opendirectoryd/opendirectoryd-172.17/src/odconnection.c, line 988.

    1/19/15 4:57:07.641 PM com.apple.launchd: (com.apple.opendirectoryd[13760]) Job appears to have crashed: Abort trap: 6

    1/19/15 4:57:07.641 PM com.apple.launchd: (com.apple.opendirectoryd) Throttling respawn: Will start in 9 seconds

    1/19/15 4:57:07.761 PM ReportCrash: Saved crash report for opendirectoryd[13760] version ??? (???) to /Library/Logs/DiagnosticReports/opendirectoryd_2015-01-19-165707_localhost.cras h

    1/19/15 4:57:17.276 PM PasswordService: -[AuthDBFile getPasswordRec:putItHere:unObfuscate:]: user with slot 4873a20f-0cc0-f7c3-0000-000a0000000a not found.  Result: 80 Other (e.g., implementation specific) error

    1/19/15 4:57:17.277 PM AppleFileServer: _Assert: /SourceCache/afpserver/afpserver-585.7/afpserver/AgentSession.cpp, 856 (4294952813)

    1/19/15 4:57:32.703 PM servermgrd: servermgr_accounts: got error 2100 trying to auth to local LDAP node

    https://dl.dropboxusercontent.com/u/1344045/server-sample.log.txt