cancel
Showing results for 
Search instead for 
Did you mean: 

Security patch failage what did I do wrong?

Security patch failage what did I do wrong?

So I requested ssh access via my host...they granted me it.

 

I then ftp'ed the security patch to my server root directory.

 

I started up an ssh session (using putty),

 

I then entered the command....

 

 sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh

 

but got a few lines of errors...

 

PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 25: wc: command not found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 25: ((: > 0 : syntax error: operand expected (error token is "> 0 ")
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 32: which: command n ot found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 33: which: command n ot found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 34: which: command n ot found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 35: which: command n ot found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 36: which: command n ot found
PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: line 38: PATCH_SUPEE-5344 _CE_1.8.0.0_v1-2015-02-10-08-10-38.sh: command not found
ERROR: "/app/etc/" must exist for proper tool work.

 

now to my untrained eye...it was a  fail?! (I've never patched like this before, so don't know what to expect)

 

What should I have done?

3 REPLIES

Re: Security patch failage what did I do wrong?

Hi @peskywinnets@theMageComp put together a post to help install: https://magecomp.com/blog/how-to-install-magento-security-patches/

 

Hope that helps!

 

SECURITY DISCLAIMER: The above website contains Magento Security Patch files which are self-hosted by the user and as such unsafe. Magento Forum advise all users to only download patch files from the official Magento Downloads page. 

--

Community Manager, Magento
Problem solved? Click Accept as Solution!
Still stuck? Check out our documentation: https://magento.com/resources/technical

Re: Security patch failage what did I do wrong?

The same to you, plz help me.

Re: Security patch failage what did I do wrong?

It failed.

 

You may have one of three issues.

 

The first issue is that the patch file is a shell script and can fail for the following reason.

 

In U/Linux, the line ending character is LF, in MSDOS/Windows, the line ending is a two character combination CRLF.

 

If the file got uploaded and the SFTP client uploaded it in binary mode instead of text mode, it may have been saved as an MSDOS file and will fail with a multitude of errors.

 

The file needs to be run through a utility called dos2unix to fix this issue. Available on SourceForge

 

The second issue is that the command which in that shell script looks for certain Linux command line utilities to make sure they are installed. Take care of the first issue and then post the errors occurring.

The third issue is that this patch must be executed out of the Magento root directory. This is the one that the app/ directory is in. You might already have it there, double check.