Since upgrading to 5.0.46, and then 5.0.47, I'm getting the following errors:
_____ An error occoured at www.photographydirectory.or....org/admin/autoupgrade.php on 2009-05-20 06:56:11. Please relay this data to support. Error #2: 'ftp_chmod() [function.ftp-chmod]: CHMOD 777 temp: Operation not permitted' in /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php on line 162.
Step 1 of backtrace: File: /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php Line: 162 Function: ftp_chmod Arguments: Resource id #30 511 temp
Ok, but I'm not an expert, what can I do in this case? Can I continue to use and update the directory without problems or sooner or later the site will not work?
If it really hadn't been able to write to the temp directory, it wouldn't be able to start the upgrade process and would still show you as being on the previous version number. So I guess it must be some sort of situation where it tried to chmod the directory via FTP even though it was already owned by apache and so didn't need chmoding. In that case, there's no problem. I just don't see how the situation arises.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Errors in Autoupgrade
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Hello!
Since upgrading to 5.0.46, and then 5.0.47, I'm getting the following errors:
_____
An error occoured at www.photographydirectory.or....org/admin/autoupgrade.php on 2009-05-20 06:56:11. Please relay this data to support. Error #2: 'ftp_chmod() [function.ftp-chmod]: CHMOD 777 temp: Operation not permitted' in /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php on line 162.
Step 1 of backtrace:
File: /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php
Line: 162
Function: ftp_chmod
Arguments: Resource id #30 511 temp
Step 2 of backtrace:
File: /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php
Line: 553
Function: ftpchmod
Arguments: ../temp 777
Step 3 of backtrace:
File: /var/www/vhosts/photographydirectory.org/httpdocs/includes/f ilefunctions.php
Line: 540
Function: chmoddirectoryfor
Arguments: ../temp/current.tar.gz
____
Even though I didn't test the whole site, it anyway seems to work correctly.
Could you please check?
Thanks
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Who's the owner of your /temp/ subdirectory of where you've installed WSN (is it your ftp user, or 99/apache), and what's the chmod value on it?
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
The owner is apache and the chmod is 777
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well, it says the FTP user you've supplied doesn't have permission to chmod the directory to 777.
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
Ok, but I'm not an expert, what can I do in this case? Can I continue to use and update the directory without problems or sooner or later the site will not work?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If it really hadn't been able to write to the temp directory, it wouldn't be able to start the upgrade process and would still show you as being on the previous version number. So I guess it must be some sort of situation where it tried to chmod the directory via FTP even though it was already owned by apache and so didn't need chmoding. In that case, there's no problem. I just don't see how the situation arises.