Edventures in Normalcy

sudo: must be setuid root

Posted by Rose Bush on March 15th, 2010

to fix:
when logged in as root, run this:

Common example errors:

Unable to authorize payment: The certificate chain did not validate, no local certificate found, Cert Path = c:\pfpcerts\, Working Directory = c:\windows\system32\inetsrv

or

Result Code: -31
Response Message: The certificate chain did not validate, no local certificate found, Cert Path = c:\pfprocerts, Working Directory = c:\windows\system32\inetsrv
Transaction ID:
Auth. Code:

or

I’m Sorry, there was a problem with your transaction.

Transaction Result:
The certificate chain did not validate, no local certificate found, Cert Path = certs, Working directory = c:\winnt\system32\inetsrv

Well, as of January 4, 2010, your Payflow Pro SDK expires permanently and your payment processing will stop if you are using an outdated SDK. You can see this on their website here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/gateway_update_FAQ

Depending on the method or scripting language you are using this can be an easy or difficult thing to get around. As I am Miva Merchant savvy, If you are using Miva Merchant 5, run your updates. If you are running Miva Merchant 4, you can get an updated version of the Payment Module and instructions for instillation at https://support.mivamerchant.com/supportsuite/index.php?_m=downloads&_a=viewdownload&downloaditemid=46&nav=0,12. Zen Cart forums make reference to this change here http://www.zen-cart.com/forum/showthread.php?p=823250#post823250. Anyway, if you have a hand coded cart, visit the top link I supplied for more information. If you find specific articles or information for specific carts, please comment. I will gladly update this post.

Manually resetting the admin password on a Plesk Linux server

Posted by Rose Bush on January 2nd, 2010

This can be accomplished with the ch_admin_passwd binary.

./ch_admin_passwd: Utility to set Plesk adminstrator’s password

Gets password from the environment variable PSA_PASSWORD

Password should be from 5 to 16 symbols and should not contain login name,

whitespace, quotes or national characters

Usage: ./ch_admin_passwd

-h, —help

display this help and exit

We must export the variable before running the binary. We will unset the variable when we are done.

This echos out: newpass

This echos out: newpass

How to Decrypt/Encrypt a web.config

Posted by Rose Bush on November 28th, 2009

Per here:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=185&AspxAutoDetectCookieSupport=1

In the command prompt cd to:
: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Or the specific path for your version,
Encryption:

Decryption:

Notice the change in tag from pef for encryption and pdf for decryption as that messed me up.
In my example I had to run:

After restarting ColdFusion, and seeing it not a performance issue, I realized the file I was trying to save to was to a folder that did not exist.

One of two things, either the patch was not applied\incorrectly applied, seen here:

http://www.bennadel.com/blog/1289-ColdFusion-8-0-1-Bug-Coldfusion-Image-ImageWriter-ImageWritingException.htm

with CF stopped

or the path is wrong in the code, per our example:

http://www.hosting.com/support/cfusion/captcha/

destination=”tmp/readme#tc#.png”

being run from example.com/subfolder

would result int he file trying to be written to:

C:\Websites\userdir\subfolder\tmp\

Runtime error in lib/db.mvc @ [00000164:00000024]: lib/dbprim/stores.mv: Line 202: MvOPENVIEW: mysql_stmt_bind_results: Using unsupported buffer type: 246 (parameter: 27)

I run into this one once in a while and always have to remember to upgrade the MySQL driver to the latest.

When performing the callback, Google gets the following error:

401 – Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

I have not found the direct solution, but the workaround I have come up with is to put the page it calls back to in its own directory and disable basic authentication on that folder. The call back then completes. I recommend using a randomly generated folder name to prevent it from being stumbled upon by nefarious individuals.

Server Error in ‘/’ Application.
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

This error can be cleared up in most cases by putting a machine Key (and associated details) into your web.config. If need be, you can generate a set of these details here:

http://aspnetresources.com/tools/keycreator.aspx

Microsoft VBScript runtime error ‘800a0046’
Permission denied

I recently had this error. Turns out the user running the script did not have write permissions to C:\Inetpub\mailroot\Pickup so the email could never be generated. I used Filemon to find this out: http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

Copyright © 2026 Edventures in Normalcy. All rights reserved.