http upload failure http upload failure
 

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

http upload failure

Started by samnjugu, April 22, 2006, 03:12:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samnjugu

when i perform a http upload i get the following error message:

critical error
The file 'albums/userpics/10002/muthii1.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x66 'albums/userpics/10002/muthii1.jpg' 'albums/userpics/10002/thumb_muthii1.jpg'


The convert program said:
convert: unable to open image `albums/userpics/10002/muthii1.jpg': Permission denied.


File: /var/www/html/cpg144/db_input.php - Line: 391




and this is the debug info generated:

USER:
------------------
Array
(
    [ID] => ***********
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => muthii
    [groups] => Array
        (
           
  • => 2
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
        [1] => select * from cpg143_plugins order by priority asc; (0.001s)
        [2] => delete from `phpmyadmin`.cpg143_sessions where time<1145692231 and remember=0; (0.001s)
        [3] => delete from `phpmyadmin`.cpg143_sessions where time<1144486231; (0s)
        [4] => select user_id from `phpmyadmin`.cpg143_sessions where session_id=md5("35c24e3ad45e42902f64a68ba5eb3b9e9da9b013bf4ed0cd6fc879ffce90501f"); (0.001s)
        [5] => select user_id as id, user_password as password from `phpmyadmin`.cpg143_users where user_id=2 (0.001s)
        [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 `phpmyadmin`.cpg143_users AS u INNER JOIN `phpmyadmin`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0.001s)
        [7] => SELECT user_group_list FROM `phpmyadmin`.cpg143_users AS u WHERE user_id='2' and user_group_list <> ''; (0.001s)
        [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 cpg143_usergroups WHERE group_id in (2) (0.001s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 2 (0s)
        [10] => update `phpmyadmin`.cpg143_sessions set time='1145695831' where session_id=md5('35c24e3ad45e42902f64a68ba5eb3b9e9da9b013bf4ed0cd6fc879ffce90501f'); (0.001s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 2 (0.001s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-22 08:50:31' (0.001s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='24.99.14.26' OR ip_addr='24.99.14.26' OR user_id=2) AND brute_force=0 (0.001s)
        [14] => SELECT aid FROM cpg143_albums WHERE visibility != '0' AND visibility !='10002' AND visibility NOT IN (2) (0.001s)
        [15] => SELECT category FROM cpg143_albums WHERE aid='2' and (uploads = 'YES' OR category = '10002') (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 2
        [MAX_FILE_SIZE] => 1048576
        [title] =>
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================
    Page generated in 0.611 seconds - 16 queries in 0.014 seconds - Album set : ; Meta set: ;

    even though it says @ critical error access denied
    i have chmod 777 for albums,include
    and  chcon -R -h -t http_sys_content_t /var/www/html/cpg144


    url: http://24.99.14.26/cpg144/index   (i plan to register my domain when its up and running)
    username: muthii
    password: freeman


    am @ the end of my wits here any help will be greatly appreciated:

samnjugu

when i open the album folder as i try upload using my file browser i see the picture trying to upload then after it finishes it goes, there are also a few pics in the album but they dont show up, since at first it would start uploading then give a message file could not be placed. when i check permissions on the albums its 777. i forgot to mention it has no problem creating new albums.

Stramm

you could either try to properly install ImageMagick or use GD2

samnjugu

how do i make coppermine use gd2 since i have already insatlled it


samnjugu

i followed the link you gave me but it doesn't tell me how to tell coppermine to change over to GD since @ install it automatically chose imagemagick but i have both apps GD and imagemagick, and i have been advised for my particular problem i need to use GD to solve it.

So the question in a nutshell is how do i tell coppermine to switch to GD from Imagemagick?

am running a fedora core 4 server.

I have looked but i havent seen a thread covering this, if you have seen such a thread just point me to it thanks.

Stramm


samnjugu

solved thanks stramm, just changed from imagemagick to gd2 and it is working great, so if you have selinux running and you encounter permissions issues with imagemagick change to GD2 hope this helps someone out there. Now i can finnaly rest after a whole week of no sleep.