Advertisement:

Author Topic: Nothing happens upgrading to 2.0.14  (Read 537 times)

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Nothing happens upgrading to 2.0.14
« on: September 11, 2017, 06:58:06 PM »
I'm at 2.0.13, or so my footer says.
Admin -> Main -> File Permissions reports Writable for everything in green.
Main -> Package Manager -> Download Packages says that SMF 2.0.14 has been downloaded correctly.
I have mkdir'ed Packages/temp and 777'ed it.
I click on INSTALL MOD and it says that it's already installed.
I go to Installed Packages and hit UNINSTALL, and get
Quote
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

When from the smf/ directory I use
%find . -type f -exec grep -H "2.0.14" {} \;
the only file not in Packages/temp is
Quote
./proxy.php: * @version 2.0.14

Help?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 6,910
  • Too long in the wasteland
Re: Nothing happens upgrading to 2.0.14
« Reply #1 on: September 11, 2017, 10:21:51 PM »
Look in /Packages/backups/, there should be a backup before 2.0.14 patch was installed.  Download, unzip, upload to forum root.

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #2 on: September 12, 2017, 09:47:49 AM »
Look in /Packages/backups/, there should be a backup before 2.0.14 patch was installed.  Download, unzip, upload to forum root.

Didn't fix it -- forum still thinks 2.0.14 is installed.

Is the forum version in the db somewhere?

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #3 on: September 12, 2017, 10:04:56 AM »
Is there a standalone python script that parses the smf_$version_patch.xml and executes the commands?  I'm willing to run that manually on snippets of the xml file to identify where the patch is breaking.


Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 6,910
  • Too long in the wasteland
Re: Nothing happens upgrading to 2.0.14
« Reply #5 on: September 12, 2017, 04:12:14 PM »
Is the forum version in the db somewhere?

It's in _settings table, but you should try to determine what went wrong before tinkering with the database.  Which version do you see in index.php?

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #6 on: September 12, 2017, 04:35:38 PM »
I manually entered in all the changes, and now I'm seeing 2.0.14.
Problem is, I've had to manually edit files each patch, and it's rather time-consuming, so I'd like to find an actual solution.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 47,853
Re: Nothing happens upgrading to 2.0.14
« Reply #7 on: September 12, 2017, 04:37:28 PM »
check the chmod to make sure the server is able to write to the files.

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #8 on: September 12, 2017, 04:41:34 PM »
Dirs are set to 777; files are set to 755.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 6,910
  • Too long in the wasteland
Re: Nothing happens upgrading to 2.0.14
« Reply #9 on: September 12, 2017, 04:55:48 PM »
Some servers block 777 for security reasons.  Dirs-755, files-644 usually works.

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #10 on: September 12, 2017, 05:02:28 PM »
The .php files don't need to be +x ?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,881
    • Arantor on GitHub
Re: Nothing happens upgrading to 2.0.14
« Reply #11 on: September 12, 2017, 05:02:59 PM »
Nope, because they're not run directly.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #12 on: September 12, 2017, 06:15:26 PM »
Excellent, good to know - thanks!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,881
    • Arantor on GitHub
Re: Nothing happens upgrading to 2.0.14
« Reply #13 on: September 12, 2017, 06:22:06 PM »
To explain really briefly, PHP is not like Python or Perl, they're not files that have a call out to an interpreter directly. Apache or nginx are told 'if you get a request for a file that is a .php file, give it to this process to handle and serve the result to the user'.

Since they're done this way rather than conventional cgi-bin style stuff, there's no need to give them +x because they're not being executed, merely handled by Apache or nginx for you. This is also one of the key reasons why PHP proliferated as a thing for shared hosting, precisely because it didn't need the complexity of something like Perl with file permissions at the time.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline dcltdw

  • Semi-Newbie
  • *
  • Posts: 33
Re: Nothing happens upgrading to 2.0.14
« Reply #14 on: September 12, 2017, 06:23:39 PM »
*grin*
Yeah, for me, it was "I dunno, that's a server config thing".

Which probably explains why I'm terrible at DevOps.  ;)