This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in Morbidity_events#edit | |
Showing app/views/events/_lab.html.haml where line #31 raised: | |
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.new_record? | |
Extracted source (around line #31): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
david@david-desktop:~/csi/dist/distro$ ./upgrade_db.sh | |
!!WARNING!!: this may take several minutes. Run: tail -f ./upgrade_db_output.txt to watch upgrade progress | |
cd ../webapp/ | |
/usr/local/jruby/bin/jruby -S rake db:migrate RAILS_ENV=production | |
rake aborted! | |
An error has occurred, this and all later migrations canceled: | |
uninitialized constant AddFormPrivileges::Entitlement | |
(See full trace by running task with --trace) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prerequisites | |
1. Puppet is installed | |
1. OpenSuSE: | |
sudo zypper install puppet | |
2. Ubuntu/Debian: | |
sudo apt-get install puppet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO 02-07 21:57:56,106 - CWM - Loaded CWM model into the default repository. | |
INFO 02-07 21:57:57,228 - CWM - Instantiated Pentaho (top level) package. | |
2009/07/02 21:58:03:087 EDT [INFO] DefaultFileReplicator - Using "/tmp/vfs_cache" as temporary files store. | |
Unable to find kettle engine jar file to set build date. (ignored) | |
INFO 02-07 21:58:05,543 - CWM - Instantiated Pentaho (top level) package. | |
/opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/update_metadata.rb:233:in `rights_mask': undefined method `mask' for nil:NilClass (NoMethodError) | |
from /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/update_metadata.rb:239:in `security' | |
from /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/update_metadata.rb:244:in `security_property' | |
from /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/update_metadata.rb:229:in `secure' | |
from /opt/csi/trisano-pentaho/biserver-ee/pentaho-solutions/TriSano/update_metadata.rb:188:in `publish' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache.png | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/E78C5B5C02AD03E09C63C34F143CDD1A.gwt.rpc | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/hosted.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/F6DA86CAFDFA7480AAB47A96CDC3CC72.cache.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/8365931EE056149D71F50CD67AA27912.gwt.rpc | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/689E60D175EAC59BEEAC667AF4FE26DD.cache.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/B1BD52EEF5BBC0D211F2D0E155D6B588.gwt.rpc | |
notice: //trisano_pentaho_db_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -u postgres createuser david -P | |
[sudo] password for david: | |
Enter password for new role: | |
Enter it again: | |
Shall the new role be a superuser? (y/n) y | |
createuser: could not connect to database postgres: could not connect to server: No such file or directory | |
Is the server running locally and accepting | |
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/EBEC81FBD471ADC77D477AEFBAF089BA.cache.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/EA8B5E1E81BF30292E9D51D9420C347B.cache.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/9644CC2ED71E9500F136C407860F8A5B.gwt.rpc | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/72069A43ECC832AD1231BAA9F25DE4FA.cache.png | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/AF02230F0D71D92A44401DDE7B5740AD.cache.html | |
notice: //trisano_pentaho_db_main/Exec[install-pentaho]/returns: enterprise-console/www/com.pentaho.pac.PentahoProAdminConsole/DatePickerStyle.css | |
notice: //trisano_pentaho_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notice: //trisano_pentaho_db_main/Exec[etl.sh]/returns: ALTER ROLE | |
notice: //trisano_pentaho_db_main/Exec[etl.sh]/returns: Preparing for ETL process | |
notice: //trisano_pentaho_db_main/Exec[etl.sh]/returns: ERROR: schema "trisano" does not exist | |
notice: //trisano_pentaho_db_main/Exec[etl.sh]/returns: Problem preparing for ETL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def event_values(event) | |
if (event.is_a?(HumanEvent) && event.interested_party) || (event.is_a?(PlaceEvent) && event.interested_place) | |
event_data(event).collect do |event_datum| | |
begin | |
value = event.instance_eval(event_datum.last).to_s | |
if event_datum.last == 'updated_at' || event_datum.last == 'created_at' | |
Time.parse(value).strftime('%Y-%m-%d %H:%M') | |
else | |
value | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def event_data(event_or_class) | |
clazz = event_or_class.is_a?(Class) ? event_or_class : event_or_class.class | |
meth = "#{clazz.to_s.underscore}_fields" | |
event_data = CsvField.send(meth).map do |csv_field| | |
[csv_field.send(short_or_long_name), script_for(csv_field)] | |
end | |
if showing_answers? and event_or_class.respond_to?(:answers) | |
event_data += event_answers(event_or_class) | |
end | |
event_data |