Hi,

I just did an svn update to r455 and am having problems migrating.

Firstly, my site (http://typo.robinbowes.com) shows no stylesheet, but I 
guess that is due to the recent changes and I should be able to fix this 
through the admin interace.

When I go to the admin interface, I have no option but to upgrade my db 
schema (from 1 to 7). When I chose "Update database now" I get the 
following error in my production.log:

   NoMethodError (undefined method `find_by_name' for User:Class):

Then, subsequent updates fail with;

   ActiveRecord::StatementInvalid (ERROR:  column "user_id" of relation 
"articles" already exists

This is because the user_id column gets added but the schema version 
doesn't get bumped in schema_info because of the initial error.

I manually bumped the version to 3 and manually populated the user_id 
column.

I'm now at the stage of migrating from schema rev 3 to schema rev 7.

When I choose "Update database now" I get the following error in the log;

   ActiveRecord::StatementInvalid (ERROR:  relation "page_caches" does 
not exist

The sidebars table gets created. but not populated with any data.

The schema is at rev 3 still.

I manually bumped the schema to rev 4 and tried again:

Migrating to AddCacheTable (5)
Migrating to AddPages (6)
Migrating to AddPermalink (7)

These seem to have worked OK.

I can now access the admin screen OK and all the admin functions seem to 
work fine.

However, I'm still not seeing a style sheet on my blog.

I tried the fix suggested in a previous post to this list:

"You need to save your general settings once and then pick 'activate' 
in the themes admin next to the only available theme 'azure' to make 
sure your blog has all the settings it needs. We're working on a more 
friendly solution here."

This didn't seem to work - I still get no stylesheet.

Looking in the log, it's trying to access /stylesheets/azure.css but I 
get the following log:

ActionController::RoutingError (Recognition failed for 
"/stylesheets/azure.css"):

There is no  azure.css in public/stylesheets/ so I copied azure.css 
there and bingo! it all seems to work now.

I hope this is useful feedback!

I've also posted an edited version of this at:

http://typo.robinbowes.com/articles/2005/07/26/upgrading-typo-from-svn-bleeding-edge-stuff

Incidentally, how do I get this to appear on the front page?

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?      
From scott at sigkill.org  Tue Jul 26 13:57:01 2005
From: scott at sigkill.org (Scott Laird)
Date: Tue Jul 26 13:51:30 2005
Subject: [typo] Upgade errors
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>


On Jul 26, 2005, at 9:58 AM, Robin Bowes wrote:

> Hi,
>
> I just did an svn update to r455 and am having problems migrating.
>
> Firstly, my site (http://typo.robinbowes.com) shows no stylesheet,  
> but I guess that is due to the recent changes and I should be able  
> to fix this through the admin interace.
>
> When I go to the admin interface, I have no option but to upgrade  
> my db schema (from 1 to 7). When I chose "Update database now" I  
> get the following error in my production.log:

> http://typo.robinbowes.com/articles/2005/07/26/upgrading-typo-from- 
> svn-bleeding-edge-stuff
>
> Incidentally, how do I get this to appear on the front page?

You're seeing a couple different bugs here.  First, you have stale  
page cache entries that didn't get removed automatically by the  
upgrade.  Do 'rm -rf public/index.html public/articles' and then you  
should be okay.  The migrations *should* have fixed this for you, but  
clearly you had problems with them.  I've seen a number of people  
with similar issues on the IRC channel; I think we're going to have  
to spend a bit of time testing the upgrade process to make sure that  
it's as trouble-free as possible.  One thing that we need to add is a  
requirement for the user to restart their fastcgi servers after  
finishing the migrations; without doing that, the migration won't be  
complete and random errors will occur.

 From where I'm sitting, this is the last really big thing between us  
and 2.5.


Scott
From jason at jasonhoffman.org  Tue Jul 26 14:20:59 2005
From: jason at jasonhoffman.org (Jason Hoffman)
Date: Tue Jul 26 14:15:07 2005
Subject: [typo] Themes in Typo - fundraiser
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL 
PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>


On Jul 26, 2005, at 8:26 AM, Robby Russell wrote:
>>
>> Dean did this recently with http://textgarden.org/
>
> typogarden.com|org is availab.e ;-)
>
> I'd be happy to also offer some hosting, $$ towards an iPOD.
>
> I <3 Typo. :-D
>
> -Robby


That's perfect. I think that's a good project for Robby to get  
started and hosted?

- J
From tobias.luetke at gmail.com  Tue Jul 26 14:41:28 2005
From: tobias.luetke at gmail.com (Tobias Luetke)
Date: Tue Jul 26 14:36:30 2005
Subject: [typo] Upgade errors
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

> One thing that we need to add is a
> requirement for the user to restart their fastcgi servers after
> finishing the migrations; without doing that, the migration won't be
> complete and random errors will occur.

I think we could traverse the ObjectSpace and call
reset_column_information for all objects which respond to it. This
might fix the issue.

>  From where I'm sitting, this is the last really big thing between us
> and 2.5.

Absolutely. 

-- 
Tobi
http://www.snowdevil.ca - Snowboards that don't suck
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog

Reply via email to