<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2011://24/tag:forums.movabletype.org,2010://24.19354-</id>
  <updated>2011-09-01T02:20:24Z</updated>
  <title>Comments for MT upgrade from 4.24 to 4.261 fails</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2010://24.19354</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=19354" title="MT upgrade from 4.24 to 4.261 fails" />
    <published>2010-01-25T02:46:05Z</published>
    <updated>2010-01-25T18:40:46Z</updated>
    <title>MT upgrade from 4.24 to 4.261 fails</title>
    <summary>OK, so I did an overwrite install of 4.261 over 4.24. I grabbed the MT-4.261-en.zip from http://www.movabletype.org/downloads/archives/4.x/ and copied it over my MT 4.24 installation. I hit mt.cgi adn was prompted to upgrade. Great. Then the upgrade crashes at &quot;Upgrading...</summary>
    <author>
      <name>salguod</name>
      <uri>http://www.salguod.net</uri>
    </author>
    
    <category term="Installation" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>OK, so I did an overwrite install of 4.261 over 4.24.  I grabbed the MT-4.261-en.zip from http://www.movabletype.org/downloads/archives/4.x/ and copied it over my MT 4.24 installation.  I hit mt.cgi adn was prompted to upgrade.  Great.</p>

<p>Then the upgrade crashes at "Upgrading table for as_ua_cache records..." with this error:</p>

<p><em>Error during upgrade: failed to execute statement ALTER TABLE mt_as_ua_cache MODIFY as_ua_cache_action_type varchar(255) NOT NULL: Specified key was too long; max key length is 1000 bytes at lib/MT/Upgrade.pm line 2593. </em></p>

<p>This is oddly similar to an error I had <a href="http://forums.movabletype.org/2009/11/database-wont-import.html">trying to import a MySQL database</a> after converting from latin1 to UTF-8.</p>

<p>So, now my blog is hosed, how do I fix it?</p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19354-comment:36166</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19354" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html#c36166" />
    <title>Comment from Byrne Reese on 2010-01-25</title>
    <author>
        <name>Byrne Reese</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Take a backup of the table: `mt_as_ua_cache`. Then drop it and let MT recreate it during upgrade. This is a brute force mechanism, but it might just get you over the hump. The table in question is for Action Streams and caches user agent requests from what I can tell. I think it is safe to delete as its contents will be reconstituted during the normal course of using the plugin.</p>]]>
    </content>
    <published>2010-01-25T08:04:43Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19354-comment:36176</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19354" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html#c36176" />
    <title>Comment from salguod on 2010-01-25</title>
    <author>
        <name>salguod</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Thanks Byrne.  Sounds simple enough, but I'm pretty green when it comes to mucking around in MySQL.  I only have PHP MyAdmin access, but I assume that I can do what you're saying there, I just need 'fix my DB for dummies' instructions. :-P</p>

<p>Is it possible that I screwed something up in the DB in converting from Lain 1 to UTF8?</p>]]>
    </content>
    <published>2010-01-25T15:13:06Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2010://24.19354-comment:36192</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2010://24.19354" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2010/01/mt-upgrade-from-424-to-4261-fails.html#c36192" />
    <title>Comment from salguod on 2010-01-25</title>
    <author>
        <name>salguod</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>OK, I figured it out.  Pretty simple, browse to the 'mt_as_ua_cache' table in PHP MyAdmin and there's an Export tab and a Drop tab.  After the drop, the upgrade proceeded fine and the table was recreated, as you said.  It's now empty, however, but the proper services are still present in the UI, however.</p>

<p>I did notice that the 'as_ua_cache_action_type' field was varchar(32) and is now varchar(255) after the upgrade.  Perhaps making that change rather than dropping the table would have fixed it?</p>

<p>However, I now have the 'empty blog stats' on the main dashboard screen.  I've seen that on the ProNet, I think, so I can dig there to find the solution.</p>

<p>Thanks Byrne!</p>]]>
    </content>
    <published>2010-01-25T18:40:46Z</published>
  </entry>

</feed>

