One week! Goddammit! Snow Leopard Server 10.6.8 -

aramaki:~ administrator$ sudo slapconfig -kerberize administrator aramaki.kudde.net
administrator’s Password:
Error: Unable to contact the master LDAP server.

Yeah… That’s quite enough… Piece of shit! I am so tempted to just smash it with a hammer and buy a PC server right now.

How it happened? In the early AM’s of today the ethernet driver pooped it’s pants for unknown reasons. Apparently (according to forums) a whole lot of people have this issue sometimes. Lucky for me I needed to forcefully reboot the Mac and as we all know Open Directory really fucking hates that.

So here we are. On the brink of rage.

The only reason my Mac OS Server still has server installed is because it allows network users and allows me to hide/remove home folders from the shares overview in Finder.

VPN Broke (or never worked, I’m not sure.) Earlier today Open Directory broke. And, guess… All file permissions got screwed up.

Luckily Apple decided that I don’t need a “propagate permissions” setting anymore. So I can’t even properly re-apply the permissions to my share. Huzzah! Some fiddling with the user resulted in Open Directory dying. But that’s ok… It’s only a critical part of the server. Who needs Open Directory anyway.

Turns out it’s now optional. So I flushed the database and turned it off. Even less services active that can break. That’s an improvement.

 

Earlier this month I’ve built and deployed a new server using ClearOS to replace Mac OS Server. So far this has been a most enjoyable experience so much so that I often forget the server is there. That’s how good it does it’s job. It didn’t bother me once and just does what it’s supposed to do. Great!

Over the first few days obviously I logged in repeatedly to check on things, tweak the settings a bit and discover the “odd” and strangely exciting Linux bits and bobs about the system. Not that there was much to discover really since the web configuration works really well for the most part. Some menus are a bit non-logical or, to my mind, silly to navigate. But overall it works really well.

And that also makes for little words. It works, it works well. And there isn’t much more to be said. But that’s a bit short…

I like how ClearOS is set up. It’s fairly easy to do. Additionally they introduced a marketplace where you can get free and paid modules for the OS like adding new services or daemons to the system. This makes for a modular system that can be tailored to your specific needs. Unlike Mac OS Server where you’re kinda forced into a default package and constantly have to be reminded about the Mail, iCal, and whatever other services you don’t use. None of that in ClearOS. Don’t use a module? Don’t install it. Simple as that.

The dashboard is clearly designed by someone who likes to do things the easy way. Which is good, because it makes it easy to use and still offers all the required options. Daemons offer more than an on/off switch and can be configured quite a bit, depending on the service of course.

And it’s stable and fast, so far, not a single hick-up that I experienced. Which to me is paramount.

A glance at the past

To give you some insight – The “old” network had one Mac OS Server, doing everything in terms of network and web services. So it handled DHCP/DNS/VPN/Httpd/MySQL/Filesharing and Open Directory. Back then the server ran Mac OS 10.6 Server and it worked relatively well.

Then Mac OS 10.7 Server came around and I’ve upgraded some software preventing me from running Mac OS 10.6 but the experience was less than stellar. The OS was plagued by bugs, incompleteness and just poor software. Quite undesirable for a server.
Somewhere in this period I’ve added another server for Minecraft handling AFP (Filesharing) and it shared Open Directory with the other server (in a Primary/Replica setup). This created a bit of a divide in services. The original server would handle networking and media streaming and the new one Minecraft and related services.

Even later Mac OS 10.8 came along which fixed many of 10.7′s shortcomings but introduced much more. The lack of DHCP for one. A broken DNS server. Horrible VPN performance. Oversimplified management that allowed for nothing. And overall just a poor experience and worse performance. So after a while I was just fed up with it and bought a PC to run a Linux server on it.

So what does the network look like now?

ClearOS solved almost all the shortcomings I found with Mac OS Server. So currently there are 3 servers. Along with several devices like switches and wifi accesspoints.

1. ClearOS 6 – DHCP/DNS (with an actual domain)/httpd/MySQL/VPN
2. Mac OS 10.6 Server – Minecraft server, MySQL (For Minecraft), AFP shares
3. Mac OS 10.8 Server – Open Directory, SMB/AFP shares, Media Server

