forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: usafirepixx on November 26, 2006, 02:44:33 am

Title: Permissions Issues
Post by: usafirepixx on November 26, 2006, 02:44:33 am
All of a sudden I am getting this after going into the Batch Add Files option..

Warning: the script can't write in this directory, you need to change its mode to 755 or 777 before trying to add the files !

I went and confirmed with all the albums that need to have the permissions set like this (/include and all the ones in /albums that need it) that the permissions are set that way.

Just to make sure I went ahead and changed em to 755 and then back to 777 with the same result..

I even went into the Config option and reset them to the "factory defaults" with the same result..

Any thoughts/suggestions short of a total re-install?
Title: Re: Permissions Issues
Post by: lamama on November 26, 2006, 03:31:22 am
the only folders that need 777 during batch add are the albums folder.
You have to set them all to 777 (only on some servers 755 will work).

did you take a look at who owns the album folder you're having trouble with?
when you're on your own server and you have created an folder as root (for example), it won't work. you'll have to 'chown' it.
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 03:45:53 am
did you take a look at who owns the album folder you're having trouble with?
when you're on your own server and you have created an folder as root (for example), it won't work. you'll have to 'chown' it.

I'm afraid you have lost me with this reference to who owns this folder im having trouble with.. It does not even let me get that far before this statement appears..and it occurs with every folder..

I go through all three of the directory selection screens, and then when the screen comes up to select a album it is along the top..

Once I try to go the album and where it displays the results it says "click for details or reload".. Once I click on it I get another screen with this result and I cant find any reference anywhere to this "Error executing ImageMagick - Return value: 1"
Title: Re: Permissions Issues
Post by: lamama on November 26, 2006, 04:08:41 am
ImageMagic did work before? Or did you accidently switched to it from GD2?
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 04:11:24 am
ImageMagic did work before? Or did you accidently switched to it from GD2?

Everything was working perfectly until like 3 days ago    :'(
Title: Re: Permissions Issues
Post by: lamama on November 26, 2006, 04:12:18 am
You know about ImageMagic and GD2?
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 04:17:08 am
You know about ImageMagic and GD2?

No, I wish I did so I could solve this on my own LoL
Title: Re: Permissions Issues
Post by: lamama on November 26, 2006, 04:22:44 am
Im just asking because your (second) error message looks like it's related to imagemagic. If you never installed imagemagic, i guess you had GD2 before (it comes with php).

So just try the following:
1) Config page
2) search for "Files and thumbnails advanced settings"
3) search for "Method for resizing images"
4) set it to "GD version 2.x"
5) Save settings.

Try batch add and hopefully be happy.

this is kind of wild guessing, I don't know if the chmod error you experienced could be a side effect of those kind of misconfiguration.
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 04:26:13 am
Im just asking because your (second) error message looks like it's related to imagemagic. If you never installed imagemagic, i guess you had GD2 before (it comes with php).

So just try the following:
1) Config page
2) search for "Files and thumbnails advanced settings"
3) search for "Method for resizing images"
4) set it to "GD version 2.x"
5) Save settings.

Try batch add and hopefully be happy.

I tried selecting both 2.x and 1.x with the same result as soon as you mentioned the possibility of having switched from GD with the same result..
Title: Re: Permissions Issues
Post by: lamama on November 26, 2006, 04:29:42 am
Quote
as soon as you mentioned the possibility of having switched from GD
you should have said it before  :)

Ok, so maybe another one may come up with better ideas.
Anyway: a link to your gallery may be helpful and perhaps a test account too.
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 04:43:12 am
Yeah I guess a link to it would help huh LoL..

http://usafirepix.net

I setup a account on the site using test and test...

Really appreciate you trying to helpme figure this out..
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 06:55:49 am
user/pass didn't work for me !
Please do exactly as suggested under Upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) documentation
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 03:29:38 pm
user/pass didn't work for me !
Please do exactly as suggested under Upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) documentation

