Upload works perfectly...and then stops working. Upload works perfectly...and then stops working.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upload works perfectly...and then stops working.

Started by Chris_Scag, December 17, 2010, 11:27:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chris_Scag

Hi.  First off, let me say that Coppermine looks wonderful and is (almost) working wonderful for me!

Here's my problem:  Fresh, no mod/plugin install of 1.5.10 with standard theme.  My first install went fine, uploaded about 25'ish files total (not all at once) in 3 albums using the Flash uploader.  Tried adding another image and received the "upload failed" error?  Tried another image that had uploaded fine earlier, "upload failed".  I had changed the max file size (5000) and width (5000) to accomidate my files and the attempted uploads were within the guidelines (all under 3MB, even getting errors at under 1MB). 

http://www.scag.com/scag_gallery/index.php

Using GD2 (IM was not able to merge graphics during the install so I went with GD2) 
php_value memory_limit 128mb

Attachment shows error with a 978kb JPG file.

So after reading through this forum, I thought I might have a missing file or something so I started from scratch.  New database and a complete reupload of the Coppermine files via Filezilla FTP.  Same exact results....although the second install got me 19 pictures uploaded before the same thing happened again. 

Also tried logging out and back in and only other change was to turn off Visitors Uploads (and I tried turning this back on/off with no change...same upload failed error), and turn off new registrations.

Any ideas why it would work so beautifully and then act so different?  I have done some searching and have not been able to find anyone with a similar problem.

Thanks in advance for any ideas. 

Αndré

Maybe there's no space on the server's hard disk drive? Try to delete some files and have a look if it works again.

Chris_Scag

Thank you for the suggestion.  I think I already tried that but I will try again.  A quick look at my server control panel shows:  Used: 12 288 / Total:  24 000 MB  so it should be good on space.

Chris_Scag

OK - I tried removing several files and re-uploading one that I deleted (as I know it worked once), and same thing.  I turned on error logging and the error message is different when trying to upload...not sure if this is because I have the logging on now or what?  See attached.  "Server (IO) Error".

Chris_Scag

#4
Here's the Debug output of a failed upload attempt:
USER:
------------------
Array
(
   [ID] => 79c57f5ff2d1cb88938f61111720e97a
   [am] => 1
   [lang] => english
   [liv_a] => Array
       (
           [0] => 3
           [1] => 2
           [2] => 1
       )

   [liv] => Array
       (
           [0] => 12
           [1] => 26
       )

)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_name] => scag_admin
   [groups] => Array
       (
           [0] => 1
       )

   [disk_max] => 0
   [disk_min] => 0
   [can_rate_pictures] => 1
   [can_send_ecards] => 1
   [can_post_comments] => 1
   [can_upload_pictures] => 1
   [can_create_albums] => 1
   [has_admin_access] => 1
   [access_level] => 3
   [pub_upl_need_approval] => 0
   [priv_upl_need_approval] => 0
   [group_name] => Administrators
   [can_create_public_albums] => 0
   [group_quota] => 0
   [can_see_all_albums] => 1
   [group_id] => 1
   [allowed_albums] => Array
       (
       )

)

