I’ve been running my blog for a long time using typo. It’s been running
My server recently crashed and I decided that it might be a good thing
upgrade the blog in the process of restoring everything.
I’ve gotten the old installation directory and a dump of the database
my macbook, and it’s running under passenger there.
So I’ve tried to upgrade it to typo 5.2.
The first problem is that when I ran typo install
It hung endlessly backing up the database. Now since I already had a
dump, and the install process never seems to use the backup, I bravely
commented out the call to back up in the rails-installer-gem.
Now it gets to the point where it’s trying to run the migrations, and it
âžœ ~ $ sudo typo install typo
Installing typo 5.2.98
!!! PID file /Users/rick/typo/tmp/pid.txt does not exist. Not running?
mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to
Checking for existing Typo install in /Users/rick/typo
Reading files from /opt/local/lib/ruby/gems/1.8/gems/typo-5.2.98
copying rails 2.2.2 to /Users/rick/typo/vendor/rails/railties
copying activesupport 2.2.2 to
copying activerecord 2.2.2 to
copying actionpack 2.2.2 to /Users/rick/typo/vendor/rails/actionpack
copying actionmailer 2.2.2 to
Making scripts executable
Database exists, preparing for upgrade
Migrating Typo’s database to newest release
RubyGem version error: actionpack(1.13.3 not = 1.13.6)
(See full trace by running task with --trace)
migrate': Migration failed (RailsInstaller::InstallFailed) from /opt/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:inin_directory’
migrate' from /opt/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:217:ininstall_sequence’
install' from /opt/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/commands.rb:95:incommand’
execute_command' from /opt/local/lib/ruby/gems/1.8/gems/typo-5.2.98/bin/typo:93 from /opt/local/bin/typo:19:inload’
The fact that mongrel stop is failing is unsurprising, since it’s not
running, and it doesn’t seem to hurt.
But I’m at a loss to figure out why rake is failing. It’s not just rake
db:migrate but any use of rake inside the install directory. It seems
associated with that RubyGem version error. But I can’t seem to find
it’s calling for 1.13.6. And 1.13.6 doesn’t seem to be available either
rubyforge or github
$ gem list --both actionpack
*** LOCAL GEMS ***
actionpack (2.3.2, 2.3.1, 2.2.2, 2.1.0, 2.0.2, 1.13.5, 1.13.3)
*** REMOTE GEMS ***
âžœ ~ $ gem source
*** CURRENT SOURCES ***
It would seem that since typo is installing rails 2.2, that a 2.2.x
of actionpack should be the target anyway.