Forum: Radiant CMS Radiant 7.1 rake db:bootstrap issue

3124abca01505075e10b81250eaee619?d=identicon&s=25 Mr Magpie (magpie)
on 2009-04-29 08:03
The following error occurs because the db directory doesn't normally
exist in radiant, and the normal rails migration task tries to read
schema.rb from it. After this error occured, the following fixed it :

sudo mkdir db
sudo chmod 775 db
sudo chown root:www-data db



-------------------------------------------------------------------------

$ sudo rake db:bootstrap --trace
(in /var/www/radiant3/releases/20090428182808)
** Invoke db:bootstrap (first_time)
** Invoke db:remigrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:remigrate
This task will destroy any data in the database. Are you sure you want
to
continue? [yn] y
== 1 CreateRadiantTables: migrating
===========================================
-- create_table("config", {:force=>true})
   -> 0.0375s
-- add_index("config", ["key"], {:name=>"key", :unique=>true})
   -> 0.0518s
-- create_table("pages", {:force=>true})
   -> 0.0468s
-- create_table("page_parts", {:force=>true})
   -> 0.0416s
-- create_table("snippets", {:force=>true})
   -> 0.0499s
-- add_index("snippets", ["name"], {:name=>"name", :unique=>true})
   -> 0.0513s
-- create_table("layouts", {:force=>true})
   -> 0.0486s
-- create_table("users", {:force=>true})
   -> 0.0021s
-- add_index("users", ["login"], {:name=>"login", :unique=>true})
   -> 0.1557s
== 1 CreateRadiantTables: migrated (0.4860s)
==================================

== 2 InsertInitialData: migrating
=============================================
== 2 InsertInitialData: migrated (0.0000s)
====================================

== 3 RenameBehaviorColumn: migrating
==========================================
-- rename_column(:pages, :behavior, :behavior_id)
   -> 0.0945s
== 3 RenameBehaviorColumn: migrated (0.0946s)
=================================

== 4 RenameFilterColumn: migrating
============================================
-- rename_column(:page_parts, :filter, :filter_id)
   -> 0.0530s
-- rename_column(:snippets, :filter, :filter_id)
   -> 0.0440s
== 4 RenameFilterColumn: migrated (0.0972s)
===================================

== 5 AddVirtualColumnToPage: migrating
========================================
-- add_column("pages", "virtual", :boolean, {:default=>false,
:null=>false})
   -> 0.1021s
== 5 AddVirtualColumnToPage: migrated (0.1021s)
===============================

== 6 IntegerColumnsToBoolean: migrating
=======================================
== 6 IntegerColumnsToBoolean: saving User data
================================
-- remove_column("users", "admin")
   -> 0.0496s
-- add_column("users", "admin", :boolean, {:default=>false,
:null=>false})
   -> 0.0690s
== 6 IntegerColumnsToBoolean: restoring User data
=============================
== 6 IntegerColumnsToBoolean: saving User data
================================
-- remove_column("users", "developer")
   -> 0.0407s
-- add_column("users", "developer", :boolean, {:default=>false,
:null=>false})
   -> 0.0596s
== 6 IntegerColumnsToBoolean: restoring User data
=============================
== 6 IntegerColumnsToBoolean: migrated (0.2204s)
==============================

== 7 RemoveVirtualColumnFromPage: migrating
===================================
-- remove_column("pages", "virtual")
   -> 0.0399s
== 7 RemoveVirtualColumnFromPage: migrated (0.0399s)
==========================

== 8 AddVirtualColumnToPageAgain: migrating
===================================
-- add_column("pages", "virtual", :boolean, {:default=>false,
:null=>false})
   -> 0.0584s
== 8 AddVirtualColumnToPageAgain: migrated (0.0585s)
==========================

== 9 AddContentTypeFieldToLayout: migrating
===================================
-- add_column("layouts", "content_type", :string, {:limit=>40})
   -> 0.0401s
== 9 AddContentTypeFieldToLayout: migrated (0.0402s)
==========================

== 10 MergeBehaviorsAndPages: migrating
=======================================
== 10 MergeBehaviorsAndPages: converting behavior names to class names
========
-- rename_column(:pages, :behavior_id, :type)
   -> 0.0479s
== 10 MergeBehaviorsAndPages: migrated (0.0483s)
==============================

== 11 RenameTypeColumnOnPageToClassName: migrating
============================
-- rename_column("pages", "type", "class_name")
   -> 0.0903s
== 11 RenameTypeColumnOnPageToClassName: migrated (0.0904s)
===================

== 12 CreateExtensionMeta: migrating
==========================================
-- create_table("extension_meta", {:force=>true})
   -> 0.0586s
== 12 CreateExtensionMeta: migrated (0.0586s)
=================================

== 13 AddNotesFieldToUser: migrating
==========================================
-- add_column("users", "notes", :text)
   -> 0.1357s
== 13 AddNotesFieldToUser: migrated (0.1358s)
=================================

== 14 RenameConfigDefaultPartsKey: migrating
==================================
== 14 RenameConfigDefaultPartsKey: migrated (0.0015s)
=========================

== 15 AddOptimisticLocking: migrating
=========================================
-- add_column(:pages, :lock_version, :integer, {:default=>0})
   -> 0.0384s
-- add_column(:layouts, :lock_version, :integer, {:default=>0})
   -> 0.0499s
-- add_column(:snippets, :lock_version, :integer, {:default=>0})
   -> 0.0793s
-- add_column(:users, :lock_version, :integer, {:default=>0})
   -> 0.0436s
== 15 AddOptimisticLocking: migrated (0.2114s)
================================

== 16 AddSessions: migrating
==================================================
-- create_table(:sessions)
   -> 0.0417s
-- add_index(:sessions, :session_id)
   -> 0.0680s
-- add_index(:sessions, :updated_at)
   -> 0.0148s
== 16 AddSessions: migrated (0.1246s)
=========================================

== 17 RenameCreatedByUpdatedByColumns: migrating
==============================
-- rename_column("pages", :created_by, :created_by_id)
   -> 0.1027s
-- rename_column("pages", :updated_by, :updated_by_id)
   -> 0.0777s
-- rename_column("snippets", :created_by, :created_by_id)
   -> 0.0510s
-- rename_column("snippets", :updated_by, :updated_by_id)
   -> 0.1074s
-- rename_column("layouts", :created_by, :created_by_id)
   -> 0.0447s
-- rename_column("layouts", :updated_by, :updated_by_id)
   -> 0.1017s
-- rename_column("users", :created_by, :created_by_id)
   -> 0.1048s
-- rename_column("users", :updated_by, :updated_by_id)
   -> 0.0699s
== 17 RenameCreatedByUpdatedByColumns: migrated (0.6604s)
=====================

== 18 AddDescriptionAndKeywordsToPages: migrating
=============================
-- add_column(:pages, :description, :string)
   -> 0.0620s
-- add_column(:pages, :keywords, :string)
   -> 0.0870s
== 18 AddDescriptionAndKeywordsToPages: migrated (0.1492s)
====================

== 19 AddSaltToUsers: migrating
===============================================
-- add_column(:users, :salt, :string)
   -> 0.0507s
== 19 AddSaltToUsers: migrated (0.0511s)
======================================

== 20 AddSessionInfoToUsers: migrating
========================================
-- add_column(:users, :session_token, :string)
   -> 0.0464s
-- add_column(:users, :session_expire, :datetime)
   -> 0.0722s
== 20 AddSessionInfoToUsers: migrated (0.1187s)
===============================

== 21 RemoveSessionExpireFromUsers: migrating
=================================
-- remove_column(:users, :session_expire)
   -> 0.0591s
== 21 RemoveSessionExpireFromUsers: migrated (0.0591s)
========================

== 20081203140407 AddIndexes: migrating
=======================================
-- add_index(:pages, :class_name, {:name=>:pages_class_name})
   -> 0.0896s
-- add_index(:pages, :parent_id, {:name=>:pages_parent_id})
   -> 0.0375s
-- add_index(:pages, ["slug", "parent_id"], {:name=>:pages_child_slug})
   -> 0.0623s
-- add_index(:pages, ["virtual", "status_id"],
{:name=>:pages_published})
   -> 0.0699s
-- add_index(:page_parts, ["page_id", "name"], {:name=>:parts_by_page})
   -> 0.0510s
== 20081203140407 AddIndexes: migrated (0.3106s)
==============================

** Invoke db:migrate (first_time)
** Invoke environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake aborted!
No such file or directory -
/var/www/radiant3/releases/20090428182808/db/schema.rb
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/railties/lib/tasks/databases.rake:218:in
`initialize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/railties/lib/tasks/databases.rake:218:in
`open'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/railties/lib/tasks/databases.rake:218
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
`invoke'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/railties/lib/tasks/databases.rake:100
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
`invoke'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/tasks/database.rake:11
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in
`invoke_prerequisites'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
`each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in
`invoke_prerequisites'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
`invoke'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
`invoke_task'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in
`top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in
`run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in
`run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
This topic is locked and can not be replied to.