# Cannot parse image SIZE

**URL:** <https://forum.opennebula.io/t/cannot-parse-image-size/5773>\
**Category:** Product Support\
**Created:** [March 6, 2018, 8:30pm UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773 "2018-03-06T20:30:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranranjane](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/kiranranjane/32/6207_2.png) [@kiranranjane](https://forum.opennebula.io/u/kiranranjane)\
**Post date:** [March 6, 2018, 8:30pm UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/1 "2018-03-06T20:30:26Z")

</div>

Using ONE 5.4.6 fresh install with separate ONE server and Sunstone Server, I am able to download apps from marketplace and able to create and run vms.

The only problem is while uploading the image from Sunstone \> create image \> image upload option from local machine I am getting below error, Ngnx is also installed on Sunstone Server

Tue Mar 6 15:08:30 2018 [Z0][InM][D]: Host NY-Compute-3C-A-01 (1) successfully monitored.  
Tue Mar 6 15:08:35 2018 [Z0][InM][D]: Host NY-Compute-3C-A-03 (3) successfully monitored.  
Tue Mar 6 15:08:37 2018 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 15 -

Tue Mar 6 15:08:37 2018 [Z0][ReM][D]: Req:976 UID:0 one.image.allocate invoked , "NAME=“Master-Xubuntu…”, 104  
Tue Mar 6 15:08:37 2018 [Z0][ImM][I]: Command execution fail: /var/lib/one/remotes/datastore/fs/stat PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PFBBVEg+L3Zhci90bXAvNTM0OT  
A0ODMyMC1UTVBMLVRQLVh1YnVudHUtMTYwNC1ERXFjb3cyPC9QQVRIPjwvSU1BR0U+PERBVEFTVE9SRT48SUQ+MTA0PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT  
5vbmVhZG1pbjwvR05BTUU+PE5BTUU+TlktRFMtSU1BR0UtTFJTPC9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CFbQ0RBVEFbL11dPjwvUkVTVFJJQ1RFRF9ESVJTPjxTQUZFX0RJUlM+PCFbQ0  
RBVEFbL3Zhci90bXBdXT48L1NBRkVfRElSUz48VE1fTUFEPjwhW0NEQVRBW3Fjb3cyXV0+PC9UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSV  
ZFUl9BQ1RJT05fREFUQT4= 16  
Tue Mar 6 15:08:37 2018 [Z0][ImM][E]: stat: Cannot determine size for /var/tmp/5349048320-TMPL-TP-Xubuntu-1604-DEqcow2  
Tue Mar 6 15:08:37 2018 [Z0][ImM][I]: ExitCode: 255  
Tue Mar 6 15:08:37 2018 [Z0][ReM][E]: Req:976 UID:0 one.image.allocate result FAILURE [one.image.allocate] Cannot parse image SIZE:  
Tue Mar 6 15:08:41 2018 [Z0][MKP][D]: Monitoring marketplace OpenNebula Public (0)

I am Using qcow2 DS and it is properly monitored

---

<div class="post-metadata">

**Author:** ![kiranranjane](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/kiranranjane/32/6207_2.png) [@kiranranjane](https://forum.opennebula.io/u/kiranranjane)\
**Post date:** [March 15, 2018, 12:12am UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/2 "2018-03-15T00:12:30Z")

</div>

I still cannot figure out where the issue is, Any help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![derek-783](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/derek-783/32/5179_2.png) [@derek-783](https://forum.opennebula.io/u/derek-783)\
**Post date:** [April 5, 2018, 2:36pm UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/3 "2018-04-05T14:36:35Z")

</div>

I am also interested in hearing from someone about this.  
I am having the same issue with a similar setup.

---

<div class="post-metadata">

**Author:** ![v3ng](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/v3ng/32/5634_2.png) [@v3ng](https://forum.opennebula.io/u/v3ng)\
**Post date:** [April 5, 2018, 5:13pm UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/4 "2018-04-05T17:13:08Z")

</div>

Same issue

---

<div class="post-metadata">

**Author:** ![FoxSibirsky](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/foxsibirsky/32/4949_2.png) [@FoxSibirsky](https://forum.opennebula.io/u/FoxSibirsky)\
**Post date:** [April 10, 2018, 3:32am UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/5 "2018-04-10T03:32:09Z")

</div>

Do you have enough free space in /var/tmp ?

---

<div class="post-metadata">

**Author:** ![derek-783](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/derek-783/32/5179_2.png) [@derek-783](https://forum.opennebula.io/u/derek-783)\
**Post date:** [April 24, 2018, 3:59pm UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/6 "2018-04-24T15:59:59Z")

</div>

Yes, for a 700MiB image, I have 65GiB available on ‘/var/tmp’.

To be sure and test things, within ‘/var/tmp’ I mounted a 100GiB disk as ‘/var/tmp/one\_tmp’, changed to have that as the staging directory as well as the ‘temp directory’ in Sunstone’s configuration.

No Progress. Same error.

---

<div class="post-metadata">

**Author:** ![FoxSibirsky](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/foxsibirsky/32/4949_2.png) [@FoxSibirsky](https://forum.opennebula.io/u/FoxSibirsky)\
**Post date:** [April 25, 2018, 4:51am UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/7 "2018-04-25T04:51:06Z")

</div>

Are there anything errors in nginx.log file ?  
“client\_max\_body\_size” is enough?  
Check how file size increase in /var/tmp during upload

---

<div class="post-metadata">

**Author:** ![derek-783](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/derek-783/32/5179_2.png) [@derek-783](https://forum.opennebula.io/u/derek-783)\
**Post date:** [May 8, 2018, 7:12am UTC](https://forum.opennebula.io/t/cannot-parse-image-size/5773/8 "2018-05-08T07:12:19Z")

</div>

I am actually running it with Apache and Passenger. Would this be causing any known issues? I would be keen to stay with Apache as I know it better. Really appreciate your help!
