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

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org): On 28 November 2013 18:15, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote: We didn't change anything, just:

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

2013-11-29 Thread Daniel Molina
On 29 November 2013 09:27, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): On 28 November 2013 18:15, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote:

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

2013-11-29 Thread Stefan Kooman
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

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

2013-11-29 Thread Daniel Molina
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

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

2013-11-29 Thread Stefan Kooman
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,

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

2013-11-29 Thread Daniel Molina
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:

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

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@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

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

2013-11-29 Thread Daniel Molina
On 29 November 2013 10:54, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): Could you try changing this line: elsif (rackinput.class == StringIO || rackinput.class == PhusionPassenger::Utils::RewindableInput) to elsif rackinput.respond_to?('read')

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

2013-11-29 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org): This is handled by passenger, it should be removed by the GC sooner or later Ah, I See. One file is cleaned up already. Proably I'm just impatient :). If I close apache passenger it cleans up after itself ... nice. I just did test with

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

2013-11-29 Thread Daniel Molina
On 29 November 2013 11:18, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): This is handled by passenger, it should be removed by the GC sooner or later Ah, I See. One file is cleaned up already. Proably I'm just impatient :). If I close apache

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

2013-11-28 Thread Daniel Molina
On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): Could you try exporting the $TMPDIR var before starting the passenger processes? This is the code that generates the temp file (sunstone-server.rb): tmpfile =

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

2013-11-28 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org): On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote: We didn't change anything, just: https://github.com/OpenNebula/one/commit/f8e2e65b0170268e9c72d52c4fe9f0e13fa05acd So, it should work as before. Passenger 4.0.26 is giving me

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

2013-11-28 Thread Daniel Molina
On 28 November 2013 18:15, Stefan Kooman ste...@bit.nl wrote: Quoting Daniel Molina (dmol...@opennebula.org): On 27 November 2013 21:27, Stefan Kooman ste...@bit.nl wrote: We didn't change anything, just:

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

2013-11-27 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org): Could you try exporting the $TMPDIR var before starting the passenger processes? This is the code that generates the temp file (sunstone-server.rb): tmpfile = Tempfile.open('sunstone-upload') by default, it uses Dir.tmpdir as

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

2013-11-15 Thread Stefan Kooman
Quoting Stefan Kooman (ste...@bit.nl): I've tried this and that works, i.e. the image gets uploaded and stored in /mnt/sunstone_upload directory. However, something goes wrong copying the file to the datastore. The file is empty (0 bytes). Here some logging: Answering myself here. This turns

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

2013-11-15 Thread Daniel Molina
On 15 November 2013 15:30, Stefan Kooman ste...@bit.nl wrote: Quoting Stefan Kooman (ste...@bit.nl): I've tried this and that works, i.e. the image gets uploaded and stored in /mnt/sunstone_upload directory. However, something goes wrong copying the file to the datastore. The file is

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

2013-11-13 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org): Hi Stefan, Could you try exporting the $TMPDIR var before starting the passenger processes? This is the code that generates the temp file (sunstone-server.rb): tmpfile = Tempfile.open('sunstone-upload') by default, it uses