# Error getting virtual machine \[#\] info

**URL:** <https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010>\
**Category:** Product Support\
**Created:** [September 27, 2017, 2:21pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010 "2017-09-27T14:21:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rabin/32/5072_2.png) [@rabin](https://forum.opennebula.io/u/rabin)\
**Post date:** [September 27, 2017, 2:21pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010/1 "2017-09-27T14:21:12Z")

</div>

After upgrading OpenNebula from 5.2 to 5.4.1 I get error when trying to access the vm info

 ![screenshot5](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a8c479080a50dc1cd7636e154fefd00f2833067a.png)

I’m running oned with log level 3, and the only line i see is ,

> Wed Sep 27 17:11:47 2017 [Z0][ReM][E]: Req:7648 UID:0 one.vm.info result FAILURE [one.vm.info] Error getting virtual machine [11].

Any idea how to resolve/debug this problem ?

---

<div class="post-metadata">

**Author:** ![sulaweyo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/sulaweyo/32/4708_2.png) [@sulaweyo](https://forum.opennebula.io/u/sulaweyo)\
**Post date:** [September 28, 2017, 5:08am UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010/2 "2017-09-28T05:08:10Z")

</div>

I only know this screen from accessing a vm that no longer exists and was cleaned. Did you maybe run ‘onedb purge-done’ or anything like that?

---

<div class="post-metadata">

**Author:** ![rabin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rabin/32/5072_2.png) [@rabin](https://forum.opennebula.io/u/rabin)\
**Post date:** [September 28, 2017, 6:58am UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010/3 "2017-09-28T06:58:20Z")

</div>

The VM exists, and I have access to it’s storage.  
when I upgrade, based on the documentation for upgrading from 5.2 to 5.4 I run the `onedb upgrade` command, no other onedb command was issued.

also, after this problem showed, I tried to run the `onedb fsck` to see if something was wrong with the DB, and there was just a small issue with the history table, which I fixed manually,

edit,  
just to make sure I connected to the host with virt-manager and created a new VM and attached the DISK to it, and the VM started normally.  
so I guess the problem is with the METADATA which OpenNebula is managing.

---

<div class="post-metadata">

**Author:** ![xperalta](https://avatars.discourse-cdn.com/v4/letter/x/f0a364/32.png) [@xperalta](https://forum.opennebula.io/u/xperalta)\
**Post date:** [January 4, 2018, 5:11pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010/4 "2018-01-04T17:11:33Z")

</div>

Hi @rabin,

after updating from 5.2 to 5.4 I have the same problem but just for a few VMs. Did you find why happened that? I think is something related with the attribute body of the table vm\_pool of DB but I can’t find the point to solve it.

Thanks,

Xavi.

---

<div class="post-metadata">

**Author:** ![rabin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rabin/32/5072_2.png) [@rabin](https://forum.opennebula.io/u/rabin)\
**Post date:** [January 17, 2018, 2:40pm UTC](https://forum.opennebula.io/t/error-getting-virtual-machine-info/5010/5 "2018-01-17T14:40:21Z")

</div>

I was able to fix this, but this is not something I recommend doing on a machine without a backup.

I basicly opened the SQlite DB file and start digging for all references to the bad machine (id=11), and start removing them or editing them as needed.

eventually I run `onedb fsck -s one.db` to fix the DB and it found some problems, and solved them for me.

this is how I recovered from this bad upgrade
