Quick Tips for Future Reference

on

It's been a busy night fixing various bugs on the thisshitistemp.com server. Here's a collection of useful information for future reference.

smtpd_tls_security_level

Don't force Postfix stmpd encryption if you want other mail servers to be able to talk to you. Use

smtpd_tls_security_level = may # allow incoming encryption

instead of

smtpd_tls_security_level = encrypt # force incoming encryption

MediaGoblin standalone celeryd

celeryd was failing with

Traceback (most recent call last):
 File "/path/to/mediagoblin/lib/python2.7/site-packages/celery-2.5.3-py2.7.egg/celery/execute/trace.py", line 184, in trace_task
   R = retval = fun(*args, *kwargs)
TypeError: run() takes exactly 3 arguments (2 given)

To get around this (temporary solution), I made the following change to /path/to/mediagoblin/lib/python2.7/site-packages/celery-2.5.3-py2.7.egg/celery/execute/trace.py

@@ -178,6 +178,8 @@

                 # -*- TRACE -*-
                 try:
+                    if len(args) < 2:
+                        args = (args, 0)
                     R = retval = fun(*args, *kwargs)
                     state, einfo = SUCCESS, None
                 except RetryTaskError, exc:

MediaGoblin + Arch Linux + numpy

Archlinux's extra\python2-numpy is version 1.7.0. This version has a bug with np.concatenate and causes numpy to fail with

IndexError: axis 1 out of bounds [0, 1)

Solution? Downgrade to python2-numpy-1.6.x.

MediaGoblin + Arch Linux + audiolab

Archlinux AUR contains a non-functional build for scikits.audiolab. Instead, install audiolab locally to MediaGoblin via

$ /path/to/mediagoblin/bin/pip install scikits.audiolab