[one-users] Sunstone image upload not working - images not in tmpdir

Stefan Kooman stefan at bit.nl
Fri Nov 29 01:13:05 PST 2013


Quoting Daniel Molina (dmolina at opennebula.org):
> On 29 November 2013 09:57, Stefan Kooman <stefan at bit.nl> wrote:
> 
> > Quoting Daniel Molina (dmolina at 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

Gr. Stefan





-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131129/d88a0af4/attachment-0002.pgp>


More information about the Users mailing list