==========================
Queries:
------------------
Array
(
   [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:181] (1 ms)
   [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:53] (0 ms)
   [2] => SELECT user_id, time FROM `gallery_scag_com`.cpg15x_sessions WHERE session_id = 'd19cea79219a9d3c094d8bfb7f3bfe76' [bridge/coppermine.inc.php:264] (0 ms)
   [3] => SELECT user_id, user_password FROM `gallery_scag_com`.cpg15x_users WHERE user_id = 1 [bridge/coppermine.inc.php:276] (0 ms)
   [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `gallery_scag_com`.cpg15x_users AS u LEFT JOIN `gallery_scag_com`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0 ms)
   [5] => SELECT user_group_list FROM `gallery_scag_com`.cpg15x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (0 ms)
   [6] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0 ms)
   [7] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0 ms)
   [8] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0 ms)
   [9] => UPDATE `gallery_scag_com`.cpg15x_sessions SET time = 1292852982 WHERE session_id = 'd19cea79219a9d3c094d8bfb7f3bfe76' [bridge/coppermine.inc.php:321] (0 ms)
   [10] => UPDATE `gallery_scag_com`.cpg15x_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:325] (0 ms)
   [11] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
   [12] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
   [13] => DELETE FROM cpg15x_banned WHERE expiry < '2010-12-20 08:49:42' [include/init.inc.php:443] (0 ms)
   [14] => SELECT null FROM cpg15x_banned WHERE (user_id=1 OR '12.151.244.190' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
   [15] => SELECT aid, title, cid, name FROM cpg15x_albums INNER JOIN cpg15x_categories ON cid = category WHERE category < 10000 [upload.php:571] (0 ms)
   [16] => SELECT aid, title FROM cpg15x_albums WHERE category = 0 [upload.php:573] (0 ms)
   [17] => SELECT aid, title FROM cpg15x_albums WHERE category='10001' ORDER BY title [upload.php:599] (0 ms)
   [18] => SELECT user_id AS user_id, user_password AS pass_hash FROM `gallery_scag_com`.cpg15x_users WHERE user_id = '1' [bridge/udb_base.inc.php:740] (0 ms)
   [19] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2418] (0 ms)
   [20] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
   [21] => DELETE FROM cpg15x_temp_messages WHERE time < 1292849382 [include/functions.inc.php:4927] (0 ms)
   [22] => SELECT cid, parent, name FROM cpg15x_categories WHERE 1 [upload.php:247] (0 ms)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
