[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problem with Instiki update after OCI update

Stephan Kämper

7/12/2006 9:21:00 PM

Hi all,


I updated the One-Click-Installer to the brand new Ruby 1.8.4. After
that the Instiki 0.10.2 didn't start any longer (Constant Logger::Format
not defined). So I tried to update Instiki to 0.11.0

Now, while trying to migrate that Windows based Instiki installation
from 0.10.2 to 0.11.0 I ran into this following error message:

> D:\tmp\test_instiki>ruby script\import_storage -t D:\tmp\instiki-0.10.2\storage\2500
> -i d:\tmp\instiki-0.10.2 -d sqlite -o instiki_i
> mport.sql
> d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in `read': buffer error (Zlib::BufError)
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in `load'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:402:in `load'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:155:in `load'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine.rb:211:in `recover_snapshot'
> from c:/ruby/lib/ruby/1.8/open-uri.rb:88:in `open'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine.rb:210:in `recover_snapshot'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine.rb:53:in `new'
> from d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:272:in `initialize'
> from d:/tmp/instiki-0.10.2/app/models/wiki_service.rb:184:in `initialize'
> from d:/tmp/instiki-0.10.2/app/models/wiki_service.rb:147:in `instance'
> from script/import_storage:165


(Let's hope the formatting doesn't get mangled...)


Might that be my fault? If yes, what might have caused it?


Happy rubying

Stephan

1 Answer

Assaph Mehr

7/15/2006 1:42:00 PM

0

> I updated the One-Click-Installer to the brand new Ruby 1.8.4. After
> that the Instiki 0.10.2 didn't start any longer (Constant Logger::Format
> not defined). So I tried to update Instiki to 0.11.0

I think that was due to some version mismatch between
instiki/rails/ruby-1.8.2. nm.

> > d:/tmp/instiki-0.10.2/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in `read': buffer error (Zlib::BufError)
[snip]
> Might that be my fault? If yes, what might have caused it?

Some mystery bug in zlib (i think) which I could never isolate, but it
caused the snapshot files to be considered as corrupt zips. Solution
is a bit of black magic: extract the latest .snapshot file contents
with a non-zlib zip (e.g. 7-zip.org), rezip them again as .gz and try
the upgrade script again.

HTH,
Assaph