Coppermine album is crashing my server Coppermine album is crashing my server
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Coppermine album is crashing my server

Started by ikhouvan.je, April 25, 2007, 09:38:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ikhouvan.je

Guys & girls

I'm all out of options here, the coppermine photoalbum has been days and days offline now --> when I turn it on my (dedicated) server gets a load of about 40 (where normal 2 is max) and the strange part is...nothing happend....about 15.000 visitors a day, about 12000 files and 2,5 milion views.

I checked my stats...no sudden increase of traffic / hits but still...all of the sudden a complete server crash...and again...and again...until I put the photoalbum of.
( the sql queries take up about 5 seconds....and the next one is started within that 5 seconds --> server overload :( )


USER:
------------------
Array
(
    [ID] => fd2f35b862c767056a2ac4af491d2fd3
    [am] => 1
    [liv] => Array
        (
        )

)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
    [1] => select * from cpg132_plugins order by priority asc; (0s)
    [2] => delete from `spading`.cpg132_sessions where time<1177526272 and remember=0; (0.005s)
    [3] => delete from `spading`.cpg132_sessions where time<1176320272; (0.004s)
    [4] => select user_id from `spading`.cpg132_sessions where session_id=md5("30ff11b82edc806f41a32c717ee4f5acff07513f60b139f6f10cfec9e79f7a4f"); (0s)
    [5] => select user_id as id, user_password as password from `spading`.cpg132_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `spading`.cpg132_users AS u INNER JOIN `spading`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `spading`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, 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, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `spading`.cpg132_sessions set time='1177529872' where session_id=md5('30ff11b82edc806f41a32c717ee4f5acff07513f60b139f6f10cfec9e79f7a4f'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg132_banned WHERE expiry < '2007-04-25 19:37:52' (0s)
    [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='85.144.3.82' OR ip_addr='85.144.3.82' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg132_albums as a WHERE category>=10000 (0s)
    [16] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.162s)
    [17] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos (0s)
    [18] => SELECT aid FROM cpg132_albums WHERE category = 2 (0s)
    [19] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.014s)
    [20] => SELECT count(*) FROM cpg132_albums as a WHERE category = '2' (0.001s)
    [21] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,8 (0.001s)
    [22] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 18, 17, 24, 23, 25, 12, 19)GROUP BY a.aid (1.751s)
    [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='21227' (1.407s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='21225' (0s)
    [25] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '2'  ORDER BY pos (0.034s)
    [26] => SELECT aid FROM cpg132_albums WHERE category = 8 (0.011s)
    [27] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0.893s)
    [28] => SELECT count(*) FROM cpg132_albums as a WHERE category = '8' (0.002s)
    [29] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=8 ORDER BY a.pos LIMIT 0,2 (0.001s)
    [30] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (9, 22)GROUP BY a.aid (0.001s)
    [31] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '8'  ORDER BY pos (0.001s)
    [32] => SELECT aid FROM cpg132_albums WHERE category = 3 (0s)
    [33] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.001s)
    [34] => SELECT count(*) FROM cpg132_albums as a WHERE category = '3' (0s)
    [35] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,2 (0s)
    [36] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (2, 13)GROUP BY a.aid (0.007s)
    [37] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '3'  ORDER BY pos (0.031s)
    [38] => SELECT aid FROM cpg132_albums WHERE category = 10 (0s)
    [39] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 10 (0.001s)
    [40] => SELECT count(*) FROM cpg132_albums as a WHERE category = '10' (0s)
    [41] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=10 ORDER BY a.pos LIMIT 0,2 (0s)
    [42] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (14, 15)GROUP BY a.aid (0.003s)
    [43] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '10'  ORDER BY pos (0.001s)
    [44] => SELECT aid FROM cpg132_albums WHERE category = 9 (0s)
    [45] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0s)
    [46] => SELECT count(*) FROM cpg132_albums as a WHERE category = '9' (0.001s)
    [47] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=9 ORDER BY a.pos LIMIT 0,1 (0.01s)
    [48] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (10)GROUP BY a.aid (0.001s)
    [49] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '9'  ORDER BY pos (0.003s)
    [50] => SELECT aid FROM cpg132_albums WHERE category = 5 (0.012s)
    [51] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.001s)
    [52] => SELECT count(*) FROM cpg132_albums as a WHERE category = '5' (0.03s)
    [53] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,1 (0.002s)
    [54] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3)GROUP BY a.aid (0.205s)
    [55] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '5'  ORDER BY pos (0.01s)
    [56] => SELECT aid FROM cpg132_albums WHERE category = 4 (0.005s)
    [57] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0.001s)
    [58] => SELECT count(*) FROM cpg132_albums as a WHERE category = '4' (0s)
    [59] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,1 (0.004s)
    [60] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (4)GROUP BY a.aid (0.002s)
    [61] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '4'  ORDER BY pos (0s)
    [62] => SELECT aid FROM cpg132_albums WHERE category = 6 (0s)
    [63] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0.642s)
    [64] => SELECT count(*) FROM cpg132_albums as a WHERE category = '6' (0s)
    [65] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,2 (0s)
    [66] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (6, 21)GROUP BY a.aid (0.003s)
    [67] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '6'  ORDER BY pos (0.001s)
    [68] => SELECT aid FROM cpg132_albums WHERE category = 7 (0.003s)
    [69] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0.03s)
    [70] => SELECT count(*) FROM cpg132_albums as a WHERE category = '7' (0.006s)
    [71] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,1 (0.013s)
    [72] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (8)GROUP BY a.aid (0.003s)
    [73] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '7'  ORDER BY pos (0.007s)
    [74] => SELECT aid FROM cpg132_albums as a WHERE category = '0' (0.007s)
    [75] => SELECT count(*) FROM cpg132_albums as a WHERE 1 (0.005s)
    [76] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.069s)
    [77] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 (2.161s)
    [78] => SELECT count(*) FROM cpg132_categories WHERE 1 (0.583s)
    [79] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1 (1.63s)
    [80] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0.164s)
    [81] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0' (0.004s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.2 - OK
------------------
mySQL version: 4.1.15-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.12 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /home/httpd/vhosts/ikhouvan.je/httpdocs:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 10.531 seconds - 82 queries in 9.952 seconds - Album set : ; Meta set: ;

Nibbler

Do you have a lot of comments?

General advice about lowering the amount of information and statistics displayed applies, search the board. Also optimize/analyse your tables using phpmyadmin

Joachim Müller

For details, post a link to your gallery .

Hein Traag


Joachim Müller

Quote from: Hein on April 26, 2007, 08:37:46 AMLink to website
Link to the gallery please, not just the website - I'm not willing to figure out the navigation, especially in a language that I'm not familiar with.

Hein Traag


Joachim Müller

The gallery is currently offline. Impossible to advice anything.

@Hein: sorry for the fuzz
@ikhouvan.je: This is silly, I'm not willing to look into this. I'm out of this thread.

ikhouvan.je

Quote from: GauGau on April 26, 2007, 01:02:47 PM
The gallery is currently offline. Impossible to advice anything.

@Hein: sorry for the fuzz
@ikhouvan.je: This is silly, I'm not willing to look into this. I'm out of this thread.

why is it silly? and why are you not willing to look into this?

Sorry but you've lost me?

Hein Traag

Quote from: ikhouvan.je on April 26, 2007, 08:40:32 PM
why is it silly? and why are you not willing to look into this?

Sorry but you've lost me?

Putting the gallery offline does not help us help you. Put it back online and i'll see what i can do.