Hi, I try to get xend to start, when I start "xend start" I get the following errors in the log and debug files. What I don''t understand is the last line in debug log which says: "Couldn''t listen on localhost:8000: (98, ''Address already in use'')", because I have disabled http server in xend-config.sxp, changed the port to 3000 and there is nothing else running on port 8000, so xen should not even touch port 8000. I have other machines where xen runs without problems. Xen version is 3.02 Any ideas what could be wrong here? Gerald Xen.log: [2006-09-13 07:32:32 xend] INFO (SrvDaemon:278) Xend Daemon started [2006-09-13 07:32:32 xend] ERROR (SrvDaemon:292) Exception starting xend ((22, ''Invalid argument'')) Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 281, in run xinfo = xc.xeninfo() error: (22, ''Invalid argument'') [2006-09-13 07:32:33 xend] INFO (SrvDaemon:178) Xend exited with status 1. Xen-debug.log: Exception starting xend: (22, ''Invalid argument'') =no RTNETLINK answers: Network is down Traceback (most recent call last): File "/usr/sbin/xend", line 121, in ? sys.exit(main()) File "/usr/sbin/xend", line 107, in main return daemon.start() File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 525, in start self.run() File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 615, in run SrvServer.create(bridge=1) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvServer.py", line 50, in create reactor.listenTCP(port, site, interface=interface) File "/usr/lib/python2.4/site-packages/twisted/internet/default.py", line 283, in listenTCP p.startListening() File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 594, in startListening raise CannotListenError, (self.interface, self.port, le) twisted.internet.error.CannotListenError: Couldn''t listen on localhost:8000: (98, ''Address already in use''). --------------------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: richter@ecos.de Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 --------------------------------------------------------------------------- ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info --------------------------------------------------------------------------- ** Virus checked by BB-5000 Mailfilter ** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gerald Richter
2006-Sep-14 07:32 UTC
RE: [Xen-users] Xend does not start, invalid argument
> > Hi, > > > > I try to get xend to start, when I start "xend start" I get the > > following errors in the log and debug files. > > > > What I don''t understand is the last line in debug log which says: > > "Couldn''t listen on localhost:8000: (98, ''Address already > in use'')", > > because I have disabled http server in xend-config.sxp, changed the > > port to 3000 and there is nothing else running on port 8000, so xen > > should not even touch port 8000. > > > you can change this port to other value in /etc/xen/xend-config.sxp >Yes, I have done so, but it is still used. If I do other changes in this file, they take effect, so the config file is really used. The most curious thing is that port 8000 is not used on this system. Gerald ** Virus checked by BB-5000 Mailfilter ** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Hanwoody
2006-Sep-14 13:42 UTC
Re: [Xen-users] Xend does not start, invalid argument
在 Wednesday 13 September 2006 06:00,Gerald Richter 写道:> Hi, > > I try to get xend to start, when I start "xend start" I get the following > errors in the log and debug files. > > What I don''t understand is the last line in debug log which says: > "Couldn''t listen on localhost:8000: (98, ''Address already in use'')", > because I have disabled http server in xend-config.sxp, changed the port to > 3000 and there is nothing else running on port 8000, so xen should not even > touch port 8000. >you can change this port to other value in /etc/xen/xend-config.sxp -- _______________________________________________________________ William Hanwoody hanwoody@gmail.com A senior Linux engineer, like system integrate My blog - hanwoody.livejournal.com _______________________________________________________________ 《送李中丞归汉阳别业》 作者:刘长卿 流落征南将,曾驱十万师。 罢官无旧业,老去恋明时。 独立三边静,轻生一剑知, 茫茫江汉上,日暮欲何之。 _______________________________________________________________ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henning Sprang
2006-Sep-14 16:12 UTC
Re: [Xen-users] Xend does not start, invalid argument
On 9/14/06, Gerald Richter <richter@ecos.de> wrote:> [...] > Yes, I have done so, but it is still used. If I do other changes in this > file, they take effect, so the config file is really used.check which program is using that port and if it is open. the latter with nmap, teh formar with netstat.> The most curious thing is that port 8000 is not used on this system.Did you restart the whole machine or only xend after that change? In my experience, xend is not always fully and cleanly "restartable" (for example, at least the network-script only runs on the very first xend start, not after a stop and further start), so it might let this port open even after being stopped and started again. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gerald Richter
2006-Sep-15 04:25 UTC
RE: [Xen-users] Xend does not start, invalid argument
> > On 9/14/06, Gerald Richter <richter@ecos.de> wrote: > > [...] > > Yes, I have done so, but it is still used. If I do other changes in > > this file, they take effect, so the config file is really used. > > check which program is using that port and if it is open. the > latter with nmap, teh formar with netstat. >As I said no programm uses this port neither tcp nor udp> > The most curious thing is that port 8000 is not used on this system. > > Did you restart the whole machine or only xend after that change? >Yes, several times Thanks Gerald ** Virus checked by BB-5000 Mailfilter ** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gerald Richter
2006-Sep-15 05:51 UTC
RE: [Xen-users] Xend does not start, invalid argument
> > Did you enable firewall in your system? >Yes, some iptable rules for outside traffic, but there should be no restrictions on localhost. Gerald ** Virus checked by BB-5000 Mailfilter ** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Hanwoody
2006-Sep-15 13:09 UTC
Re: [Xen-users] Xend does not start, invalid argument
在 Friday 15 September 2006 04:25,Gerald Richter 写道:> > On 9/14/06, Gerald Richter <richter@ecos.de> wrote: > > > [...] > > > Yes, I have done so, but it is still used. If I do other changes in > > > this file, they take effect, so the config file is really used. > > > > check which program is using that port and if it is open. the > > latter with nmap, teh formar with netstat. > > As I said no programm uses this port neither tcp nor udp > > > > The most curious thing is that port 8000 is not used on this system. > > > > Did you restart the whole machine or only xend after that change? > > Yes, several times > > Thanks > > Gerald > > > > > ** Virus checked by BB-5000 Mailfilter **Did you enable firewall in your system? -- _______________________________________________________________ William Hanwoody hanwoody@gmail.com A senior Linux engineer, like system integrate My blog - hanwoody.livejournal.com _______________________________________________________________ Q: Why is it that Mexico isn''t sending anyone to the ''84 summer games? A: Anyone in Mexico who can run, swim or jump is already in LA. _______________________________________________________________ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gerald Richter
2006-Sep-18 06:40 UTC
RE: [Xen-users] Xend does not start, invalid argument
Hi, The problem was solved by removing and reinstalling xen and tools. Seems to be some kind of version conflict. Thanks for any help Gerald> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Gerald Richter > Sent: Friday, September 15, 2006 7:52 AM > To: ''William Hanwoody'' > Cc: ''Henning Sprang''; xen-users@lists.xensource.com > Subject: RE: [Xen-users] Xend does not start, invalid argument > > > > > Did you enable firewall in your system? > > > > Yes, some iptable rules for outside traffic, but there should > be no restrictions on localhost. > > Gerald > > > > ** Virus checked by BB-5000 Mailfilter ** > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > ** Virus checked by BB-5000 Mailfilter ** > !DSPAM:450a3fad239001804284693! >** Virus checked by BB-5000 Mailfilter ** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users