Not sure why the user/pass didnt work its still there lol.. Using that documentation (and like most I didnt read all of it lol) heres the return I got..

Error executing ImageMagick - Return value: 1

Cmd line :
convert -quality 80 -antialias -geometry 100x75 'albums/upload/usfs/SantaFeHotshots.jpg' 'albums/upload/usfs/thumb_SantaFeHotshots.jpg'


The convert program said:
convert: unable to open image `albums/upload/usfs/thumb_SantaFeHotshots.jpg': Permission denied.
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 03:42:20 pm
And here is the debug info:

USER:
------------------
Array
(
    [ID] => bcc76d9587df0d1ade42d4c79b86884a
    [am] => 1
    [lang] => english
    [lap] => 5
    [liv] => Array
        (
           
        )

)

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

    [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] => 1
    [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] => 1
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 175
    [pics] => Array
        (
           
        )

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => dXBsb2FkL3VzZnMvU2FudGFGZUhvdHNob3RzLmpwZw==
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.6(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.21
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.2.1.2
Linked Version 1.2.1.2
==========================
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 | /home/usafirep:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 50M | 50M
post_max_size | 8M | 8M
==========================
Page generated in 0.066 seconds - 16 queries in 0.002 seconds - Album set : ; Meta set: ;
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 05:04:29 pm
Use GD instead of imagemagick
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 06:35:38 pm
Use GD instead of imagemagick

OK I switched to GD and left the other settings in place you mentioned earlier and here was the error I recieved that time..

Unable to create thumbnail or reduced size image.
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 08:33:05 pm
upload process working fine ...
here is a test :
http://usafirepix.net/displayimage.php?pos=-1584
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 09:05:31 pm
upload process working fine ...
here is a test :
http://usafirepix.net/displayimage.php?pos=-1584

And that was done with the batch add utility? That is where the issue is coming in at..
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 09:10:06 pm
No it was http upload , but usually batch add should works when http is working
Can you post a deep link to files that you trying to batch add?
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 09:24:00 pm
Sure well use this one as an example..

http://www.usafirepix.net/albums/upload/usfs/SantaFeHotshots.jpg

I have already HTTP uploaded them cuz I needed to get these files up for some departments. I had thought that when HTTP was working Batch should too so when I first had the Batch issue I tried HTTP just to see if it was still functioning.
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 09:36:19 pm
- Use smaller filename
Do you have any other files that you don't upload them with same issue ?
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 09:43:57 pm
- Use smaller filename
Do you have any other files that you don't upload them with same issue ?

Nope..every file results in the same issue..
Title: Re: Permissions Issues
Post by: Joachim Müller on November 26, 2006, 10:33:02 pm
The convert program said:
convert: unable to open image `albums/upload/usfs/thumb_SantaFeHotshots.jpg': Permission denied.
Check permissions as suggested in the permissions section of the docs.

In the future, don't post debug_output unless requested.
Title: Re: Permissions Issues
Post by: usafirepixx on November 26, 2006, 11:46:50 pm
Check permissions as suggested in the permissions section of the docs.

As I stated earlier in this topic the permissions have been checked and verified several times by me..
Title: Re: Permissions Issues
Post by: Sami on November 26, 2006, 11:55:47 pm
Re-check them , you may missed the new uploaded folder
after each folder creation and file uploading (by FTP client) check the new folder permission
Title: Re: Permissions Issues
Post by: usafirepixx on November 27, 2006, 01:10:47 am
Re-check them , you may missed the new uploaded folder
after each folder creation and file uploading (by FTP client) check the new folder permission

After checking and verifying them several times I contacted my host as there had to be an issue at their level as the permissions were the same as they had been all along.

After some checking on their end we have determined their was a conflict on their end no one was aware of and is in the process of being rectified. They are going to have to take the whole site back to a blank site after doing some other modifications on their end. Even though i will now have to re-install it  :o I guess I should be happy I keep full backups here...