KDE Startup Hangs at "Initializing System Services" step

I recently had a problem where KDE would hang on startup - the splash screen would reach the “Initializing system services” step, then nothing further would happen.

Some Googling suggested that this problem is normally due to the entry for localhost not being correct in /etc/hosts so localhost doesn't resolve (for some reason, KDE seems to want to connect to localhost during startup).

However, I checked, and I had the correct entry:

127.0.0.1	localhost.localdomain localhost

... yet still KDE wouldn't start. Eventually, I realized the cause... I'd put a fairly restrictive firewall in place with iptables, and this was blocking communications to/from localhost.

A simple addition to my firewall script solved the issue:

iptables -A INPUT -p tcp -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p udp -s 127.0.0.1 -j ACCEPT

I don't think the UDP rule is strictly necessary. Also, in hindsight it'd probably be better to match on the loopback interface (lo) instead of the IP address:

iptables -A INPUT -i lo -j ACCEPT
 
linux/kdehanginitializingsystemservices.txt · Last modified: 2010/02/26 10:45 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki