Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2010, 05:24 PM
Abe Koenghiem Abe Koenghiem is offline
 
Join Date: Feb 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachment Download stops at 16,384 kbytes???

When my users download a thread attachment, it downloads only the first 16, 384 kbytes.

It starts the download and when it gets to the 16M point, it declares the download "complete" and stops.

No errors.

Firefox or IE.

No difference "Save" option or "Open with"

Built a second vB 3.8.4 from a backup and it does the same thing.

define('DISABLE_HOOKS', true); does not change this behavior.

Server Type Linux
Web Server Apache v2.2.11
PHP 5.2.9
PHP Max Post Size 313.00 MB
PHP Maximum Upload Size 312.00 MB
PHP Memory Limit 314.00 MB
MySQL Version 5.0.84
MySQL Packet Size 313.00 MB

Attachments are flv and avi.

Has anyone seen this?
Reply With Quote
  #2  
Old 01-08-2010, 05:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at these variables:
PHP Settings:
max_execution_time
memory_limit
post_max_size
upload_max_filesize
max_input_time

MySQL Settings:
max_allowed_packet
max_packet_size
wait_timeout

My guess is it is one of those that is effecting your download and you will have to change it in the appropriate conf file for either php or mysql. If you cannot do that, you should talk to your host about the issue.
Reply With Quote
  #3  
Old 01-08-2010, 06:10 PM
Abe Koenghiem Abe Koenghiem is offline
 
Join Date: Feb 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Settings:
max_execution_time 30
memory_limit 314M
post_max_size 313M
upload_max_filesize 312M
max_input_time 60

MySQL Settings:
max_allowed_packet ( 313M in my.cnf) (328204288 according to 'show variable like max_allowed_packet'
max_packet_size Not set in my.cnf, not set in MySQL
wait_timeout Not set in my.cnf, net set in MySQL

I have been trying to understand why /etc/init.d/mysqld is not written to use all the settings in my.cnf ( like logfile statements ) but thats another thread.

I am going to bump my max_execution_time to 60 and see. Does that sound reasonable?

Thanks again for responding.

--------------- Added [DATE]1262982984[/DATE] at [TIME]1262982984[/TIME] ---------------

Quote:
"I am going to bump my max_execution_time to 60 and see. Does that sound reasonable?"
No, thats not it. the file is still truncated at 16,384.

???

--------------- Added [DATE]1262983596[/DATE] at [TIME]1262983596[/TIME] ---------------

BTW,

When I did a query on the ****attachment table, the file sizes were correct so I am assuming that the files attached correctly ands the problem is in the download.

Thats assuming quite a bit. The behavior is consistant with an incomplete attachment ( with no error message) but a filesize field that shows what the file should be and not what it actually is.

--------------- Added [DATE]1262986629[/DATE] at [TIME]1262986629[/TIME] ---------------

I can successfully run this code on the affected machine.

Code:
<?php

header('Content-type: application/flv');

header('Content-Disposition: attachment; filename="MyFileName.flv"');

readfile('MyFileName.flv');
?>
I placed the flash file in the webroot with ftp.

Then I used this PHP page to download it. It downloaded completely and played without error.
Reply With Quote
  #4  
Old 04-06-2010, 01:26 PM
Abe Koenghiem Abe Koenghiem is offline
 
Join Date: Feb 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any other setting beyond what I have listed above that might be causing this?
Reply With Quote
  #5  
Old 04-06-2010, 01:45 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What i would suggest is you tail your apache log w/ debug mode on in apache.

LogLevel debug

HUP apache

tail -f /path/to/apache/error_log | grep "youriphere"

try to dl a file and see if it spits out a error.
Reply With Quote
  #6  
Old 04-06-2010, 04:20 PM
Abe Koenghiem Abe Koenghiem is offline
 
Join Date: Feb 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, (but)

I changed warn to debug in apaches conf file.

I did a graceful restart of Apache

I downloaded and checked the log
I uploaded and then downloaded and checked again

Here are the last two entries

[Tue Apr 06 12:17:50 2010] [info] Server built: Dec 3 2009 11:16:31
[Tue Apr 06 12:17:50 2010] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem)

The Times are correct. In other words; nothing after restart.

During & after upload vBulletin showns the correct 60M size
During download it begins to download 60M and stops at a 16 and says finished.
No error.

Thanks for your help. Do you have any other ideas?

--------------- Added [DATE]1270578403[/DATE] at [TIME]1270578403[/TIME] ---------------

I found a workaround to my download limit by installing vbGallery

I can store the 60 Meg and up files in the Gallery and then reference them by a link from a thread.

My feeling is: this rules out PHP config and MySQL config issues.

Any thoughts on why vbGallery on the same LAMP server has no problem downloading over 16 Meg but the 3.8.5 vB install does?

Thanks everybody fro the advice, I learned a lot but I would still like to know what I missed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03786 seconds
  • Memory Usage 2,210KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete