Patch to Version 2.1.2 without FTP

Started by Blue.Box, August 14, 2022, 01:47:54 AM

Previous topic - Next topic

Blue.Box

This is my first patch. But I am stuck. All documented ways to do it run via the web-ui. So the patch will be executed by user _www. The packet manager runs a test of all operations and every step is passed with "successful". But there seems to be problems with some file permissions so I need to enter ftp credentials (which I don't have). So I would need to go through every file one by one or change all permissions at once. That doesn't feel good.
I would have to change all files to writable for _www, but that seems to violate everey security aspect I know. Is there a way I can start the patch as root via the terminal?

Regarding ftp: The string "localhost" should be correct in the field "server" because the patch is already where it needs to be. But the error message is "Invalid Server". Does that mean "localhost" cannot be found? (Same with 127.0.0.1)

Aleksi "Lex" Kilpinen

The idea is to make the files writable temporarily, so that they can be changed, after that you can make them read only again. The FTP credentials are required only to basically do exactly this in a semi-automated way for you.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Blue.Box

Since there seemes to be no way around ftp, I installed an ftp server. Now the patch went through without errors. But with the next click I get this error:

   SMF file version (2.1.1) does not match SMF database version (2.1.2).
   Run the SMF upgrader to fix this.

There is no file upgrade.php in my forum folder. What do I do now? My forum is not usable right now.

Aleksi "Lex" Kilpinen

Exactly what did you try to do to get that error? And is that all you are shown?
To me that would imply that you are trying to update a forum that has already been updated.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Illori

Quote from: Aleksi "Lex" Kilpinen on August 14, 2022, 10:33:25 AMTo me that would imply that you are trying to update a forum that has already been updated.

the files dont seem to have upgraded or some have not. the database was able to be upgraded.

Blue.Box

What did I do?
I was logged in as admin.
I used the packet manager, uploaded the patch that I downloaded before.
After clicking "install mod" I got a list of tests that all were shown as successful, but at the bottom of the page I was asked for ftp credentials. This time I could enter them (I had installed an ftp-server on my ubuntu server). I clicked "install now", and I got a short page without error texts (as far as I know.). I clicked the home button and got the described error text on an otherwise white screen.

What can I do now? What are my options?

Aleksi "Lex" Kilpinen

Probably easiest options would be to go back to a backup, or go for the large upgrade which means overwriting all default files Upgrading SMF
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Steve

Please do not PM me for support.

Advertisement: