From rubycoder at gmail.com Sun Jun 20 01:31:50 2010 From: rubycoder at gmail.com (Gavin) Date: Sun, 20 Jun 2010 13:31:50 +0800 Subject: [Instiki] sqlite3 problem for instiki 0.17 Message-ID: Hi, After downloading instiki 0.17, I ran the instiki script as per the instructions. And at the moment the page is about to save to sqlite3, it bombs with these errors: ActiveRecord::StatementInvalid in WikiController#save SQLite3::SQLException: unable to open database file: UPDATE "wiki_references" SET link_type = 'L' WHERE (referenced_name = 'HomePage') RAILS_ROOT: /home/gavin/opt/instiki-0.17 Application Trace | Framework Trace | Full Trace /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:157:in `execute' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:402:in `catch_schema_changes' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:157:in `execute' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:265:in `update_sql' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:161:in `update_sql' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:49:in `update_without_query_dirty' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:18:in `update' /home/gavin/opt/instiki-0.17/vendor/rails/activerecord/lib/active_record/base.rb:852:in `update_all' /home/gavin/opt/instiki-0.17/app/models/page_observer.rb:5:in `after_create' /home/gavin/opt/instiki-0.17/app/models/page.rb:31:in `revise' /home/gavin/opt/instiki-0.17/app/models/web.rb:17:in `add_page' /home/gavin/opt/instiki-0.17/app/models/wiki.rb:95:in `write_page' /home/gavin/opt/instiki-0.17/app/controllers/wiki_controller.rb:289:in `save' I am running with ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin] Thanks G -------------- next part -------------- An HTML attachment was scrubbed... URL: From distler at golem.ph.utexas.edu Sun Jun 20 02:06:20 2010 From: distler at golem.ph.utexas.edu (Jacques Distler) Date: Sun, 20 Jun 2010 01:06:20 -0500 Subject: [Instiki] sqlite3 problem for instiki 0.17 In-Reply-To: References: Message-ID: <52534B97-AF83-46D3-A583-4B2D74AEB9B1@golem.ph.utexas.edu> On Jun 20, 2010, at 12:31 AM, Gavin wrote: > After downloading instiki 0.17, I ran the instiki script as per the instructions. > And at the moment the page is about to save to sqlite3, it bombs with these errors: 1) The current release version of Instiki is 0.18.3. A pre-release version of the soon-to-be-released Instiki 0.19 can be had at http://golem.ph.utexas.edu/~distler/code/instiki-svn.tar.gz 2) Did you gem install sqlite3-ruby ? That seems to be necessary on many configurations. 3) The database should be at db/production.db.sqlite3 Does that file exist, and is it writable by the user running instiki? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: