Jump to content


Photo

xapi not starting

Started by Sven Quartier , 28 April 2009 - 07:58 PM
4 replies to this topic

Sven Quartier Members

Sven Quartier
  • 1 posts

Posted 28 April 2009 - 07:58 PM

Hello,

I have a production server running xenserver essentials 5.0 with update 3.

Everything was working fine for 2 months but then suddenly the xapi stopped and its impossible to restart it.
Failure message:

xe-toolstack-restart
-> Starting xapi: ..failed to start xapi (daemon disappeared)

messages
Apr 28 21:48:34 xs xapi: [error|****|0 thread_zero||xapi] Caught exception at toplevel: 'Db_exn.DBCache_NotFound("missing field", "is_a_template", "")'
Apr 28 21:48:34 xs xapi: [ info|****|0 thread_zero||watchdog] received exit code 2
Apr 28 21:48:34 xs xapi: [ info|****|0 thread_zero||watchdog] Received bad exit, retrying
Apr 28 21:48:34 xs xapi: [ info|****|0 thread_zero||watchdog] (Re)starting xapi...
Apr 28 21:48:34 xs xapi: [ warn|****|0 thread_zero|server_init D:94b96c0fb36b|startup] task [starting up database engine] exception: Db_exn.DBCache_NotFound("missing field", "is_a_template", ""

Maybe the state.db is corrupt. I tried to run it through a xml validator but it seems as if everything was a failure. But this can be due to a misconfiguration cause I am not familiar to the format.

Any ideas are welcome

Thx
mucatlan



James Huynh Members

James Huynh
  • 443 posts

Posted 18 May 2009 - 06:49 PM

Is this XenServer a Master or Slave? If it's a Slave, you can try this command from the Master "xe pool-recover-slave" to see it can recover the slave.



Patrick Li Citrix Employees

Patrick Li
  • 162 posts

Posted 19 May 2009 - 05:36 AM

If your xapi is not starting and running, no xe command will be executed.

Instead, try rename the file state.db located in /var/xensource/xapi and re-start the xapi by running xe-toolstack-restar. However, you will have to re-configure/recover all the settings(network, SR, etc) manually.



Tarak Sinha Citrix Employees

Tarak Sinha
  • 3 posts

Posted 17 February 2017 - 11:46 AM

Hello All,

 

I am also having same issue. once patch the Xen server and rebooted. XAPI and xe-toolstack is not working. tried to restart but still failing. give me some suggestion to resolve this issue.

 

-------------snap------------

[root@cld-cs-pod1-xen14.fra ~]# /etc/init.d/xapi status
xapi is stopped
[root@cld-cs-pod1-xen14.fra ~]# /etc/init.d/xapi start
Starting xapi: OK                                          [  OK  ]
[root@cld-cs-pod1-xen14.fra ~]# /etc/init.d/xapi status
xapi dead but pid file exists
[root@cld-cs-pod1-xen14.fra ~]# xe-toolstack-restart
Exiting: cannot lock /dev/shm/xe_toolstack_restart.lock. Is an instance of /opt/xensource/bin/xe-toolstack-restart running already?
[root@cld-cs-pod1-xen14.fra ~]#
[root@cld-cs-pod1-xen14.fra ~]# rm  /dev/shm/xe_toolstack_restart.lock
rm: remove regular empty file `/dev/shm/xe_toolstack_restart.lock'? y
[root@cld-cs-pod1-xen14.fra ~]# !xe
xe-toolstack-restart
Executing xe-toolstack-restart
Stopping xapi:                                             [  OK  ]
Stopping the v6 licensing daemon: cannot stop v6d: v6d is n[FAILED]ng.
Stopping the memory ballooning daemon: cannot stop squeezed[FAILED]ed is not running.
Stopping perfmon: cannot stop perfmon: perfmon is not runni[FAILED]
Stopping the xenopsd daemon: cannot stop xenopsd: xenopsd i[FAILED]nning.
Stopping XCP RRDD plugin xcp-rrdd-iostat: cannot stop xcp-r[FAILED]at: daemon is not running.
Stopping XCP RRDD plugin xcp-rrdd-squeezed: cannot stop xcp[FAILED]ueezed: daemon is not running.
Stopping XCP RRDD plugin xcp-rrdd-xenpm: cannot stop xcp-rr[FAILED]: daemon is not running.
Stopping XCP RRDD plugin xcp-rrdd-gpumon: cannot stop xcp-r[FAILED]on: daemon is not running.
Stopping the XCP RRDD daemon: cannot stop xcp-rrdd: daemon [FAILED]unning.
Stopping the XCP networking daemon:                        [  OK  ]
Stopping the fork/exec daemon:                             [  OK  ]
Starting the fork/exec daemon:                             [  OK  ]
Starting the XCP networking daemon: ...............        [  OK  ]
Starting the XCP RRDD daemon: .............................[FAILED]to start xcp-rrdd.
[root@cld-cs-pod1-xen14.fra ~]# /etc/init.d/xapi status
xapi is stopped
[root@cld-cs-pod1-xen14.fra ~]#
 

-------------snip--------------------



Alan Lantz Members

Alan Lantz
  • 6,562 posts

Posted 17 February 2017 - 03:15 PM

http://xenserver.org/blog/entry/xenserver-root-disk-maintenance.html

 

XAPI can't start if you are low on drive space, I would suspect that since it was after an update.

 

 

--Alan--