COOKIE :
------------------
Array
(
   [GALLERYSID] => 64bf81820000cd1958723821c1852069
   [__utma] => 226911007.901356333.1290200506.1292518900.1292852139.8
   [__utmz] => 226911007.1290200506.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
   [g3sid] => baeb8f5f6cfef94a48d180ac965a2a1f3095a060~c5d8047ca90bde8df0d6131ff970257d
   [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiI3OWM1N2Y1ZmYyZDFjYjg4OTM4ZjYxMTExNzIwZTk3YSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjU6Imxpdl9hIjthOjM6e2k6MDtpOjM7aToxO2k6MjtpOjI7aToxO31zOjM6ImxpdiI7YToyOntpOjA7czoyOiIxMiI7aToxO3M6MjoiMjYiO319
   [ca445122f5b35d20955d460221643939] => 07f0143a0ad1e1acf54f447904fde0cf
   [__utmb] => 226911007.1.10.1292852139
   [__utmc] => 226911007
)

==========================
VERSION INFO :
------------------
PHP version        5.2.13     OK    
MySQL version      5.0.90-log OK    
Coppermine version 1.5.10     stable

==========================
Module: GD
------------------
Exact version                    2.0.34                    
GD Version                       bundled (2.0.34 compatible)
FreeType Support                 1                          
FreeType Linkage                 with freetype              
T1Lib Support                                              
GIF Read Support                 1                          
GIF Create Support               1                          
JPG Support                      1                          
PNG Support                      1                          
WBMP Support                     1                          
XPM Support                                                
XBM Support                      1                          
JIS-mapped Japanese Font Support                            

==========================
Key config settings
------------------
site_url             http://www.scag.com/scag_gallery/
charset              utf-8                            
allow_private_albums 1                                
cookie_name          cpg15x                          
cookie_path          /                                
impath               /usr/bin/                        
lang                 english                          
main_page_layout     breadcrumb/catlist/alblist      
silly_safe_mode      0                                
smtp_host                                            
theme                curve                            
thumb_method         gd2                              

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                0                
safe_mode_exec_dir       /usr/local/php/bin
safe_mode_gid            0                
safe_mode_include_dir                      
sql.safe_mode            0                
disable_functions        phpinfo          
file_uploads             1                
include_path             .                
open_basedir                              
allow_url_fopen          1                
max_execution_time       30                
max_input_time           -1                
upload_max_filesize      10M              
post_max_size            10M              
memory_limit             128M              
suhosin.post.max_vars                      
suhosin.request.max_vars                  


==========================
Page (performance)
------------------
Parameter        Current  Peak    
Memory usage     3.03 MiB 4.14 MiB
Page generation  84 ms    84 ms  
Page query time  1 ms     1 ms    
Page query count 23       23      


==========================
               ---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url:               /scag_gallery/upload.php
flash_url:                js/swfupload/swfupload.swf?preventswfcaching=1292852983947
use_query_string:         false
requeue_on_error:         false
http_success:            
assume_success_timeout:   0
file_post_name:           Filedata
post_params:              [object Object]
file_types:               *.*
file_types_description:   All Files
file_size_limit:          5000 KB
file_upload_limit:        0
file_queue_limit:         0
debug:                    true
prevent_swf_caching:      true
button_placeholder_id:    browse_button_place_holder
button_placeholder:       Not Set
button_image_url:         /scag_gallery/images/browse_swf.png
button_width:             130
button_height:            20
button_text:              
button_text_style:        .browse { font-family: Arial,Helvetica,sans-serif; color: #D0CFD0;}
button_text_top_padding:  0
button_text_left_padding: 30
button_action:            -110
button_disabled:          true
custom_settings:          [object Object]
Event Handlers:
swfupload_loaded_handler assigned:  true
file_dialog_start_handler assigned: false
file_queued_handler assigned:       true
file_queue_error_handler assigned:  true
upload_start_handler assigned:      true
upload_progress_handler assigned:   true
upload_error_handler assigned:      true
upload_success_handler assigned:    true
upload_complete_handler assigned:   true
debug_handler assigned:             true

SWFUpload.SWFObject Plugin settings:
minimum_flash_version:                      9.0.28
swfupload_load_failed_handler assigned:     true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             /scag_gallery/upload.php
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:      
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit:        5120000 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       0
SWF DEBUG: Post Params:
SWF DEBUG:                         user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImMxZTQ5NDQxN2RkZjg0NWZhYjVjZTI3Y2ExNWVhZjFiIjt9
SWF DEBUG:                         process=1
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6ImMxZTQ5NDQxN2RkZjg0NWZhYjVjZTI3Y2ExNWVhZjFiIjt9
SWF DEBUG: Global Post Item: process=1
SWF DEBUG: Global Post Item: album=3
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /scag_gallery/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 32768. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 98304. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 131072. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 163840. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 196608. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 229376. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 262144. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 294912. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 327680. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 360448. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 393216. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 425984. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 458752. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 491520. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 524288. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 557056. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 589824. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 622592. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 655360. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 688128. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 720896. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 753664. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 786432. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 819200. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 851968. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 884736. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 917504. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 950272. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 983040. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1015808. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1048576. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1081344. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1114112. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1146880. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1179648. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1212416. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1245184. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1277952. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1310720. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1343488. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1376256. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1409024. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1441792. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1474560. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1507328. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1540096. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1572864. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1605632. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1638400. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1671168. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1703936. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1736704. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1769472. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1802240. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1835008. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1867776. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1900544. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1933312. Total: 1955605
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1955605. Total: 1955605
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: error|The previous file could not be placed.|0
SWF DEBUG: Event: uploadComplete : Upload cycle complete.


Αndré

Quote from: Chris_Scag on December 20, 2010, 02:38:31 PM
A quick look at my server control panel shows:  Used: 12 288 / Total:  24 000 MB  so it should be good on space.
That's says nothing, as the hard disk can be full even if your quota looks good.


Please delete more than just one file (e.g. you can temporarily delete the docs/ directory and all language files but english.php) to make sure you have some space. Alternatively you can contact your hoster and ask if the hard disk is full.

What happens when you use the simple upload form?

What happens when you try to upload a really small text file?

Chris_Scag

Good point!  I had not thought of the Quota versus actual space available. 

I have a bunch of video that can come off the site.  I will pull all of that (probably 1GB worth) and give it another run.  I was just able to upload several small text and gif files (20kb and under) so I think you may have found the problem?  I will confirm ASAP.

Chris_Scag

Well, that was so obvious, I am embarrassed!  It all makes sense now.  It was a storage issue as I removed a large number of files and now I can upload like crazy!

Thank you very much for your help and for such a great product. 

Αndré

Marking accordingly.

I'd contact my provider if the hard disk is full and I have a lot of free quote ;)

Chris_Scag

Quote from: Αndré on December 20, 2010, 04:10:05 PM
Marking accordingly.

I'd contact my provider if the hard disk is full and I have a lot of free quote ;)

He he.....already sent the nasty-gram!  Thanks again and Happy Holidays to you!