Archive for the ‘Debian’ Category

Java Plugin problem and workaround in Debian Squeeze

Thursday, December 24th, 2009

I use the Squeeze aka testing distribution of Debian Linux on my dual boot computer at home. After updating the packages yesterday I discovered that java applications including Tomcat and Java Webstart were unable to connect to the network.  I had no idea what was going on as I had not upgraded Java or Tomcat.  After a lot of searching through the logs and then the internet I found Debian Bug #560142 and Sun bug #6342561 describing the problem. Apparently, it is related to a change in IPv6 networking in the netbase package that causes Java applications to ignore IPv4 network connections, which is rather annoying.

Fortunately, there is a simple workaround for running servers:

echo 0 > /proc/sys/net/ipv6/bindv6only

You will also have to change the default value in /etc/sysctl.d/bindv6only.conf from 1 to 0 so that the value is used after a reboot.

This means that Java is able to connect to IPv4 servers.  Hopefully, this will be fixed soon but I'm glad to have found out what the problem was and to have a workaround.

Merry Christmas.

Reverting to previous Postfix version due to bug #417530

Sunday, April 15th, 2007

I recently upgraded the Postfix mail server from 2.3.8 to 2.4.0 on a Debian linux server that has a 2.4 kernel due to other applications that it has. I always check the bug reports before upgrading packages but I obviously missed Debian bug #417530, whose summary is Fatal error: “epoll_create: Function not implemented” using kernel 2.4 and postfix 2.4. Normally Debian’s APT package management system contains all the dependencies but it did not contain a dependency on kernel 2.6 for the new epoll() function, which can improve network socket performance.

After upgrading Postfix I tried sending an email but Thunderbird gave an error message so I checked the syslog on the server and discovered the that the /var/log/syslog contained the following error message: postfix/master[24312]: fatal: epoll_create: Function not implemented I searched for Postfix bugs using the Debian bugs by package search plugin for Firefox.

(more…)