i''m getting the following when i launch instiki. please help.... C:\instiki>ruby instiki => Starting Instiki on http://0.0.0.0:2500 => Data files are stored in C:/instiki/storage/2500 C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in `read'': buffer error (Zlib::BufError) from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in ` load'' from C:/instiki/vendor/madeleine-0.7.1 /lib/madeleine/automatic.rb:402:in `load'' from C:/instiki/vendor/madeleine-0.7.1 /lib/madeleine/automatic.rb:155:in `load'' from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:211:in `recover_ snapshot'' from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:210:in `open_uri _original_open'' from c:/ruby/lib/ruby/1.8/open-uri.rb:87:in `open'' from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:210:in `recover_ snapshot'' from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:53:in `new'' from C:/instiki/vendor/madeleine-0.7.1 /lib/madeleine/automatic.rb:272:in `initialize'' from C:/instiki/app/models/wiki_service.rb:184:in `new'' from C:/instiki/app/models/wiki_service.rb:184:in `initialize'' from C:/instiki/app/models/wiki_service.rb:147:in `new'' from C:/instiki/app/models/wiki_service.rb:147:in `instance'' from ./script/server:91 from instiki:6:in `load'' from instiki:6 C:\instiki> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20060326/2e6f3aae/attachment.htm
I think there''s a problem where the snapshot file, which is essentially a zip file, is corrupted. I was never able to determine if it was madeleine, ruby-zlib or zlib itself, as I never managed to consistently repro this. The file was unopenable by zlib-based decompression, but you should be able to open it in another zip program like 7zip (www.7-zip.org). Go to the storage directory and try to open the latest (highest number) .snapshot file with it. it will have an annonymous content file. you can extract this and rezip it (in a "gz" format) and then use it as normal. Needless to say, backup everything before you try :-) If that doesn''t work, try deleting the .command_log files and the latest snapshot. You''ll lose some recent information, but you''ll be able to get an older version of the data. HTH, Assaph On 3/26/06, cjw <cjw333 at gmail.com> wrote:> i''m getting the following when i launch instiki. please help.... > > C:\instiki>ruby instiki > => Starting Instiki on http://0.0.0.0:2500 > => Data files are stored in C:/instiki/storage/2500 > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in > `read'': buffer > error (Zlib::BufError) > from > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in > ` > load'' > from C:/instiki/vendor/madeleine- > 0.7.1/lib/madeleine/automatic.rb:402:in > `load'' > from > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:155:in > `load'' > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:211:in > `recover_ > snapshot'' > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:210:in > `open_uri > _original_open'' > from c:/ruby/lib/ruby/1.8/open-uri.rb:87:in `open'' > from C:/instiki/vendor/madeleine- 0.7.1/lib/madeleine.rb:210:in > `recover_ > snapshot'' > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:53:in `new'' > from > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:272:in > `initialize'' > from C:/instiki/app/models/wiki_service.rb:184:in > `new'' > from C:/instiki/app/models/wiki_service.rb:184:in > `initialize'' > from C:/instiki/app/models/wiki_service.rb:147:in > `new'' > from C:/instiki/app/models/wiki_service.rb:147:in > `instance'' > from ./script/server:91 > from instiki:6:in `load'' > from instiki:6 > > C:\instiki> > > > > > > > > > > > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users > >
Thanks Assaph, I partially followed your directions since I was offline last night and couldn''t get to this e-mail. I ended up deleting the last snapshot file and was able to launch Instiki without any errors. I likely lost a few recent changes but the important thing is that I''m back up and running. I was afraid that I had lost a lot of work so thanks for helping out. I''ve always wondered about how to backup or move my Instiki. Is it enough just to back up the most recent snapshot file from time to time? Are there other files that need to be backed up as well? Thanks again for saving me! - Chris On 3/26/06, Assaph Mehr <assaph at gmail.com> wrote:> > I think there''s a problem where the snapshot file, which is > essentially a zip file, is corrupted. I was never able to determine if > it was madeleine, ruby-zlib or zlib itself, as I never managed to > consistently repro this. The file was unopenable by zlib-based > decompression, but you should be able to open it in another zip > program like 7zip (www.7-zip.org). > > Go to the storage directory and try to open the latest (highest > number) .snapshot file with it. it will have an annonymous content > file. you can extract this and rezip it (in a "gz" format) and then > use it as normal. Needless to say, backup everything before you try > :-) > > If that doesn''t work, try deleting the .command_log files and the > latest snapshot. You''ll lose some recent information, but you''ll be > able to get an older version of the data. > > HTH, > Assaph > > On 3/26/06, cjw <cjw333 at gmail.com> wrote: > > i''m getting the following when i launch instiki. please help.... > > > > C:\instiki>ruby instiki > > => Starting Instiki on http://0.0.0.0:2500 > > => Data files are stored in C:/instiki/storage/2500 > > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in > > `read'': buffer > > error (Zlib::BufError) > > from > > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/zmarshal.rb:43:in > > ` > > load'' > > from C:/instiki/vendor/madeleine- > > 0.7.1/lib/madeleine/automatic.rb:402:in > > `load'' > > from > > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:155:in > > `load'' > > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:211:in > > `recover_ > > snapshot'' > > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:210:in > > `open_uri > > _original_open'' > > from c:/ruby/lib/ruby/1.8/open-uri.rb:87:in `open'' > > from C:/instiki/vendor/madeleine- 0.7.1/lib/madeleine.rb:210:in > > `recover_ > > snapshot'' > > from C:/instiki/vendor/madeleine-0.7.1/lib/madeleine.rb:53:in > `new'' > > from > > C:/instiki/vendor/madeleine-0.7.1/lib/madeleine/automatic.rb:272:in > > `initialize'' > > from C:/instiki/app/models/wiki_service.rb:184:in > > `new'' > > from C:/instiki/app/models/wiki_service.rb:184:in > > `initialize'' > > from C:/instiki/app/models/wiki_service.rb:147:in > > `new'' > > from C:/instiki/app/models/wiki_service.rb:147:in > > `instance'' > > from ./script/server:91 > > from instiki:6:in `load'' > > from instiki:6 > > > > C:\instiki> > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > Instiki-users mailing list > > Instiki-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instiki-users > > > > > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instiki-users/attachments/20060331/d125b8a5/attachment-0001.htm
Hi Chris,> I''ve always wondered about how to backup or move my Instiki. Is it enough > just to back up the most recent snapshot file from time to time? Are there > other files that need to be backed up as well?You''ll need the latest .snapshot and all the .command_log files if any. (Probably best to take the last 3 snapsots, as you''ve just seen ;-). Cheers, Assaph