Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: dcltdw on January 11, 2017, 11:24:14 AM

Title: 2.0.13 install mod fails to upgrade anything
Post by: dcltdw on January 11, 2017, 11:24:14 AM
First, I ran into the "You cannot download or install new packages because the Packages directory or one of the files in it are not writable!" problem.

Fix:
mkdir Packages/temp
chmod 777 Packages/temp
chmod 777 Sources/*

Running the patch installer, it claims to have succeeded.  However, my forum footer still says 2.0.12.

Checking the top of smf/index.php, I can see it's still 2.0.12.
Calendar is 2.0.11
ManagePosts.php is 2.0
Sources/Display is 2.0.11
Sources/Subscriptions-PayPal.php is 2.0.10
Sources/Themes.php is 2.0.12
Sources/LogInOut.php is 2.0.12
Sources/Reminder.php is 2.0.4
Sources/PackageGet.php is 2.0.9
Sources/Subs-Post.php is 2.0.12
Sources/Subs.php is 2.0.12

---

I tried re-running the installer; I get

Quote
This package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

from URL http://evensonglarp.org/smf/index.php?action=admin;area=packages;sa=install;package=smf_patch_2.0.13.zip

---

Checking the error log, I see:
Quote
http://evensonglarp.org/smf/index.php?action=admin;area=packages;sa=install;package=smf_patch_2.0.13.zip
2: fopen(/usr/www/users/dcltdw/evensonglarp.org/smf/index.php): failed to open stream: Permission denied
File: /usr/www/users/dcltdw/evensonglarp.org/smf/Sources/Subs-Package.php

Sources/Subs-Package.php is currently 0777.

---

Any help would be appreciated.  If there's a way to run the upgrade from the command line rather than via the web interface, please let me know and I'll try that, too.
Title: Re: 2.0.13 install mod fails to upgrade anything
Post by: dcltdw on January 11, 2017, 11:28:13 AM
Okay, that's very weird.

I just turned off maintenance mode, and now everything is upgraded?

/giphy I feel like I'm taking crazy pills here!
Title: Re: 2.0.13 install mod fails to upgrade anything
Post by: Kindred on January 11, 2017, 11:53:39 AM
actually, the failure to update actual files is usually due to a host configuration regarding chown (the user that owns the actual files)
Title: Re: 2.0.13 install mod fails to upgrade anything
Post by: dcltdw on January 11, 2017, 11:57:45 AM
I thought that might be the case, but they're owned by me and I'm using my credentials to login via the ftp prompt.  Urrr, I'm assuming that the ftp client then gets the same permissions as me; I'm not actually sure of that or if some OSes restrict that.  I'm on a server using FreeBSD 8.2-STABLE.
Title: Re: 2.0.13 install mod fails to upgrade anything
Post by: Kindred on January 11, 2017, 12:42:31 PM
well, "owned by you" is somewhat confusing at times...


for example... if php is runing as a service, under some circumstances, php is running as "nobody", which means that any files uploaded through php will be owned by "nobody" and attempts to change files by script will be actions performed by "nobody"


this is different from ftp or your cpanel user...