On 29 November 2013 10:13, Stefan Kooman <ste...@bit.nl> wrote: > Quoting Daniel Molina (dmol...@opennebula.org): > > On 29 November 2013 09:57, Stefan Kooman <ste...@bit.nl> wrote: > > > > > Quoting Daniel Molina (dmol...@opennebula.org): > > > > > > > > Include it before the if: > > > > logger.error(rackinput.class) > > > > if (rackinput.class == Tempfile) > > > > > > I did just that, restarted apache and tried again. I can't spot the > > > value in the logs, can you? Passenger errors are logged in apache > error log > > > (not vhost) log. I did check all logs but didn't find anything. > > > > > > It should be in /var/log/one/sunstone.log > > > > You can also write the value to a file: > > File.open('/tmp/debug_sunstone", 'w') { |file| > file.write(rackinput.class) } > I changed that to: > File.open('/tmp/debug_sunstone', 'w') { |file| file.write(rackinput.class) > } > > (vim syntax highlighting ftw!) > > sunstone.log: > > Fri Nov 29 10:08:00 2013 [E]: PhusionPassenger::Utils::TeeInput > 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 > > cat /tmp/debug_sunstone > PhusionPassenger::Utils::TeeInput >
Could you try changing this line: elsif (rackinput.class == StringIO || rackinput.class == PhusionPassenger::Utils::RewindableInput) to elsif rackinput.respond_to?('read') > > Gr. Stefan > > > > > > -- > | BIT BV http://www.bit.nl/ Kamer van Koophandel 09090351 > | GPG: 0xD14839C6 +31 318 648 688 / i...@bit.nl > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iF4EAREIAAYFAlKYWqEACgkQTyGgYdFIOcbFnwD/ehMxgF/ja5cILCU2f1cduidS > 7MqrrdOzmF3VPA8ygucBALqc/LofeUkrD/aVJEhUPdinL/ma4Z4/jAWHOm+Xb1X5 > =kRMl > -----END PGP SIGNATURE----- > > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org