20 Jun 2008, 14:03
Tags: , , ,
2 comments

duplicity in MacPorts, backup to S3

Duplicity from MacPorts is currently broken. The problem is in the portfile, which wants to use Python 2.5. However, there is no OpenSSL package for Python 2.5 in MacPorts, which gives you this error if you try to backup to S3 through SSL:

File "/opt/local/lib/python2.5/httplib.py", line 1135, in connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

The solution is to edit the Portfile (which lives in /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/duplicity/Portfile on my machine) and change “python25″ in “python24″ and halfway through the file change the py25-* packages in py-* packages. Then install the port. That fixes it.

Don’t forget to *not* upgrade the port without changing the Portfile…

Tags: , , ,

26 May 2008, 21:41
Tags: , , ,
Comments Off

MySQL on S3… not yet

Ok, I’ve been playing with EC2 and S3. Using quite a long and complicated script to create an AMI (which is Amazon’s term for a disk image). The script is coming along nicely, using debootstrap to create a Debian etch image.

Yesterday and today (well, only in the evening today), I’ve been trying to get MySQL working on an s3fs drive, but I’m afraid that’s not going to work. Well, part of it might be because I’m trying to set it up from home and not from an EC2 instance, but still. MySQL just refuses to start with a weird message:

Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.

After which it hangs, altough it seems like MySQL did start. Maybe it’s something with the initscript. I realised in the end that I don’t really need MySQL running in such a setup. Making dumps every so often should be enough for what we have in mind. So I’m going to script an automatic recovery of the database, based on a dump every 5 minutes. That should work without losing any speed.

Tags: , , ,

 
 
  • Search


  • Twitter

    • En dat terwijl ik de laatste maanden juist bovengemiddeld vaak thuisgewerkt hebt, met name als het koud was... 6 hrs ago
    • Wat een verschil, van 125 p/m vorig jaar naar 68 p/m nu. 6 hrs ago
    • Hm, ondanks de koude maanden is mijn voorschot aan Essent nog steeds te hoog. Vrouwtje van klantenservice vond me "zeer spaarzaam". 6 hrs ago
    • @ipot @RuudHeijnen @iivvoo Wat *doen* jullie allemaal op je werk.... in reply to ipot 1 day ago
    • mijn huis staat op streetview... 1 day ago
    • More updates...

    Powered by Twitter Tools

  • Calender

    March 2010
    M T W T F S S
    « Feb    
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Archives