Subscribe

Odd AFP issue: Fixed!

No comments
Nov
14

So I bought myself a Mac Mini Server to play with, but I was rather dismayed when I tried to connect to a share on it for the first time, I got an error saying:

The operation can’t be completed because the original item for “______” can’t be found.

However, the other machines I have can access it fine, which narrowed it down to some weird issue on my computer. After some searching, someone recommended I recreate the /Volumes folder as root. I didn’t want to do this, so I compared permissions and found that my /Volumes folder was write-only as root (drwxr-xr-x), but the one on the Mac Mini had full access (drwxrwxrwx), so I did a sudo chmod a+w /Volumes and it was all fixed!

S3: Going commando line

1 comment
Nov
12

Dr Nic needed to upload his screencast to S3 so he could distribute his propagandapresentation about Javascript testing to the rest of the world. We tried to upload it from our work connection, but it kept failing with random errors, timing out, and killing the response time of the net since it was choking the upstream.

And so I suggested uploading the 400mb or so file to a remote server via a protocol that can easily be throttled, then uploading it to S3 from there. Since it was my idea, I was ‘honoured’ with handling the logistics of this.

The first step was picking a method to get the file on the remote server without killing your net. My first thought was rsync, and a quick Google search said that there’s an option called –bwlimit which allowed you set the I/O speed (file I/O, not network I/O, but it worked anyway). So about three hours later, the screencast was on the server and then it was down to getting this on to S3.

I found a tool named s3cmd, which is a Python-based command-line tool for S3 management. After you install it (apt-get install s3cmd is what I used on our Ubuntu server), then, you need to run s3cmd --configure, where you enter in your access key, secret key and an optional encryption password (I didn’t do this). Then, I ran s3cmd put < filename> s3://<bucket name> and it was done in less than a minute. The wonders of a 100mbit connection :D