Showing posts with label errorprocessing. Show all posts
Showing posts with label errorprocessing. Show all posts

2013-07-22

Godaddy WIMP Wordpress Web.Config Error To LAMP Parent Directory Writeable?

Normally this screenshot would be posted over in Errorprocessing.com, but since this error wasted many hours, I'm posting it here.

This is how it started -- seemingly just an ASP.NET or hosting configuration issue.

Godaddy Windows Shared Hosting: Error Thrown after Wordpress Install

Configuration

IIS7.ASP.NET 4.0/4.5, MySQL (Win), PHP 5, root D:\Hosting\7207009\html

There have been eight back and forth emails and three phone calls so far with Godaddy support. As has been noted elsewhere, Godaddy support is more conversant with Linux Wordpress than with their IIS - Windows platform, though this is not reflected in anything official.

A significant benefit with Godaddy (and other web host firms) is that they perform the function of installing the application through the use of wizards. When it works -- and most of the time it does work, even in Windows -- it's a timesaver. I'm conversant with self-installing, and am a former virtual host customer of Godaddy's, but found that one inherits unwanted system administration duties along with the benefits of having root access.

This error appeared after the Godaddy wizard that installs Wordpress on Windows, which has this menu tree:
Account | Web hosting | Hosting Account selection (by domain) | Applications | Wordpress | Install
The subject hosting account already had two successful Windows installations of Wordpress. One of these
Godaddy "Wordpress Is Ready" Email
continues to work OK (launching after a painful wait of 20 seconds before the home page displays, but that's a different issue), as did the previous installation.

There is no visible web.config file, either via ftp or the file browser provided in Godaddy's hosting control panel, though obviously one (or something that is a proxy for one?) is in play based on the error being thrown. That includes both the root of the hosting site (\) or the subfolder where Wordpress was installed (\foo).

To sum up the current status, the wizard installs an inaccessible version of Wordpress that cannot be browsed from the post-installation link given by the notification email sent by Godaddy.

Tips on the web? Most deal with fixing Windows permalinks on Wordpress, which is an issue one encounters after the administrative interface is breathing.

What Was Tried? 

  1. Uninstalling an install at the root
  2. Reinstalling at a subfolder (but tested at the root (see #10).
  3. Putting a dummy web.config at the root 
  4. Installing the rewrite-enabled web.config recommended at Amixa.com. 
  5. A test testphp.php file to verify php configuration setup on this virtual site. It failed with "No input file specified". This typically means IIS and PHP aren't collaborating, but in fact PHP runs on the operational site, so this error was misleading.
  6. Changed php.ini so that doc_root pointed to the physical root of this site. No change.
  7. Reviewed "Enabling per-site PHP settings."
  8. Checked IIS Management, and the virtual server site had not been set up. One was created. The application pool was manually recycled. No effect (but see #10).
  9. A CSR suggested enabling error display (as suggested here, errormode = "Detailed"). This had no effect. It was as though a local web.config was not being accessed.
  10. When verifying that HTML could be read on the site, this also failed. This suggested a DNS setup problem. That was a key insight for this phase of the solution.
  11. The primary domain was changed to an idle domain name. This created a new Wordpress instance that was one of two secondary domains on the hosting account.
  12. Permissions on the entire Wordpress folder were changed to read/write.
  13. The application pool for the hosting account was recycled.

Status After Round 1 of Remediation Attempts

At this stage, the "primary domain" was abc.com, but the Wordpress instance of interest was in a subfolder. Despite using the wizard, and probably for good reason, the domain continued to point to the root even after the Wordpress install and re-install. Accordingly. the site must be accessed at:
http://abc.com/subfolder/wp-admin
OK. The original web.config issue remained unsolved when Wordpress was installed to the root, but this issue is masked when Wordpress is moved to a subdirectory. This was probably working after the reinstallation of the Wordpress instance, but I erroneously tested it from the subfolder URL.

That change resolved the web.config issue for the secondary domain. As noted. the primary domain throws the web.config error, but that's tolerable.

But . . .

Now it was not possible to upload any images to the wp-content\uploads folder. See below.


Wordpress Upload Permissions Error (Windows - IIS - MySQL - PHP)

Error message:
has failed to upload due to an error. Unable to create directory abc.com/uploads/2013/07. Is its parent directory writable by the server?
The browser uploader likewise failed with the same message.

Did ftp work? No problem to ftp to the folder, but that was no help. It showed that ftp had write permissions, but does not allow Wordpress the chance to index and otherwise manipulate the images as needed to stick them in a post.

I unsuccessfully implored the Godaddy CSR to have "Advanced Hosting" look at the event logs, which might be tedious as the error is diagnostic rather than serious, but that could help determine the cause of the permissions error. (In retrospect, it is unclear whether this would have helped much.)

There are also other solutions (see References below) that were tried with some success by other Windows Wordpress users (unclear how many of these were on hosted accounts), but since the conversation was had with a Tier 1 rep who was relaying information to the Advanced Hosting resource, I did not try to suggest them.

Second Strategy and Results

The primary domain was changed to an idle name, then reinstalled a second time at the subfolder. This left the primary domain with the original web.config error.

Unfortunately, media uploads are now not possible, even though there is another secondary domain running Wordpress in a parallel folder on this hosting account whose uploads work fine.

After seven overall tickets with Godaddy support, their last recommendation was to "Contact Wordpress" or move the hosting to Linux instead of Windows.

Move to Linux and Resolution 

The move to Linux from Windows was requested of Godaddy's hosting ops on a Friday and completed on the following Tuesday. There were some unexpected twists.

  • There were three domains associated with the hosting account; one of these was the pesky one described in this blog post. The other two domains were working OK under Windows, but Godaddy only restored two domains to working order.
  • The Wordpress instance with the problem was erroneously attached to the wrong subfolder, which made testing a big confusing until I noticed the mistake.
  • Here's the big twist. Once the folder issue was identified, the identical problem recurred -- the exact error message ending with the nagging query ". . . Is its parent directory writable by the server?"
Following this odd finding -- that the presumed Windows problem moved intact to Linux -- permissions on the folder tree were reset (step 12 above), this time under Linux. The result was the same. It had no effect.

Clearly it was time to return to Google Search for more findings (i.e., other user frustrations), since this now seemed to be a Wordpress, rather than an operating system-depending issue. Eventually what turned up is what I'm calling the "Morigirth Fix" (see below). It involved toggling a boolean in Wordpress Media Settings.

Most Wordpress media settings screens look like this, shown at Wordpress.org.

Wordpress Media Settings Screen: Default Settings

Note the boolean:
"Organize my uploads into month- and year-based folders." 
To "fix" the permissions error, this was unchecked, and the problem was resolved.

Wordpress seems to want to reset this flag to "on," because the next day it was reset to true. Uploads are working fine.

Analysis 

This was a Wordpress issue whose solution should be suggested as part of the error thrown. In addition, the web host is likely to have seen this before, but hasn't created a knowledge base record for it. I am unclear as to the original cause for the problem, but it is clearly in the Wordpress - php interaction with the file system.

Suggestions by Others 

This section of the post is for reader use. None of these suggestions worked directly -- this time -- but may be useful for others with similar symptoms.
  • Tweaks to web.config Tip shows use of Microsoft Platform installer (using IIS), not applicable here, but the author provides a glimpse of the web.config tweaks made for rewrite rules. In the example shown, web.config is placed in the subfolder.
  • Failure to Detect IIS 8 There's a failure to detect IIS 8 in a Wordpress php file, but the suggestion had no effect on this issue.
  • Review IIS Authentication This post suggests changing the IIS7 authentication. According to them, “Anonymous Authentication” was set to a user that did not exist. So they changed it to use the application pool identity. It is unclear to me whether the Godaddy data center (1) has that option given their shared hosting setup, and (2) tried it when it was suggested.
  • Review temp directory settings This post suggested changing permissions on the PHP temp directory, but since a different instance on the same hosting account worked, it was not attempted. A variation on this was also suggested: give the ‘IUSR’ account modify permissions on the WindowsTemp directory and restart IIS. This idea was similarly phrased by another user as "Changing permissions on windows/temp so that IIS_USR could access it." That was not tried, either, as access to this folder is not permitted on shared hosting accounts.
  • The "Morigirth Fix" This is the Wordpress setting that resolved the permissions problem presented in this post.
  • Set Media Loads to Use One Folder This forum post suggests that it is possible to unstick the boolean.


2010-05-28

Yahoo! Mail Problems (and CRM Workflow) Worsen

Sometime over the past couple of years, I sought out Yahoo's customer service for premium mail users.  The problem at that time was an annoying false positive from the Norton AV scanner Yahoo was using.  It got me nowhere.  Because of that experience, I avoided contacting Yahoo service for ongoing problems with mail search.  But this week I decided I needed help, as I was unable to sort through the mail volume that had accumulated without using the search / filtering facility. 


This time, there seemed to be better, more courteous staffing in greater numbers.  As for effectiveness -- well, read on.


As the screenshot shows, the mail service would throw an error when asked to return more than headers for a sizeable search result (say, a few thousand emails). I'm now on the seventh contact with the Yahoo Mail help crew.  It seems that level 1 support has been given one tweak they are permitted to try before escalating.  For 2-3 of the calls, that's pretty much what was attempted, to no avail.  Once it was escalated to "Engineering," the problem seemed to get worse, not better.  After contacting Level 1 support again, as of this afternoon, I was told to try again in 24-48 hours (but only I had received a "We fixed it" message from Engineering). 


I'll be back on the chat line as suggested, but I thought I'd mention this error in case others have run into it.  There are some variations, but the symptom is either that the search fails, or that the result set will not fully load;  all the emails must be "retrieved" before one can, for example, move them to a folder. 


I'll update this post once it's resolved.


Error #5:
Method: SearchMessages
FAULT: SOAP-ENV:Server.MailboxOpenFailed.Busy
DESC: Error opening mailbox: mailbox busy
VER: 2.10.0 Build:374.4 04/28/2010 02:05 AM
HOST: cg1.c902.mail.ac4.yahoo.com
CBK: Converting circular structure to JSON
REQ: {

Update ~ noon eastern 30 May 2010:  Same CBK error, but now Error #20.  I.e., still not working. 


Update ~ 8 July 2010.  Still not working.  There have been more than 15 contacts with Customer Service and/or Engineering, including three purported Engineering escalations.



2009-07-08

Discovered: Source of Mysterious Musical non-POST Beeps

It's emblematic of how far we haven't come: signalling computer system problems with beeps instead of intelligible messages.

Yes, I know the excuse - no UI, compatibility with older hardware, and so on. But consider this brief story.

Take a Windows XP machine with Intel D865GBF motherboard. Running fine since 2006. The plan is to convert the boot disk to RAID 1. An existing controller already running in the machine was suitable for the task. Its firmware was out of date and incompatible with the Windows-based "PAM" management tool for the controller. The firmware was updated, the PAM applications and Windows driver to accompany moving from JBOD to RAID 1. The drives were updated to RAID 1 and files restored to it preliminary to making it the boot disk.

Windows booted fine from the old boot disk. After about two minutes, a repeated low - high beep pattern began - using a perfect fourth or fifth. No POST codes matched this symptom. The Intel desktop tools showed nothing out of the ordinary with power levels, temperature or fan settings. The pattern was ceaseless. Some POST codes seemed somewhat plausible, suggesting that the CPU detected a problem with itself, but under light test the O.S. behaved well except for the beeping. The system was rebooted and memory tests run for an hour. No errors were detected.

After much investigation and fruitless web searches, the culprit, if it can be called that, turned out to be the presence of the Promise TX2300 controller, which had been in the system for years. When it was removed, the beeping stopped. The ultimate cause is unclear - possibly there was an indirect consequence of changing to RAID 1, but there were no messages anywhere, not in the event log or in the directory where the Promise driver was installed.

The absurdity of troubleshooting beeps with the full Windows UI present should not be lost on anyone.

2009-06-26

Win "Access Denied Write Protected" Caused by Simple File Sharing Feature


As with many computer-related symptoms, the long-lived expression "Access Denied" has multiple causes for Windows users. A review of several alternative and equally plausible causes did not fit my scenario, hence this post.

What was puzzling about this incident was that it occurred while a large backup was being restored. The backup originated on a RAID subsystem. The controller card and drives were moved to a system after a machine had been put out to pasture. The restore using a simply copy-and-paste operation was moving along nicely until certain files and folders exhibited the "Access Denied" messages shown in the screenshots.

To solve this version of the problem in Windows XP at least, two Microsoft tips from the Microsoft.com maze are needed.

The first tip disables Simple File Sharing. Simple File Sharing does not allow for changing ownership of files and folders, which is essential to the cure. It's obvious that Simple File Sharing is in effect if the Windows Explorer does not have a Security tab to allow for changing ownership. XP Pro is needed in order to disable Simple File Sharing.

The second Microsoft tip, which is only helpful after Simple File Sharing has been disabled for the system, is to change ownership to a local administrator account. Once this has been done, file attributes can be changed using the ATTRIB command. (While a single recursion through all subfolders should reset everything, this didn't seem to work if certain source directories had a mix of different owners and permissions; this was not investigated further).

An unrelated, but possibly useful note, is that restores of this kind, that do not use native Windows backup file formats, work best with Robocopy, which will restore folder and file timestamps as originally recorded. Lastly, it should be noted that Robocopy may not copy files such as PST that are thought by it to be in use.

2007-02-06

"Sorry! We could not process your data due to a loss of session data"


MediaWiki users have apparently seen this message fairly often, based upon its prevalence -- intentional or otherwise -- on web sites. Less often appearing is commentary on cause.

In at least some of the cases, this is actually a PHP-related problem rather than a MediaWiki problem per se. Usually it's because the php.ini file doesn't have a sensible and writeable directory for the session_save_path that is available to the webserver. Use phpinfo() to learn which php.ini is in use, correct the directory to one that's writeable and accessible to the browser, then restart the web server - usually Apache (not the computer).

This will appear at errorprocessing.com at a later date.

2006-10-26

Open Source and the Easter Egg

My latest task was to be an easy one -- building the Apache - PHP stack for Windows 2003. "Easy," you think. "People are doing this thousands or hundreds of times a day." Very wrong, and yes I did know better.

The error I faced was this one:
  • Cannot load [path]php4apache2.dll into server. The specified file cannot be found.
Search on this error message and you'll see hundreds of instances dating back to 2004.

For the solution I attribute this Devside.net careful posting and bailout.

For a more animated expression of dismay, keep an eye out for the launch of errorprocessing.com. In the meantime, allow me to observe that in the relatively controlled environment of a Windows server, configuration management for the LAMP stack should be the responsibility of the folks at php.net. The information given there provides a hint, but not the solution.

And then there are dozens of misdirected suggestions, such as removing quotes around the pathname . . . This is not about assembling working components into working order. It's an Easter egg hunt, and one no self-respecting child would tolerate.