Typo 4.0.2

I just released Typo 4.0.2. This is mostly a security upgrade; it’s designed to work with Rails 1.1.6, but it also includes workarounds for all of the known Rails 1.1.x security bugs, thanks to Piers Cawley.

In addition, we’ve fixed several bugs in the installer. MySQL users should be able to upgrade from 4.0.0 or 4.0.1 without problems now, fixing a problem with the 4.0.1 upgrader.

Upgrade directions:

Repeat however you installed Typo in the first place. If you downloaded the .tgz or .zip files, then you’ll need to download them again and install them over the top of your existing install. Then run rake migrate and restart your Typo processes.

If you’re using the .gem installer, just run gem install typo and then typo install /some/path to upgrade.

Posted by Scott Laird Thu, 10 Aug 2006 21:11:33 GMT


Comments

  1. Chris Mc 36 minutes later:

    I’m having a problem with upgrading from 4.0.0 using the installer (I installed 4.0.0 with the installer). It is bombing when trying to delete (unlink) a number of template database config files in the /config/ directory. I have never had these files in there, nor do I need them, but their lack of presense is causing much grief for the installer. Perhaps some error handling to keep from bombing the entire install just because it can’t find some files to delete?

  2. Chris Mc 37 minutes later:

    FWIW, I plan to workaround this inconvenience by doing a “dummy” typo install and copying the config files into the “real” /config/ directory.

  3. Scott Laird 40 minutes later:

    Which files?

  4. Chris Mc 41 minutes later:

    That didn’t work out so well either… Where the heck do you find all these files that the installer is trying to delete?

  5. Chris Mc about 1 hour later:
    Deleting 15 files from /var/www/1jiveturkey.com/typo deleting /config/database.yml-pgsql /usr/lib/ruby/1.8/fileutils.rb:1279:in `unlink’: No such file or directory - /var/www/1jiveturkey.com/typo/config/databa se.yml-pgsql (Errno::ENOENT) from /usr/lib/ruby/1.8/fileutils.rb:1279:in `remove_file’ from /usr/lib/ruby/1.8/fileutils.rb:1284:in `platform_support’ from /usr/lib/ruby/1.8/fileutils.rb:1278:in `remove_file’ from /usr/lib/ruby/1.8/fileutils.rb:761:in `remove_file’ from /usr/lib/ruby/1.8/fileutils.rb:540:in `rm’ from /usr/lib/ruby/1.8/fileutils.rb:539:in `rm’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer.rb:228:in `copy_files’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer.rb:226:in `copy_files’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer.rb:120:in `install_sequence’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer.rb:104:in `install’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer/commands.rb:95:in `command’ from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.2/lib/rails-installer.rb:538:in `execute_command’ from /usr/lib/ruby/gems/1.8/gems/typo-4.0.2/bin/typo:38 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load’ from /usr/bin/typo:18
  6. Scott Laird about 1 hour later:

    Chris Mc: try this: gem install rails-app-installer. That should install v0.1.3 of the installer. Then re-run the typo command.

  7. Chris Mc about 1 hour later:

    Well that certainly didn’t paste well… After touching the following non-existent files, I was uble to perform the upgrade (I still think it should not die on unlinking a missing file): /config/database.yml-pgsql /config/database.yml.sqlite /config/mail.yml /config/mongrel.conf /db/converters/mt-import.rb /db/development_structure.sql /installer/rails-installer.rb /installer/rails-installer/commands.rb /installer/rails-installer/web-servers.rb /log/development.log-1 /log/development.log-2 /log/development.log-3 /log/development.log-4

  8. Chris Mc about 1 hour later:

    Sorry, I got it working with the slow workaround I previously mentioned. I had to run the install, find out what file it died on, create that file (as well as every previous missing file), then run the install again… rinse, repeat… until I found all of them. The most current version of rails-app-installer I can find from gem is 0.1.2, and because my install has been updated I can’t generate the error again. I’ll take your word that its fixed. ;)

  9. John about 1 hour later:

    Hey, I had the same issue with failing on unlinks, I modified the rails-app-installer source to put a begin, rescue, end block around the call to rm and it worked.

    Seems Chris Mc and I have all the same problems ;)

    BTW, what do you guy’s do as best practice for keeping installs in subversion? I’ve created a plugin for Picasa for example, and right now I just keep my Typo dir in subversion but it’s a real mess to cleanup after updates.

  10. Scott Laird about 1 hour later:

    FWIW, the only real change in installer 0.1.3 is to ignore delete errors. So that should have fixed your problem. Unfortunately, it looks like Rubyforge has turned mirroring back on, so it’s starting to lag again.

  11. Scott Laird about 1 hour later:

    John: I use svk to keep track of local changes. It’s less important to me now then it used to be, but it works pretty well.

  12. John about 2 hours later:

    Scott: Thanks for the tip on svk, I’ll try it out. I’ve also got everything updated ok now. Thanks for the quick patches today.

  13. kogent about 3 hours later:

    so, since the rails external is still 1.1.5. Are the fixes in typo reflective of the changes in 1.1.6?

    M<><

  14. Scott Laird about 3 hours later:

    Oops–we missed the external in the tree. I knew there was a reason that I disliked it. I’ll fix it in a bit.

    The fixes in 4.0.2 should really make 1.1.6 unnecessary. However, that doesn’t mean that you should avoid upgrading Rails.

    If you install from the .gem, then you’ll get 1.1.6 automatically.

  15. kogent about 10 hours later:

    i’ve been on the trunk since a few weeks before 4 was released, it’s easier for me to svn update than mess around with the gem at this point.

    that being the case, I tried to rake db:migrate this morning after an svn update and the last two migrations broke typo. specifically the count_caching migration. I ended up rolling the migration back two versions to fix it.

  16. Dick Davies about 15 hours later:

    Am I right in thinking the tarball doesn’t bundle rails at all? There’s nothing under vendor/ - would we need to ‘rake rails:freeze:gems’ if we’re using the tarball?

  17. include about 17 hours later:

    After update typo to 4.0.2 via gem and installed rails-app-installer-0.1.4 via gem too, I did the typo install typopath but I get this error.

    web1# typo install typo Stopping Typo !!! PID file /usr/local/typo/tmp/pid.txt does not exist. Not running? stop reported an error. Use mongrel_rails stop -h to get help. Backing up to /usr/local/typo/db/backup/backup-20060811-1352.yml Checking for existing Typo install in /usr/local/typo Reading files from /usr/local/lib/ruby/gems/1.8/gems/typo-4.0.2 Making scripts executable Checking database Database exists, preparing for upgrade Migrating Typo’s database to newest release rake aborted! Mysql::Error: Can’t open file: ‘schemainfo.InnoDB’. (errno: 1): SELECT version FROM schemainfo

    (See full trace by running task with –trace) /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:513:in migrate': Migration failed (RailsInstaller::InstallFailed) from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:656:inin_directory’ from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:511:in migrate' from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:217:ininstall_sequence’ from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:192:in install' from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer/commands.rb:95:incommand’ from /usr/local/lib/ruby/gems/1.8/gems/rails-app-installer-0.1.4/lib/rails-installer.rb:626:in execute_command' from /usr/local/lib/ruby/gems/1.8/gems/typo-4.0.2/bin/typo:38 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:inload’ from /usr/local/bin/typo:18

    Can someone help me !? Thanks in advance Francisco

  18. Dan about 18 hours later:

    Where are the apache config examples located. I see in the config directory the lighttpd.conf but not the apache’s

  19. amellie 1 day later:

    hi, i wonder why my logout link in the typo admin disappears?

  20. Scott Laird 1 day later:

    amellie: known bug. I’ll be fixed in 4.0.3, but not for a couple days.

  21. Dan 3 days later:

    I am trying to add a static box to the sidebar and when I drag it over, it is only showing me the title. There is no place to add content.

  22. Levent 6 days later:
    I’m getting: undefined method `errors’ for nil:NilClass when I try and submit a blank comment rails 1.1.6 ruby 1.8.4 typo 4.0.2 I installed it manually from the .tgz file.. Everything else is working well it seems
  23. Scott Laird 6 days later:

    Levent: known bug in 4.0.2. It’ll be fixed in 4.0.3.

  24. Levent 6 days later:

    cheers

  25. backlinks 3 months later:

    link exchange service backlinks link exchange

  26. Andy 4 months later:
    On a fresh installation of 4.0.3 via gem i get: > Migrating Typo’s database to newest release /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:530:in `migrate’: Migration failed (RailsInstaller::InstallFailed) from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in `in_directory’ from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:528:in `migrate’ from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:217:in `install_sequence’ from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:192:in `install’ from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/commands.rb:95:in `command’ from /var/lib/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:646:in `execute_command’ from /var/lib/gems/1.8/gems/typo-4.0.3/bin/typo:39
  27. Pozycjonowanie 5 months later:

    Someone else below asked this already about antispam scripts. I am getting nailed with Spam on my website mails and in our blog website - now its offline too much spam. Is there anyway to stop this? If not, there really isn’t any point in leaving it up and active. Any help will be greatly appreciated.

  28. fee 8 months later:

    Where are the apache config examples located. I see in the config directory the lighttpd.conf but not the apache’s

  29. american health 10 months later:

    thank

  30. Leba 11 months later:

    Is this “Typo” something like “Wordpress”?

  31. Leba 11 months later:

    Is this “Typo” something like “Wordpress”?

  32. Bangkag 11 months later:

    thank