# Oneshowback calculate timeout

**URL:** <https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712>\
**Category:** Installation & Configuration\
**Created:** [August 5, 2020, 7:08am UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712 "2020-08-05T07:08:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yenya](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yenya/32/4624_2.png) [@Yenya](https://forum.opennebula.io/u/Yenya)\
**Post date:** [August 5, 2020, 7:08am UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/1 "2020-08-05T07:08:59Z")

</div>

Hello,

after upgrading to 5.12, I get errors from systemd - failed unit `opennebula-showback.service`. Digging into this further, the `oneshowback calculate` command dies with `Net::ReadTimeout` message after one minute:

```auto
$ date; oneshowback calculate; date
Wed Aug 5 08:48:35 CEST 2020
Net::ReadTimeout
Wed Aug 5 08:49:36 CEST 2020
$

```

According to `oned.log`, the calculation in fact takes more than one minute - the relevant lines are:

```auto
Wed Aug 5 08:48:36 2020 [Z0][ReM][D]: Req:6288 UID:0 IP:127.0.0.1 one.vmpool.calculateshowback invoked , -1, -1, -1, -1
Wed Aug 5 08:50:30 2020 [Z0][ReM][D]: Req:6288 UID:0 one.vmpool.calculateshowback result SUCCESS, ""

```

Is there anything suboptimal in my database? I use mysql backend. Or can the default request timeout of `oneshowback calculate` be increased?

Thanks,

-Yenya

---

<div class="post-metadata">

**Author:** ![rdiaz](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rdiaz/32/6416_2.png) [@rdiaz](https://forum.opennebula.io/u/rdiaz)\
**Post date:** [August 7, 2020, 10:56am UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/2 "2020-08-07T10:56:27Z")

</div>

Hi Yenya,

Did you followed all the steps described [here](https://docs.opennebula.io/5.12/intro_release_notes/upgrades/start_here.html) when you upgraded?

Cheers.

---

<div class="post-metadata">

**Author:** ![Yenya](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yenya/32/4624_2.png) [@Yenya](https://forum.opennebula.io/u/Yenya)\
**Post date:** [August 7, 2020, 11:32am UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/3 "2020-08-07T11:32:12Z")

</div>

@rdiaz: I think I did. Did you mean any particular step?

---

<div class="post-metadata">

**Author:** ![rdiaz](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/rdiaz/32/6416_2.png) [@rdiaz](https://forum.opennebula.io/u/rdiaz)\
**Post date:** [August 7, 2020, 12:04pm UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/4 "2020-08-07T12:04:05Z")

</div>

All of them, but I was specifically thinking of steps [7](https://docs.opennebula.io/5.12/intro_release_notes/upgrades/upgrading_single.html#step-7-upgrade-the-database-version) and [8](https://docs.opennebula.io/5.12/intro_release_notes/upgrades/upgrading_single.html#step-8-check-db-consistency).

---

<div class="post-metadata">

**Author:** ![Yenya](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yenya/32/4624_2.png) [@Yenya](https://forum.opennebula.io/u/Yenya)\
**Post date:** [August 7, 2020, 12:31pm UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/5 "2020-08-07T12:31:35Z")

</div>

Yes, I did onedb upgrade (which failed because of the ancient VMs in database), then onedb purge-done, then onedb upgrade again (which succeeded this time), and then onedb fsck. This reports many unrepairable errors for some releases on, AFAIK all are related to the different way newer ONe releases compute the IPv6 address from the MAC adress, and I have many long-time running VMs there. But yes, I followed steps 7 and 8.

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [August 17, 2020, 7:21am UTC](https://forum.opennebula.io/t/oneshowback-calculate-timeout/8712/6 "2020-08-17T07:21:32Z")

</div>

Hello @Yenya

There is a [ticket](https://github.com/OpenNebula/one/issues/5020) opened in the GitHub, you can follow the state of this issue there.

Best,  
Álex.
