<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 November 2013 10:13, Stefan Kooman <span dir="ltr"><<a href="mailto:stefan@bit.nl" target="_blank">stefan@bit.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Quoting Daniel Molina (<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>):<br>
> On 29 November 2013 09:57, Stefan Kooman <<a href="mailto:stefan@bit.nl">stefan@bit.nl</a>> wrote:<br>
><br>
> > Quoting Daniel Molina (<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>):<br>
> > ><br>
> > > Include it before the if:<br>
> > > logger.error(rackinput.class)<br>
> > > if (rackinput.class == Tempfile)<br>
> ><br>
> > I did just that, restarted apache and tried again. I can't spot the<br>
> > value in the logs, can you? Passenger errors are logged in apache error log<br>
> > (not vhost) log. I did check all logs but didn't find anything.<br>
><br>
><br>
> It should be in /var/log/one/sunstone.log<br>
><br>
> You can also write the value to a file:<br>
> File.open('/tmp/debug_sunstone", 'w') { |file| file.write(rackinput.class) }<br>
</div>I changed that to:<br>
<div class="im">File.open('/tmp/debug_sunstone', 'w') { |file| file.write(rackinput.class) }<br>
<br>
</div>(vim syntax highlighting ftw!)<br>
<br>
sunstone.log:<br>
<br>
Fri Nov 29 10:08:00 2013 [E]: PhusionPassenger::Utils::TeeInput<br>
Fri Nov 29 10:08:00 2013 [I]: 2001:7b8:3:1000:201:80ff:fe7c:2f35 - - [29/Nov/2013 10:08:00] "POST /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22ttylinux%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%22101%22%7D&file=ttylinux-pc_i686-16.1.iso&qqfile=ttylinux-pc_i686-16.1.iso " 500 30 0.0059<br>
<br>
cat /tmp/debug_sunstone<br>
PhusionPassenger::Utils::TeeInput<br></blockquote><div><br></div><div>Could you try changing this line:</div><div>elsif (rackinput.class == StringIO || rackinput.class == PhusionPassenger::Utils::RewindableInput)<br></div>
<div><br></div><div>to</div><div>elsif rackinput.respond_to?('read')</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
Gr. Stefan<br>
<br>
<br>
<br>
<br>
<br>
--<br>
| BIT BV <a href="http://www.bit.nl/" target="_blank">http://www.bit.nl/</a> Kamer van Koophandel 09090351<br>
| GPG: 0xD14839C6 <a href="tel:%2B31%20318%20648%20688" value="+31318648688">+31 318 648 688</a> / <a href="mailto:info@bit.nl">info@bit.nl</a><br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iF4EAREIAAYFAlKYWqEACgkQTyGgYdFIOcbFnwD/ehMxgF/ja5cILCU2f1cduidS<br>
7MqrrdOzmF3VPA8ygucBALqc/LofeUkrD/aVJEhUPdinL/ma4Z4/jAWHOm+Xb1X5<br>
=kRMl<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>
</div></div>