Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Problems with gallery or host  (Read 4791 times)

0 Members and 1 Guest are viewing this topic.

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Problems with gallery or host
« on: June 13, 2006, 10:28:55 pm »

It's a long story but I'll try to make it short, I keep getting MySQL connection errors and this is what my host said about it :

Quote
We have checked your issue, the problem is that you have huge number of mysql connections to database xxxxx_gallery and your VPS machine is
unable to handle such load. We have restricted your max mysql connection to 100. This would limit the load going high.

this didn't help and their next reply was this :

Quote
The problem is not about the number of connection, but the connections are creating large number of mysql queries and many of them do not close after executing it goes to sleep state. This queries are causing trouble. Could you please get a programmer to check this.

Quote
Normally, the Coppermine installation do not consume much resources as such. Either the installation would be an obsolete one or some of the core files are corrupt. We cannot provide support for third party scripts and programs.

Can someone please help me on this. I don't know what's the problem here, did something in Coppermine went wrong or is there a problem with my host ?

Logged

Nibbler

  • Guest
Re: Problems with gallery or host
« Reply #1 on: June 13, 2006, 10:38:36 pm »

Post a link to your gallery, with debug mode enabled if possible.
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #2 on: June 13, 2006, 10:42:16 pm »

it's still down and i can't access gallery admin (so i can't put it in debug mode) or cpanel/phpmyadmin :( :

http://www.allaboutmadonna.com/photos/index.php

I can only give you ftp/ssh login if that could help ?
« Last Edit: June 13, 2006, 10:48:22 pm by pera2109 »
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #3 on: June 14, 2006, 06:47:48 am »

Ok, it's back online now, this is debug info from main page :

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

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Pera
    [groups] => Array
        (
           
  • => 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
(
   
  • => SELECT extension, mime, content, player FROM cpg132_filetypes; (0.021s)
  • [1] => select * from cpg132_plugins order by priority asc; (0.014s)
        [2] => delete from `allmado_gallery`.cpg132_sessions where time<1150256541 and remember=0; (0.025s)
        [3] => delete from `allmado_gallery`.cpg132_sessions where time<1149050541; (0.007s)
        [4] => select user_id from `allmado_gallery`.cpg132_sessions where session_id=md5("f3851241b724faceb00d5a03226ecb49ac811cd26bfecdaa5403476d5ab180bf"); (0.005s)
        [5] => select user_id as id, user_password as password from `allmado_gallery`.cpg132_users where user_id=1 (0.009s)
        [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 `allmado_gallery`.cpg132_users AS u INNER JOIN `allmado_gallery`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.007s)
        [7] => SELECT user_group_list FROM `allmado_gallery`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0.005s)
        [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) (0.007s)
        [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0.006s)
        [10] => update `allmado_gallery`.cpg132_sessions set time='1150260141' where session_id=md5('f3851241b724faceb00d5a03226ecb49ac811cd26bfecdaa5403476d5ab180bf'); (0.007s)
        [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0.098s)
        [12] => DELETE FROM cpg132_banned WHERE expiry < '2006-06-14 04:42:22' (0.057s)
        [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='87.116.141.184' OR ip_addr='0.0.0.0' OR user_id=1) AND brute_force=0 (0.036s)
        [14] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos (0.071s)
        [15] => SELECT aid FROM cpg132_albums WHERE category = 4 (0.038s)
        [16] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0.087s)
        [17] => SELECT aid FROM cpg132_albums WHERE category = 5 (0.022s)
        [18] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.018s)
        [19] => SELECT aid FROM cpg132_albums WHERE category = 7 (0.026s)
        [20] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0.115s)
        [21] => SELECT aid FROM cpg132_albums WHERE category = 17 (0.027s)
        [22] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 17 (0.027s)
        [23] => SELECT aid FROM cpg132_albums WHERE category = 168 (0.027s)
        [24] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 168 (0.048s)
        [25] => SELECT aid FROM cpg132_albums WHERE category = 14 (0.196s)
        [26] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0.015s)
        [27] => SELECT aid FROM cpg132_albums WHERE category = 15 (0.009s)
        [28] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0.014s)
        [29] => SELECT aid FROM cpg132_albums WHERE category = 18 (0.017s)
        [30] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 18 (0.021s)
        [31] => SELECT aid FROM cpg132_albums WHERE category = 182 (0.016s)
        [32] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 182 (0.048s)
        [33] => SELECT aid FROM cpg132_albums WHERE category = 20 (0.048s)
        [34] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 20 (0.107s)
        [35] => SELECT aid FROM cpg132_albums WHERE category = 26 (0.05s)
        [36] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 26 (0.047s)
        [37] => SELECT aid FROM cpg132_albums WHERE category = 27 (0.032s)
        [38] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 27 (0.079s)
        [39] => SELECT aid FROM cpg132_albums WHERE category = 126 (0.089s)
        [40] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 126 (0.066s)
        [41] => SELECT aid FROM cpg132_albums as a WHERE category>=10000 (0.155s)
        [42] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.135s)
        [43] => SELECT aid FROM cpg132_albums as a WHERE category = '0' (0.201s)
        [44] => SELECT count(*) FROM cpg132_albums as a WHERE 1 (0.048s)
        [45] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.825s)
        [46] => 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 (0.198s)
        [47] => SELECT count(*) FROM cpg132_categories WHERE 1 (0.006s)
        [48] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1 (1.388s)
        [49] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0.666s)
        [50] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0' (0.039s)
        [51] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'  (0.7s)
        [52] => SELECT * FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,16 (0.062s)
        [53] => SELECT count(*) from cpg132_comments where pid=20020 and msg_id!=0 (0.035s)
        [54] => SELECT count(*) from cpg132_comments where pid=20019 and msg_id!=0 (0.052s)
        [55] => SELECT count(*) from cpg132_comments where pid=20018 and msg_id!=0 (0.072s)
        [56] => SELECT count(*) from cpg132_comments where pid=20017 and msg_id!=0 (0.096s)
        [57] => SELECT count(*) from cpg132_comments where pid=20016 and msg_id!=0 (0.019s)
        [58] => SELECT count(*) from cpg132_comments where pid=20015 and msg_id!=0 (0.021s)
        [59] => SELECT count(*) from cpg132_comments where pid=20014 and msg_id!=0 (0.007s)
        [60] => SELECT count(*) from cpg132_comments where pid=20013 and msg_id!=0 (0.018s)
        [61] => SELECT count(*) from cpg132_comments where pid=20012 and msg_id!=0 (0.014s)
        [62] => SELECT count(*) from cpg132_comments where pid=20011 and msg_id!=0 (0.013s)
        [63] => SELECT count(*) from cpg132_comments where pid=20010 and msg_id!=0 (0.015s)
        [64] => SELECT count(*) from cpg132_comments where pid=20009 and msg_id!=0 (0.04s)
        [65] => SELECT count(*) from cpg132_comments where pid=20008 and msg_id!=0 (0.052s)
        [66] => SELECT count(*) from cpg132_comments where pid=20007 and msg_id!=0 (0.07s)
        [67] => SELECT count(*) from cpg132_comments where pid=20006 and msg_id!=0 (0.052s)
        [68] => SELECT count(*) from cpg132_comments where pid=20005 and msg_id!=0 (0.071s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.11 - OK
    ------------------
    mySQL version: 4.1.19-standard
    ------------------
    Coppermine version: 1.4.8(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 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
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.19
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -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 | Off | Off
    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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    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 9.201 seconds - 69 queries in 6.734 seconds - Album set : ; Meta set: ;
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #4 on: June 14, 2006, 07:16:22 am »

notices i found so far :

/include/themes.inc.php

    * Notice line 2174: Undefined index: uid
    * Notice line 1877: Undefined index: uid

/displayimage.php

    * Notice line 319: Undefined variable: meta_keywords

- appeares when viewing image


/upload.php

    * Notice line 269: Undefined offset: 2
    * Notice line 275: Undefined offset: 3
    * Notice line 275: Undefined offset: 4

- appears on upload page
« Last Edit: June 14, 2006, 07:47:16 am by pera2109 »
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #5 on: June 14, 2006, 03:34:26 pm »

Anyone ?
Logged

Nibbler

  • Guest
Re: Problems with gallery or host
« Reply #6 on: June 14, 2006, 04:57:31 pm »

The reason I asked for a link is to see your gallery. If you have it set to registered users only and don't post a test account then we can't see anything.
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #7 on: June 14, 2006, 05:48:17 pm »

ok

login : test1
password : test1
Logged

Nibbler

  • Guest
Re: Problems with gallery or host
« Reply #8 on: June 14, 2006, 06:26:07 pm »

I'd suggest removing some content from your main page and removing the gallery statistics. Search the board for details. Also use pagination for your album view. Make sure you have the mysql query cache enabled.
Logged

blablabla

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
Re: Problems with gallery or host
« Reply #9 on: June 14, 2006, 06:34:13 pm »

Make sure you have the mysql query cache enabled.

How can I check that ?
Logged

Nibbler

  • Guest
Re: Problems with gallery or host
« Reply #10 on: June 14, 2006, 06:40:06 pm »

You have ssh access so you can login to that, type mysql, and at the prompt type

Code: [Select]
show status like '%qc%';
If the cache is not enabled then either read the mysql manual and set it up yourself or contact your host.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.