Skip to content

Instantly share code, notes, and snippets.

View davidray's full-sized avatar

David Christiansen davidray

  • SyncTimes
  • Springville, UT
View GitHub Profile
dave@trisano-sandbox-01:/opt/csi/trisano-dw/warehouse$ psql -Xf warehouse_init.sql -U trisano_su trisano_warehouse
BEGIN
CREATE SCHEMA
ALTER SCHEMA
COMMIT
BEGIN
CREATE SCHEMA
ALTER SCHEMA
COMMIT
BEGIN
> ruby unit/event_test.rb
DEPRECATION WARNING: require "activesupport" is deprecated and will be removed in Rails 3. Use require "active_support" instead.. (called from /Users/dave/TroopTrack/vendor/rails/activesupport/lib/activesupport.rb:2)
/Library/Ruby/Gems/1.8/gems/factory_girl-1.2.4/lib/factory_girl/factory.rb:59:in `define': Factory already defined: user (Factory::DuplicateDefinitionError)
from ./../spec/factories.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/dave/TroopTrack/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
from ./test_helper.rb:4
from unit/event_test.rb:1:in `require'
from unit/event_test.rb:1
1)
ActiveRecord::RecordInvalid in 'EventQueuesController handling DELETE /event_queues/1 should find the event_queue requested'
Validation failed: Entity information is not complete. Most likely you are adding phone or address information without a name, No information has been supplied for the interested party.
/home/david/trisano/webapp/app/models/event_queue.rb:49:in `fix_up_events'
/home/david/trisano/webapp/app/models/event_queue.rb:37:in `each'
/home/david/trisano/webapp/app/models/event_queue.rb:37:in `fix_up_events'
/home/david/trisano/webapp/app/controllers/event_queues_controller.rb:80:in `destroy'
./spec/controllers/event_queues_controller_spec.rb:315:in `do_delete'
./spec/controllers/event_queues_controller_spec.rb:320:
david@bigubu:~/trisano/webapp$ rake trisano:dev:feature_prep
(in /home/david/trisano/webapp)
/usr/bin/ruby1.8 -S rake db:test:prepare
(in /home/david/trisano/webapp)
/usr/bin/ruby1.8 -S rake db:seed RAILS_ENV=test
(in /home/david/trisano/webapp)
/usr/bin/ruby1.8 -S rake spec:db:fixtures:load FIXTURES=codes,code_translations,external_codes,external_code_translations RAILS_ENV=test
(in /home/david/trisano/webapp)
/usr/bin/ruby1.8 /home/david/trisano/webapp/script/runner -e test /home/david/trisano/webapp/script/load_codes.rb
Loading codes
19:21:36,750 ERROR [JDBCExceptionReporter] Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
19:21:37,150 ERROR [JDBCExceptionReporter] Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
19:21:37,152 ERROR [SchemaUpdate] could not get database metadata
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
at org.postgresql.Driver.makeConne
NoMethodError in Morbidity eventsController#create
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.attributes
RAILS_ROOT: /home/david/trisano/webapp
Application Trace | Framework Trace | Full Trace
/home/david/trisano/webapp/app/models/human_event.rb:327:in `copy_event'
/home/david/trisano/webapp/app/models/human_event.rb:325:in `copy_event'
== AddIsRepeatingToCsvFields: migrating ======================================
-- add_column(:csv_fields, :collection, :string)
-> 0.0020s
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `collection=' for #<CsvField:0x1cfb480a>
/home/david/trisano/webapp/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:255:in `method_missing'
db/migrate/20100503171501_add_is_repeating_to_csv_fields.rb:28:in `up'
db/migrate/20100503171501_add_is_repeating_to_csv_fields.rb:5:in `each'
[...truncated 77470 lines...]
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_repository_postgresql]/returns: COMMIT [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_repository_postgresql]/returns: executed successfully [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: DROP DATABASE [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: DROP ROLE [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: CREATE ROLE [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: CREATE DATABASE [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: GRANT [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: You are now connected to database "quartz" as user "quartzuser". [0m
[0;31mnotice: //trisano_pentaho_db_main/Exec[create_quartz_postgresql]/returns: BEGIN [0m
-> 0.0180s
/home/david/opt/jruby/bin/jruby -S rake db:migrate
/home/david/opt/jruby/bin/jruby /home/david/trisano/webapp/script/runner /home/david/trisano/webapp/script/load_codes.rb
/home/david/trisano/webapp/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:84 warning: given block not used
/home/david/opt/jruby/bin/jruby /home/david/trisano/webapp/script/runner /home/david/trisano/webapp/script/load_defaults.rb
/home/david/trisano/webapp/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:84 warning: given block not used
/home/david/opt/jruby/bin/jruby /home/david/trisano/webapp/script/runner /home/david/trisano/webapp/script/set_default_admin_uid.rb
/home/david/trisano/webapp/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:84 warning: given block not used
/home/david/opt/jruby/bin/jruby /home/david/trisano/webapp/script/runner /home/david/trisano/webapp/script/load_common_test_types.rb
/home/david/trisano/webapp/vendor/rails/actionpack/lib/action_controlle
Finished building row-level constraints
Writing metadata for disease group 'TriSano' to /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/metadata_storage/dg7_metadata.xmi
INFO 23-04 21:19:15,463 - CWM - Instantiated Pentaho (top level) package.
Writing out new XMI file /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/metadata_storage/dg7_metadata.out
INFO 23-04 21:19:19,198 - CWM - Instantiated Pentaho (top level) package.
CREDENTIALS
Failed trying to publish metadata for disease group TriSano to 'TriSano'
[dave@demo1 TriSano]$