Brian Hoyt

502 Error

Vote 0 Votes

*****SETUP*****
- Windows 2008 Server Standard Edition (64-bit)
- IIS 7
- ActiveState ActivePerl - 5.8.9.825 (32-bit)
- MySQL Server - 5.0.51a
- MovableType 4.261-en
- http://www.hoyty.com/MovType/mt-check.cgi
******************
I am having a very similar problem to one a friend of mine had as documented in http://forums.movabletype.org/2009/03/another-502-error-during-blog-entry-post.html and http://forums.movabletype.org/2009/03/502---web-server-received-an-invalid-response.html . Unfortunately he never found a fix and gave up on MT hosting on his own server. I however do not want to give up as I have been running MT fine myself since the 2.x branches.
Sometime this morning I suddenly started getting the 502 error only when posting to my main site http://www.hoyty.com/hoytyweblog/ it is not happening on my other two sites http://www.hoyty.com/htblog/ or http://www.hoyty.com/techedblog/ . I made a post successfully at 11:20 AM EST using Windows Live Writer. But then I tried to make another one at about 12:30 PM and started getting the 502 error. I have made test posts to the other two sites and can verify they both still work. I also tried making a post directly via http://www.hoyty.com/MovType/mt.cgi and it doesn't work. The post will show up in the Entry list but the updating of the html on the site doesn't occur. I can't find anything that changed in the hour or so between posts to explain this behavior and as I said it is only affecting one of the sites managed by this MT install. Any ideas or pointers greatly appreciated.

Reported on Movable Type 4.2

10 Replies

| Add a Reply
  • Is there any additional information in the IIS logs? A sub error maybe 502.1 or 502.2?

  • 2009-06-28 15:49:12 96.244.44.18 GET /MovType/mt.cgi __mode=rebuild&blog_id=2&type=entry-912&next=0&offset=&limit=&total=0&start_time=1246204140&entry_id=912&is_new=0&old_status=1&old_previous=902&old_next=&fs=1 80 - 96.244.44.21 Opera/9.64+(Windows+NT+6.0;+U;+en)+Presto/2.1.1 502 2 3221225725 11154

    This is the entry for the error in IIS logs. Does that help?

  • One other note I just figured out. I can save unpublished fine. When I publish it appears to be updating the archives fine it only fails on the main index page. I can get the attempted published item via monthly archives or direct link, it just doesn't show on front page.

  • There seems to have been a few issues in the past with IIS7 + Perl. This thread on iis.net has a little bit of information on how to debug http://forums.iis.net/t/1147121.aspx?PageIndex=1

  • Well after chasing my tail for weeks on wild goose chases of it being a problem with IIS 7.0, Perl, IIS 7.0+Perl I have narrowed the problem down. It was being caused by a widget called Home Page Widgets Group which is just a colleciton of widgets including Recent Comments, Recent Entries, Recent Assets and Tag Cloud. I then added each one of those four individually and found that it is the Recent Assets Widget that is causing the problem. At this point I have removed that widget since I am not sure how to troubleshoot that widget and what it does. I wish I could have figured this out a month and countless hours of troubleshooting before.

    Oh and in case anyone else every has this happen the error in windows server event log was "perl.exe - Application Error : The exception unknown software exception (0xc00000fd) occurred in the application". Hopefully the finger won't always be pointed at Windows / IIS 7.0 in future.

  • The Recent Assets template would be grabbing thumbnails of image assets. Do you have ImageMagick installed?

  • Yes, from mt-check.cgi:
    Image::Magick
    Your server has Image::Magick installed (version 6.5.3).

  • Another problem that has shown up is Windows Live Writer is no longer working. It was working fine before I started ripping the guts out of Perl + IIS. Now when I try to configure or post from WLW I get this:
    ---------------------------
    Error Connecting to Blog
    ---------------------------
    An error occurred while attempting to connect to your blog:

    Network Connection Error - Error attempting to connect to blog at:

    http://www.hoyty.com/MovType/mt-xmlrpc.cgi

    The operation has timed out

    You must correct this error before proceeding.
    ---------------------------
    OK
    ---------------------------
    The mt-xmlrpc.cgi exists and is in its original state from the 4.261 zip file. I am not quite sure how that file works so I don't know what to look for. I followed the instructions at http://www.movabletype.org/documentation/author/windows-live-writer.html and it made no difference, but WLW was working fine without that before anyway. Perl seems to be working fine now except for this particular page?

  • I have never had to create a WLW manifest, can I check that you are using your web services password?

    mt-xml-rpc.cgi should never respond to a get request for security reasons, only post requests.

    Which authentication mode(s) are you running?

    Anything in the event logs?

  • Thanks to this http://forums.movabletype.org/2010/04/corrupt-assets-cause-internal-error-500.html I was finally able to work around this issue. I switched to GD and the problem is gone. Not sure what the proble is with Magik but it doesn't affect GD. Only two years later finally a fix. I wanted to post this in case anyone else came across it.

Add a Reply

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012