Typo 4.0.2
Posted by Scott Laird Thu, 10 Aug 2006 21:11:33 GMT
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.

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?
FWIW, I plan to workaround this inconvenience by doing a “dummy” typo install and copying the config files into the “real” /config/ directory.
Which files?
That didn’t work out so well either… Where the heck do you find all these files that the installer is trying to delete?
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
Chris Mc: try this:
gem install rails-app-installer. That should install v0.1.3 of the installer. Then re-run thetypocommand.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
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. ;)
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.
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.
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.
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.
so, since the rails external is still 1.1.5. Are the fixes in typo reflective of the changes in 1.1.6?
M<><
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.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.
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?
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:inmigrate' 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:ininstall' 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:inexecute_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:18Can someone help me !? Thanks in advance Francisco
Where are the apache config examples located. I see in the config directory the lighttpd.conf but not the apache’s
hi, i wonder why my logout link in the typo admin disappears?
amellie: known bug. I’ll be fixed in 4.0.3, but not for a couple days.
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.
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
Levent: known bug in 4.0.2. It’ll be fixed in 4.0.3.
cheers
link exchange service backlinks link exchange
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
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.
Where are the apache config examples located. I see in the config directory the lighttpd.conf but not the apache’s
thank
Is this “Typo” something like “Wordpress”?
Is this “Typo” something like “Wordpress”?
thank