coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: caravans on August 18, 2005, 05:46:45 PM

Title: Impossible to move
Post by: caravans on August 18, 2005, 05:46:45 PM
cpg 1.3.3

Search the forum and tried out different given solutions but still the problem is not solved.

Error:
Impossible to move picture.jpg to albums/userpics/10106/ !
File: /home/httpd/vhosts/mysite.com/httpdocs/db_input.php - Line: 267

Troubleshooting:
Checking PHP-config

upload_max_filesize: "20M"
checked

upload_tmp_dir: "no value"
checked
(note: the person who manage my webserver told me that "no value" is the default value and is equal tot "/tmp"

CHMOD:
album 777
album/edit 777
album/userpics 777
(all defined by psadn, not as root)

Did also the "rename "edit" to "edit_old" and create a new edit folder, CHMOD it as suggested and try again"


http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
checked and set config as told

Then made this loggin:
USER:
------------------
Array
(
    [ID] => bf678d16df5a39a6ffb16ba8d1be85d4
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 106
    [user_group] => 2
    [user_active] => YES
    [user_name] => xxxxxxx
    [user_password] => ********
    [user_lastvisit] => 2005-08-18 17:13:40
    [user_regdate] => 2005-08-18 17:11:08
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 3072
    [disk_min] => 3072
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [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] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 0
    [group_quota] => 3072
    [can_see_all_albums] => 0
    [group_id] => 2
    [groups] => Array
        (
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Impossible to move
Post by: Nibbler on August 18, 2005, 05:49:07 PM
Please post a link and test user account as requested in the tutorial.
Title: Re: Impossible to move
Post by: caravans on August 18, 2005, 05:56:44 PM
www.mysite.com*

user: guest
password: testuser

group: registered

*edited this because it's no more need to test.
Title: Re: Impossible to move
Post by: caravans on August 18, 2005, 10:18:55 PM
Here is some extra info:

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.3
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
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.2.1.1
Linked Version 1.2.1.2
==========================
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/caravanalbum.nl/httpdocs:/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 | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.068 seconds - 14 queries in 0.007 seconds - Album set : AND aid IN (-1)
Title: Re: Impossible to move
Post by: Joachim Müller on August 19, 2005, 07:50:28 AM
@supporters: Confirming error on upload with known-good file and all settings as requested in the tutorial.
@caravans: Did you try CHMODing to 755 instead of 777?
Title: Re: Impossible to move
Post by: caravans on August 19, 2005, 09:32:05 AM
Set CHMOD to 755

albums
albums/edit
albums/userpics
include

No changes, error keeps the same.
Changed CHMOD back to 777

More troubleshooting

Find out that users after a certain date (9 june) cannot upload. Users that are registered before that date don't access "the impossibele to upload" problem. Upload works fine for them. After 9 june there was a servermigration (from dedicated server tot dedicated server). Is there a problem in serversettings (PHP-config) as not discussed sofar?

Note: when I entered the problem just some days ago, cpg 1.3.2. was installed. First I did a upgrade to 1.3.3., according to the instructions in the online documentation.
Title: Re: Impossible to move
Post by: Joachim Müller on August 19, 2005, 09:59:03 AM
OK, let's make sure then that your file versions are OK. Use versioncheck.php to verify you have replaced all cpg1.3.2 files with the ones from cpg1.3.3 and report back.
Title: Re: Impossible to move
Post by: caravans on August 19, 2005, 10:52:15 AM
Versioninfo:

You have currently installed: 1.3.3

CHECKBOXES = CHECKED
show optional folders/files
show mandatory files
show additional information
show file versions
show folders/files with errors only
coppermine is installed in the webroot
show folder permissions

SUMMARY
Total files/folders checked:      228
Mandatory files missing:    0
Optional files missing:    48
*Files left over from outdated Coppermine version:    1
Outdated file versions:    0


*anycontent.php   1.3.2  ?    1.3.3

Optinal missing files = not installed themes

Note:
albums
albums/edit
albums/userpics
include/

are all reported writable
Title: Re: Impossible to move
Post by: Joachim Müller on August 21, 2005, 02:16:59 PM
hm, not sure what to recommend... Anyone else has got an idea?
Title: Re: Impossible to move
Post by: Serapis on August 21, 2005, 05:16:43 PM
Quote from: caravans on August 18, 2005, 05:46:45 PM
Did also the "rename "edit" to "edit_old" and create a new edit folder, CHMOD it as suggested and try again"

I tested the upload with a known good file and got the same error message.

One suggestion would be to to the same from the quote with Ur userpics folder, since the errror message appears there.
Rename your 'userpics' to e.g. 'userpics_old', copy the content of 'userpics_old' to 'userpics'.
If this does not work, then move on to the subfolders and do the same procedure. ALways doublecheck the permissions of  the newly created files and folders.

At least it helped my with a different problem, where no solution was in sight !


Serapis
Title: Re: Impossible to move
Post by: caravans on August 21, 2005, 10:06:39 PM
After renaming the latest userpics folder en created a new one with CHMOD 777 upload did work for that folder/user!

Did it again on another "problem" folder and the result was the same: upload did work.

But... After creating a new user the problem is back :(

It is no option to edit the userpics folder everytime a new user registers.

What next? 
Title: Re: Impossible to move
Post by: Serapis on August 22, 2005, 12:39:08 AM
Hmm, that sounds familiar to me and I didn't find rhe reason yet.
I doubt it is sth. regarding to coppermine, since it seems to be a issue of access rights.
It could helo to ask Ur hoster to CHOWN the 'root' folder for you. wiht root I mean the homefolder of Urs and all subdirectories.
That may help. At least I hope so :/

Serapis
Title: Re: Impossible to move
Post by: caravans on August 23, 2005, 07:22:43 PM
CHOWN did reset all folders to the correct user:mysite and group:psadn.

After a new user has registered, accessrights (userfolder) are set to  user:apache and group:apache
The upload problem is back for that specific userfolder.

What next?
Title: Re: Impossible to move
Post by: Joachim Müller on August 26, 2005, 08:28:13 AM
then everything should be owned by apache. This is a matter of improper server setup, ask your webhost for support.
Title: Re: Impossible to move
Post by: caravans on August 26, 2005, 01:26:07 PM
It's clear now. I'll just have done a request to change the serversetup, according to your suggestion.

Just received feedback that serversetup has been changed.

Everything is working fine now!

Thankz for helping me out to capture the source of the problem.

Topic closed