Migrating from a cldstr archive
Support Ticket
Migrating from a cldstr archive+issues
So I can get an archive of my site off of cldstr in basically a zip file. How do I migrate what's in there into the new install we've got running on a different server? Do the directory names match up and we can just copy everything in?
For future reference: The database file is a mysql dump file, so it actually just contains all the commands to re-create the database in a text file. So you can just log in to the client using the username and password for the wagn database connection (mysql -u username -p password), go show databases; to see the list of databases, say use yourwagndatabase; to switch to that database, and then source path-to-db-file; to load that database dump into the database.
Okay, so right now the main problem seems to be that the styles are not rendering. The stylesheet exists, but it says "error rendering *head (core view)" at the top of the page.
error rendering *head
Error message (visible to admin only)
undefined method `style_path' for #
/var/lib/gems/1.9.1/gems/activemodel-3.2.16/lib/active_model/attribute_methods.rb:407:in `method_missing'
/var/lib/gems/1.9.1/gems/activerecord-3.2.16/lib/active_record/attribute_methods.rb:149:in `method_missing'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/mods/standard/sets/self/head.rb:68:in `head_stylesheets'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/mods/standard/sets/self/head.rb:11:in `block (4 levels) in load_implicit_sets'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:61:in `block in alias_view'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:266:in `block in send_final_render_method'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:427:in `with_inclusion_mode'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:265:in `send_final_render_method'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:70:in `block in define_render_methods'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:74:in `block in define_render_methods'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:207:in `render'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:494:in `process_inclusion'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:442:in `expand_inclusion'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:353:in `block in process_content_object'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/mods/standard/chunks/include.rb:74:in `process_chunk'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/content.rb:56:in `block in process_content_object'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/content.rb:44:in `block in each_chunk'
/usr/lib/ruby/1.9.1/delegate.rb:72:in `each'
/usr/lib/ruby/1.9.1/delegate.rb:72:in `method_missing'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/content.rb:44:in `each_chunk'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/content.rb:56:in `process_content_object'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:352:in `process_content_object'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:341:in `process_content'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/mods/standard/sets/all/rich_html.rb:18:in `block (4 levels) in load_implicit_sets'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:266:in `block in send_final_render_method'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:427:in `with_inclusion_mode'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:265:in `send_final_render_method'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:70:in `block in define_render_methods'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/lib/card/format.rb:74:in `block in define_render_methods'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/mods/standard/sets/all/rich_html.rb:12:in `show'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/app/controllers/wagn_controller.rb:111:in `show'
/var/lib/gems/1.9.1/gems/wagn-1.12.12/app/controllers/card_controller.rb:17:in `read'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:436:in `_run__78398923__process_action__728343150__callbacks'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/var/lib/gems/1.9.1/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in `process'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in `process'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal.rb:203:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal.rb:246:in `block in action'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:36:in `call'
/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/var/lib/gems/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:608:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/head.rb:14:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/flash.rb:242:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/var/lib/gems/1.9.1/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:64:in `call'
/var/lib/gems/1.9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `_run__420925297__call__588832681__callbacks'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/var/lib/gems/1.9.1/gems/airbrake-3.1.15/lib/airbrake/rails/middleware.rb:13:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/rack/logger.rb:32:in `call_app'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `block in call'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/tagged_logging.rb:22:in `tagged'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `call'
/var/lib/gems/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/var/lib/gems/1.9.1/gems/activesupport-3.2.16/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/var/lib/gems/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/var/lib/gems/1.9.1/gems/airbrake-3.1.15/lib/airbrake/user_informer.rb:16:in `_call'
/var/lib/gems/1.9.1/gems/airbrake-3.1.15/lib/airbrake/user_informer.rb:12:in `call'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/engine.rb:484:in `call'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/application.rb:231:in `call'
/var/lib/gems/1.9.1/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in `block (3 levels) in start_threads'
(core view)
The basic procedure for migrating from cldstr is:
1. set up a new wagn instance (as you have done)
2. import the database (as you have done)
3. copy over the files directory (as you may have done)
4. clear the cache (in this case, restart memcache) and restart the server.
The error there kind of looks to me like a confused cache. It's saying the style rule card doesn't have a style_path method, but that generally shouldn't be possible. And there's no better way to confuse a cache then to switch out the database beneath it. So let me know if #4 doesn't work.
Turns out restarting memcache was the step we missed. However, the gear icon is missing. Any idea why that might be?
I'm guessing you need to regenerate your CSS. Probably the quickest way to do this is to go to /admin/clear_cache. This will not only clear memcache, but also remove your temporary files, like the optimized css file. that css probably has /wagn/ in the urls, because that's the way you had it set up before. You could also try resaving *all+*style.
Did both, and now I see gear icons! I think that's everything.
What would make the tinyMCE interface disappear? I'm thinking something to do with the /wagn/ directory that cldstr causes. We haven't been able to get apache to forward, so the rewrite isn't up and I had some assets in the navbar that were called out in the /files/ directory stop working. So I went and changed the path to them. But when I edit a card, the editor is missing. And it makes me think there's a path somewhere else that still has /wagn/ in it, but I don't know where to look.