Archive for April, 2008

Deluge: ‘boost::bad_lexical_cast’ abort

%deluge
no existing Deluge session
Starting new Deluge session…
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
terminate called after throwing an instance of ‘boost::bad_lexical_cast’
what(): bad lexical cast: source type value could not be interpreted as target
Abort
%

Deluge refused to restart after my computer was not properly shut down. Simple workaround is to remove deluge config directory (don’t be too worried about your previous torrent download) and fire up deluge.

%rm -r ~/.config/deluge && deluge

Add your previous torrent seeds and select the previous directory where you saved them. Deluge will check your previous downloads and resume them. :)

Wednesday, April 30th, 2008

FreeBSD : mod_security2 broken?

I walked through routine maintenance of one of FreeBSD boxes, which was running as reverse proxy (Apache httpd + mod_security2 + mod_proxy) for OWA in my office. Everything went smoothly. But when it came to restarting of services, apache started to complain of unresolved symbol!

Cannot load /usr/local/libexec/apache22/mod_security2.so into server: /usr/local/libexec/apache22/mod_security2.so: undefined symbol: xmlFree

I reinstalled apache22, libxml2 and mod_security2 from ports. Nothing unusual was sighted. Asking our friend, google didn’t provide much of information. The latest that I managed to dig out was in 2005 and 2006. Some dudes had the same issue as me.

Anyhow I’m pretty convinced it is a bug from mod_security2-2.1.7_1 in FreeBSD’s ports. Here a quick workaround, just add the lines below to your Apache httpd.conf and the error message will go away!

LoadFile /usr/local/lib/libxml2.so
LoadModule security2_module libexec/apache22/mod_security2.so

Tuesday, April 29th, 2008

FreeBSD : alfresco + jdk1.5.0 + mysql = no joy


I was playing with Alfresco on FreeBSD 6.3 with no success. With mysql 5 and jdk1.5 installed from the FreeBSD ports, I downloaded alfresco community version 2.1.0 which bundled with tomcat and mysql-java-connector 5.0.3. Alfresco ran fine with default setup with minimum configuration for data, index and logging paths.

If I changed db to MySQL and restarted the alfresco tomcat, it failed to start alfresco web client. It complains of missing modules. Too bad I don’t speak much of Java. Seymores, the Java guy, advised me to give it a try on Linux and I managed to get it running within 20 minutes. Everything works like charm.

Anyone has had experience with Alfresco on FreeBSD? Please share some light.

Thursday, April 24th, 2008

April Fool : UN against Open Source

This is funny. :D UN against Open Source

Tuesday, April 1st, 2008