[one-users] Sunstone image upload not working - images not in tmpdir
Daniel Molina
dmolina at opennebula.org
Fri Nov 29 02:00:42 PST 2013
On 29 November 2013 10:54, Stefan Kooman <stefan at bit.nl> wrote:
> Quoting Daniel Molina (dmolina at opennebula.org):
>
> > Could you try changing this line:
> > elsif (rackinput.class == StringIO || rackinput.class ==
> > PhusionPassenger::Utils::RewindableInput)
> >
> > to
> > elsif rackinput.respond_to?('read')
>
> This doesn't produce any passenger errors. Image gets uploaded but ...
> it fails with the following message:
>
> Error
> [ImageAllocate] Cannot determine Image SIZE
>
> It turns out it takes a little while before the image gets flushed to
> disk (nfs mount) and at the moment the file size gets determined it's
> still "0" bytes ... a few seconds later the file gets filled to it's
> actual size ... but that's too late.
>
> watch -n 1 ls -lrth /mnt/sunstone_upload.
>
> I tried again with "nolock" nfs mount option removed and that seems to
> help. It works nows \o/.
>
Great!
>
> One last thing though. Some time after a succesful copy to the datastore
> the
> image got removed (cleanup I guess). That does'nt happen anymore. It's
> not a big problem (I can make a cronjob for that) but I wonder if it's
> related to this change.
>
This is handled by passenger, it "should" be removed by the GC sooner or
later
>
> Thanks,
>
> Stefan
>
> P.s. Is this change also going to work on Passenger 3.0? I can test if
> you want. Not that I'm planning to but it would make the code version
> independent.
>
Yes, the code I sent you is meant to be server/version agnostic. It would
be wonderful if you could test it with Passenger 3.0
Thanks
>
> --
> | BIT BV http://www.bit.nl/ Kamer van Koophandel 09090351
> | GPG: 0xD14839C6 +31 318 648 688 / info at bit.nl
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKYZFAACgkQTyGgYdFIOcah+wD/T+Jf1ul6vq0ciHBANJ5QwW+3
> bRslnAZOjnMj46LGkmMBAJqLm9EUHV/e78Q8DotF79F6vR5WbY/D8LubF+qLA2Z6
> =xAWh
> -----END PGP SIGNATURE-----
>
>
--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131129/45b80349/attachment-0002.htm>
More information about the Users
mailing list