Closed leewin12 closed 3 years ago
Quite old ticket but did you ever find a solution to this? We're experiencing the exact same issue on xenserver 7.2 at the moment.
My guess would be that the message-switch
service is not running for some reason.
Try systemctl status message-switch
to check this, and if not running, do systemctl start message-switch
followed by xe-toolstack-restart
.
@robhoes Yup, you're right. I ended up stracing the xapi process and it kept spamming the following:
select(0, 0x7ffefeeb29b0, 0x7ffefeeb2a30, 0x7ffefeeb2ab0, {5, 0}) = 0 (Timeout)
rt_sigprocmask(SIG_BLOCK, [VTALRM], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
socket(PF_LOCAL, SOCK_STREAM, 0) = 13
connect(13, {sa_family=AF_LOCAL, sun_path="/var/run/message-switch/sock"}, 30) = -1 ECONNREFUSED (Connection refused)
close(13)
Restarting the message-switch and toolstack resolved the issue.
Every VM in this server - singie pool, single master - works fine, but cannot access management via http(port 80) and xencenter.
I tried to restart xapi service, xe-toolstack-restart, but xapi is never listened by xapi service.
According to xensource.log, the starting procedure got stucked after
starting up database engine Performing initial DB GC
https://github.com/xapi-project/xen-api/blob/9324f70524ce69824fcab26bda8bb20ef5084e7c/ocaml/xapi/xapi.ml#L102xensource.log
And the task-list shows it is hang on somewhere in dbsync.update_env https://github.com/xapi-project/xen-api/blob/fe3dacf19fa179dbe4aae57c1b4e83e8dfab52bc/ocaml/xapi/dbsync.ml#L49
here is result of netstat
Please let me know if you need further infomation.
I always appreciate to you guys contribution on this awesome project.