Problem with large file upload

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Problem with large file upload

Post by Maouk »

Hi,
I have some problems with "large" files (from 200 to 700mb more or less).
When I hit the "Go" or "Go & enter properties" the system return, after few second, to the frontpage without add the file.
To do some tests, I have modified the php.ini with:
upload_max_filesize 750MB
post_max_size 750MB
max_input_time 3600
but the result is the same.
Can someone help me?

Ah sorry: I have a linux slackware 11.0 with apache 2.2.4, php 5.2.5 and serendipity 1.2
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with large file upload

Post by garvinhicking »

Hi!

You must also raise your memory_limit to about twice the size of the file you're uploading, because it is parsed by PHP.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Post by Maouk »

Now I have, just for test,
memory_limit 1024MB
upload_max_filesize 1024MB
post_max_size 1024MB
max_input_time 3600

and I try to upload a 200MB file but there is no difference.
After five seconds (more or less) the "Add media" page switch to "Frontpage" like before.
Any other suggestion?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Did you enter a maximum file size limit in the s9y configuration options?

Can you check your PHP and Apache errorlogs? It might be that your processes are somehow coredumping?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Post by Maouk »

The maximum file size limit in the s9y config is not set and I don't see any error in the Apache or Php logs when I upload a 200mb file.
I don't know if it coredump but I don't see anything useful in the log system.
If php settings are ok, where I can check for other errors? File inside serendipity maybe?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Maybe you need to check the PHP.ini option "log_errors" and "error_log"? Did you check also the Apache core error logfile?

Check your whole /var/log for files with a updated timestamp after you uploaded the file. Usually in /var/log/syslog your coredump should be listed.

The error seems to happen on the Apache-/PHP-level, so s9y can't log that.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Post by Maouk »

log_errors and error_log already "on" and all the system logs goes into /var/log/messages. I try to check, again, my php/apache config.
Thanks for help me.
:)
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Post by Maouk »

After a test i've found this on the Apache access_log:

IP - - [ date ] "GET /serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=addSelect HTTP/1.1" 200 22142

IP - - [ date + 4 sec ] "POST /serendipity_admin.php HTTP/1.1" 200 11911


I check also the Apache error_log and the PHP logs but this is the only log of the upload action.
Any suggestion?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Access_log doesn't log such things. You'll have to check Apache error_logs as well as the PHP Error logs and your syslog.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Maouk
Regular
Posts: 8
Joined: Tue Feb 20, 2007 7:13 pm

Post by Maouk »

Yes, i know but as I write before I check also the Apache error_log and the PHP logs but this is the only log of the upload action.
Thanks however.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, but there must be other entries. If PHP bails out, and your server is configured to log syslog errors and php errors, there must be a logfile which contains the error.

This can be a multitude of server settings, I would need root level access to a server to debug this, so I can't really offer you more help on this. But I am quite sure it is related to PHP, not Serendipity.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply