" Closing Link: localhost (Invalid servername.)" <-- says it all
and in any case, services should connect to the ircd, not vice versa, so the /connect s not really needed. if you start services they ll automatically connect to the server in the configuration
try using 127.0.0.1 instead of "localhost"