Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - fredr

Pages: [1]
1
Installation problems / auto upgrade and can't unzip file
« on: August 19, 2009, 09:18:46 am »
I know this has been touched on by other topics, but I'm still stuck after looking at them, and looking for some help.
When I choose the auto update option (to latest V1.5.2), it says "Loading..." for a few seconds, then "unable to open zip file".

Previously mentioned solutions include:
- installing php_zip.  According to phpinfo, I have zip "enabled" with Zip V2.0.0 and Libzip v0.7.1.  I assume that means I did everything right, including enabling the extension in php.ini and restarting apache.
- giving permissions to the web server in the opengoo directory.  I have given ownership to www-data of everything in /opengoo and the directory itself.

I'm hosting opengoo on a VPS (so I have root access) running ubuntu.  Is there something else I should be doing to get automatic upgrades working?

Thanks

2
Older versions / file upload problem with Opera
« on: July 28, 2009, 12:25:50 pm »
This is different from the other msgs on forum about upload problems.

I've been trying to get v1.5 (rc and final) to work on an Ubuntu server.  I could not get test files to upload and tried all the usual suspects: permissions, safe-mode, various file and memory limits.

Then I noticed 2 things:  the problem only happened with Opera (v10) and not with Firefox, and even with Opera, I could still upload small files (~<10kb empirically).

I added some logging statements in the Files controller in the add_file function around line 380 (+/-)  One output is the $_SESSION variable, and another is the $uploaded_file that is pulled out of the session by its ID.

For a successful upload, it looks like this:
----------
#3 DEBUG: Array

    (

        [og_1248787614_617628] => Array

            (

                [name] => degoede profile log.txt

                [size] => 17286

                [type] => text/plain

                [tmp_name] => /home/xxx/web/opengoo/tmp/og_1248787614_617628

                [error] => 0

            )

   

    )

     session

#4 DEBUG: Array

    (

        [name] => degoede profile log.txt

        [size] => 17286

        [type] => text/plain

        [tmp_name] => /home/xxx/web/opengoo/tmp/og_1248787614_617628

        [error] => 0

    )

     uploaded file
--------
...where you can see that all the attributes of the file are available in the session.
Here's a failed upload:
--------
[og_1248786502_321440] => Array

            (

                [name] => TeammatePBP_report.pdf

                [size] => 0

                [type] =>

                [tmp_name] => /home/fred/web/opengoo/tmp/og_1248786502_321440

                [error] => 3

            )
#4 DEBUG: Array

    (

    )

     uploaded file
-----------
where you can see the session data is incomplete.

I'm sorry to say I don't know much about javascript in general, or about opengoo in particular, so I'm not sure where to go from here.  A quick web search turned up some reports of similar problems--Opera, uploads, works with very small files, which may or may not be relevant--such as:
--------
If using curl to submit POST data, or Opera web browser and request content was over 10kb, the
client will ask that a 100-continue status response be generated by server before actually
sending any data.

Problem is that if WSGI application is run in daemon mode, this situation was causing request
content to be truncated and the WSGI application would see no input.
-------
This caught my eye because I had empirically determined that I could upload files generally smaller than 10kb (but even then, it seemed to vary from time to time)

I hope this gives someone smarter than me something to chew on...

Pages: [1]