As you can see all the essentials are on the ClearOS server. Insuring greater stability. And all the fun and less important stuff is on Mac OS Server. If one of them breaks now it’s annoying, but it doesn’t take down the entire network.

So far the ClearOS machine has performed quite well. It seems very capable of doing what it needs doing. Users of my network commented that looking up websites and local machines works much faster and actually gets them where they need to go.
And overall networking speeds for streaming media seem to have improved a bit. Possibly by taking away the burden of network services from the media server.

I sincerely hope ClearOS will at some point will support a few more “community” tools like BitTorrent (Transmission!) and Plex Media Server. Also I would like to have native support for AFP and Bonjour (Netatalk/Avahi) since aside from one PC we only use Macs and Samba has some limitations we do not wish to encounter.

Once these things are addressed I can phase out the Mac OS 10.8 server then, too. Obviously with some work I can replace the Minecraft machine already, but Mac OS 10.6 server runs just fine and I like having a desktop for it. It makes running the machine that much easier.

Conclusions? If any…

Apple seems to have abandoned real servers in favor of cheap toys. This is supported by Apple discontinuing the xServe and storage arrays a while back. Having no dedicated hardware to run a server on. Why bother making a real server OS. It’s a pity.

With quite some (semi-)Professionals now left in the dark with Mac OS Server I believe that they too will give up on using Mac OS Server, if not already. And will start looking for alternatives. ClearOS and similar organizations now have a better opportunity than ever to step into the gap and offer their products. And so far they do a great job. However, I don’t think ClearOS is a replacement for Mac OS Server if you’re using iCal and Address book services. Even though there is a groupware package called Zarafa, that’s more aimed at replacing Exchange servers.

But, if you need a stable, fast and pretty server OS for your network. You should definitely look at deploying one or more ClearOS systems. They have a free unsupported community version and a professional version for a annual fee starting at only $80 USD. This includes all kinds of support and services. For companies that’s a bargain!

And so it *kinda* ends. All essential daemons to safeguard the functioning of networking services are now moved to the new server. Which I re-installed with ClearOS. This works a lot faster and more efficient than Zentyal, I discovered. Uses about half the ram and whatnot. Despite some initial issues with the ClearOS website and download, it turned out to be quite enjoyable.

Both Mac Mini’s now *only* have Filesharing active. Not even Open Directory anymore. Mysql and Apache crashed on one of them. I’m not even going to bother figuring out why. Mountain Lion Kindly killed my entire Apache configuration after all. Without telling me. All virtual hosts, files. All gone. MySQL won’t start, or talk to me, so I don’t know what’s going on there. But it doesn’t matter anymore.

ClearOS has taken over. Handling Apache/MySQL/DNS/DHCP and VPN. Without blinking it’s eyes or going nuts over nothing. Yay! I know ClearOS from way back, before I used Apple hardware. It was called Clarkconnect back then. Very solid distribution. I hope ClearOS is as good.

So what will the Mac Mini’s do. Well, they both have their uses. One is now a mere media and file server. The other still runs the Minecraft server. At some point, when either one breaks down further I will reinstall both and swap the hardware for them. Since Minecraft isn’t multicore anyway it can just as well run on the dual core Mac and video encoding and media streaming then can use the full speed of quadcore. But that’s for later.

I don’t know. Mountain Lion Server won’t tell me. It just says:

Aug 5 17:54:21 aramaki com.apple.launchd[1] (org.apache.httpd[31999]): Exited with code: 1
Aug 5 17:54:21 aramaki com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds
Aug 5 17:54:31 aramaki com.apple.launchd[1] (org.apache.httpd[32002]): Exited with code: 1
Aug 5 17:54:31 aramaki com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds

And when I use Apples instruction to ‘reset’ the httpd daemon it tells me

Aug  5 17:56:34 aramaki.kudde.net serveradmin[32017]: servermgr_web: restoreFactorySettings failed

Isn’t that awesome? MySQL doesn’t work either. But that doesn’t show up *anywhere* in the logs so I have even less of a clue.

Great!