Server Upgrade Time

I’m severely tempted to upgrade my local server. It’s a Dell Dimension 4600, running Ubuntu and with just under 1TB of disk space.

And I’m just not that happy with it. Occasionally it still crashes, and I can’t figure out why. I don’t know if it’s to do with VMWare, or something else.

It’s not so much a running out of disk space thing. It’s more that it just doesn’t cut the mustard. Perhaps I’ve been spoiled by OS X, but things just aren’t that easy to do on Linux. For instance, it took ages to get AFP sharing working, and even now it isn’t perfect. For instance, I have two shares that allow me access to some of the same files (the root directory of one share is inside another share’s directory). If I view a particular directory inside the share, then it shows me less files than actually exist in that directory, but the other share shows them all. Even if I disable the ‘outer’ share, the inner one still only shows the smaller number of files.

I found a shop today that sells 500GB SATA drives, which would allow me to migrate data without any loss, by plugging into one of the two spare slots, and installing a new OS onto that drive. I might be tempted to reinstall OS X onto the machine, but I think it was just a bit unstable too. Perhaps it is just the box.

I’d really like to move to a Mac Mini, but I don’t think I’d like to have to put a heap of external drives hanging off that again. Perhaps I should look for a cheap second hand Mac that will run OS X.

netatalk seteuid issue

I’m having one small issue with netatalk. Every now and then I can no longer connect to the server, and I am seeing the following in /var/log/syslog:

Jul 21 21:25:49 localhost afpd[3345]: server_child[1] 19040 exited 1
Jul 21 21:25:49 localhost afpd[19041]: ASIP session:548(5) from 192.168.1.76:50047(7)
Jul 21 21:25:49 localhost afpd[3345]: server_child[1] 19041 done
Jul 21 21:25:51 localhost afpd[3686]: Warning: No CNID scheme for volume /home/installers. Using default.
Jul 21 21:25:51 localhost afpd[3686]: seteuid failed Operation not permitted
Jul 21 21:25:51 localhost afpd[3686]: Fatal error: cannot open CNID or invalid CNID backend for /home/installers: cdb

Restarting netatalk fixes the issue immediately. I have no idea what this problem means. It seems to happen after the server has been up for a while. The log from a successful connect looks more like:

Jul 21 21:46:54 localhost afpd[19109]: server_child[1] 19889 exited 1
Jul 21 21:46:54 localhost afpd[19890]: ASIP session:548(5) from 192.168.1.76:50066(7)
Jul 21 21:46:54 localhost afpd[19109]: server_child[1] 19890 done
Jul 21 21:46:56 localhost afpd[19120]: Warning: No CNID scheme for volume /home/media/music. Using default.
Jul 21 21:46:56 localhost afpd[19120]: Setting uid/gid to 1001/1001
Jul 21 21:46:56 localhost afpd[19120]: ipc_write: command: 2, pid: 19120, msglen: 24
Jul 21 21:46:56 localhost afpd[19109]: ipc_read: command: 2, pid: 19120, len: 24
Jul 21 21:46:56 localhost afpd[19109]: Setting clientid (len 16) for 19120, boottime 46A193BC
Jul 21 21:46:56 localhost afpd[19109]: ipc_get_session: len: 24, idlen 16, time 46a193bc

But the uid/gid isn’t always the same. It appears to depend on the permissions of the share. I wonder if I need to change a setting in the netatalk settings so it doesn’t require the seteuid.