Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

View Poll Results: How do you update Wordpress
I use the auto update 3 33.33%
I manually update the files 1 11.11%
I try the auto update and when it fails I then manually update it 5 55.56%
Voters: 9. You may not vote on this poll

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2011-05-28, 10:19 AM   #1
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Question Updating Wordpress Issues.

Every single time I try to update WP it always fails, usually with a different error and then I have to remove the maintenance file and manually do the update.

Today's error was,
Code:
Downloading update from http://wordpress.org/wordpress-3.1.3.zip…

Unpacking the update…

Verifying the unpacked files…

Installing the latest version…

Could not copy file.: /www/cleoblog.com/wp-admin/css/theme-editor.dev.css

Installation Failed
Not a big deal but annoying. I've tried a few things including CHMOD everything 777 (didn't leave it that way) but nothing I do allows me to auto update.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2011-05-28, 04:39 PM   #2
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
I have WP blogs on 2 hosts, on one host it auto updates just fine on the other one (same as Cleo probably) it always fails. i guess it's just a minor issue on the host's side.
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2011-05-28, 06:06 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
The issue, and I've submitted numerous bugfixes, is that along the way, wp-content gets marked 777, and later plugins/themes write files, wordpress forgets that it should use the FTP layer, and later on everything is pretty much screwed up.

There are two ways to run the machines, setuid (which most companies do) where the apache process runs as the same username as your FTP account. The problem here, is, when wordpress (or any script is compromised), you've given those processes the ability to write over your entire website - every file that you have is able to be overwritten. The alternate way is to run apache in a low-privilege environment - in which case if wordpress is compromised, it is unable to overwrite most of the files.

Somewhere along the line, wp-content was chmod 777 on a system running in low-privilege mode, and some files got upgraded or written to as www-data, then, wp-content was changed back at which point FTP cannot overwrite the files owned by the webserver.

The simple solution, which wordpress has avoided for the last 2-3 years, is a patch that determines what mode it is running on, and, when running in a low privilege environment, uses umask to properly set permissions so that the FTP user can overwrite them.

I've been working on an alternate solution to fix this so that it isn't an issue, but, wordpress assumes that all hosts are running setuid, and doesn't see it as a problem.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2011-05-28, 07:30 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
I understand that you are saying the update fails because my server owns the files instead of me.

And since I don't own them or have admin access I can't chown them back to me.

How come I can overwrite them using SFTP or delete them if I don't own them?

Also kind of related...
Just to see if it helped I tried updating WP via its "FTPS (SSL)" using the same info that I use when I SFTP but I get Failed to connect to FTP on port 21. Is it because it is trying to use the wrong port?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2011-05-28, 08:30 PM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Quote:
Originally Posted by Cleo View Post
Just to see if it helped I tried updating WP via its "FTPS (SSL)" using the same info that I use when I SFTP but I get Failed to connect to FTP on port 21. Is it because it is trying to use the wrong port?
That is because they keep rejecting the umask patch, which would fix that.

we don't support FTPS - but support Secure FTP (which runs over ssh) - FTPS is sort of a painful hack that causes quite a bit more trouble than it is worth.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2011-05-28, 08:34 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
On the plus side I've really gotten to know my WP files because of this and can manually update almost with my eyes closed.

I had a feeling that SFTP and FTPS were two different beasts but wasn't sure.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2011-05-28, 10:39 PM   #7
Maj. Stress
Progress rarely comes in buckets, it normally comes in teaspoons
 
Maj. Stress's Avatar
 
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
I gave up on updating WP. I install it and whatever plugins I need and if it all works leave it alone. The few times I have tried to update have been a disaster so I don't even bother.

One other point on the updates. Sometimes when you update wp some of your plug ins will no longer work until updated.
Maj. Stress is offline   Reply With Quote
Old 2011-05-28, 10:58 PM   #8
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Quote:
Originally Posted by Maj. Stress View Post
I gave up on updating WP. I install it and whatever plugins I need and if it all works leave it alone. The few times I have tried to update have been a disaster so I don't even bother.

One other point on the updates. Sometimes when you update wp some of your plug ins will no longer work until updated.
I don't do much with Wordpress myself, usually only for quick jobs for clients, but I treat my installations the same way.

Sometimes a plugin breaks when WP is updated, and there is no update for the plugin... permanent breakage sucks!
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2011-05-31, 09:37 AM   #9
Nymph
Get me!
 
Nymph's Avatar
 
Join Date: Jan 2009
Location: Lower Alabama-The Redneck Riviera
Posts: 677
Send a message via ICQ to Nymph Send a message via Yahoo to Nymph
I have always done the manual updates. I'm just a hands on kinda girl I guess.
Nymph is offline   Reply With Quote
Old 2011-05-31, 01:02 PM   #10
bDok
bang bang
 
bDok's Avatar
 
Join Date: Mar 2005
Location: SD/OC/LA
Posts: 3,241
Send a message via ICQ to bDok
One server my updates autoupdate with ease. The other server I installed some autoftp plugin and then this allowed things to autoupdate with no problem.
__________________
submit to Nymphotic
submit to Moistlace
bDok is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:33 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc