Cannot parse image SIZE

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+TlktRFMtSU1BR0UtTFJTPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT
4xPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPj
xEU19NQUQ+PCFbQ0RBVEFbZnNdXT48L0RTX01BRD48VE1fTUFEPjwhW0NEQVRBW3Fj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 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

1 Like

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

Thanks

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

Same issue

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

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.

Are there anything errors in nginx.log file ?
“client_max_body_size” is enough?
Check how file size increase in /var/tmp during upload

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!