On 29 November 2013 10:54, Stefan Kooman <[email protected]> wrote: > Quoting Daniel Molina ([email protected]): > > > 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 / [email protected] > > -----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 | [email protected] | @OpenNebula
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
