resolved – Error: Unable to connect to xend: Connection reset by peer. Is xend running?
January 7th, 2015
Today I met some issue when trying to run xm commands on a XEN server:
[root@xenhost1 ~]# xm list
Error: Unable to connect to xend: Connection reset by peer. Is xend running?
I had a check, and found xend was actually running:
[root@xenhost1 ~]# /etc/init.d/xend status
xend daemon running (pid 8329)
After some debugging, I found it's caused by libvirtd & xend corrupted. And then I did a bounce of them:
[root@xenhost1 ~]# /etc/init.d/libvirtd restart
Stopping libvirtd daemon: [ OK ]
Starting libvirtd daemon: [ OK ]
[root@xenhost1 ~]# /etc/init.d/xend restart #this may not be neededÂ
restarting xend...
xend daemon running (pid 19684)
Later, the xm commands went good.
PS:
- If you met issue like "resolved - xend error: (98, 'Address already in use')" when restart xend or "can't connect: (111, 'Connection refused')" when doing xm live migrate, then you can refer this article.
- For more information about libvirt, you can check here.
Good Luck!
Categories: Clouding, IT Architecture, Oracle Cloud