Dear Plone, welcome to year 2014

TL;DR: Production-level Plone on free-tier Heroku: https://github.com/niteoweb/heroku-buildpack-plone First, a bit of history: it was year 2006 and I was realizing that I was not made to be an academic. I made my first strides into entrepreneurship and being in IT, the first logical step was to create a few websites and try to get paid for my work. I did…

Plone 4 dev on Lion

Introduction Recently I upgraded to OS X Lion and here are my notes on how I got my working environment working. XCode First things first, you need to setup build tools (gcc, make and the like). On OS X these come as a part of XCode. Even if you had XCode installed on Snow Leaopard before upgrading to Lion, do…

Assertion `t_size >= b_size’ failed

Recently, when migrating a Plone 4 site from one VPS server instance to another, we had the following problem: We were not able to start Zope with Supervisord because it crashed every time we tried to start it. Running Zope in foreground (bin/instance fg) produced the following error: Python: Objects/typeobject.c:1736: extra_ivars: Assertion `t_size >= b_size' failed. Aborted Luckily, after some…

Deploying Cyn.in 3.1.3 on CentOS 5.4

Last week we were upgrading Cyn.in to the latest version. After a few days of testing on a local server it was time to deploy it to the server. Since Cyn.in needs quite some RAM to operate normally, we chose Virpus VPS instance with 2 gigs of RAM, running CentOS 5.4. Running buildout on the server produced this error: ...…

Order of ‘parts’ when compiling lxml

CentOS's repos don't have a working version of libxslt (you need 1.1.20, repos have 1.1.17) so we need to statically compile it for collective.xdv to work. But, there is a catch! You need to be careful about how you order your parts in your buildout.cfg. For examle, the following buildout.cfg works perfectly fine, it downloads libxml and libxslt and compiles…

Compiling lxml on 64bit CentOS

A few days ago I encountered a problem while deploying Plone 4 with collective.xdv to a CentOS cloud instance. Since CentOS' repos were a bit out of date I needed to statically compile lxml and it's dependencies with z3c.recipe.staticlxml. Here's what you need to add to your buildout.cfg to do so: parts += lxml eggs += lxml # =================================================================== #…

MladiPodjetnik.si performance tweaks

MladiPodjetnik.si is a portal we've been actively developing since 2006 and has since seen 3 revisions. The latest one, running on Plone 3.1, was running out of juice due to enormous increase in traffic in the last year. It was time to do some performance optimization. 1. We started out by upgrading Plone to the latest 3.x realease - 3.3.5.…