Skip to content

Instantly share code, notes, and snippets.

View adam-phillipps's full-sized avatar

Adam adam-phillipps

  • NGage
  • Salt Lake City, UT.
View GitHub Profile
rake aborted!
SocketError: getaddrinfo: nodename nor servname provided, or not known
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/connection/ruby.rb:152:in `getaddrinfo'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/connection/ruby.rb:152:in `connect'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/connection/ruby.rb:211:in `connect'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:304:in `establish_connection'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:85:in `block in connect'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:266:in `with_reconnect'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:84:in `connect'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/redis-3.1.0/lib/redis/client.rb:326:in `ensure_connected'
PSCHOOL_WORKING_DIRECTORY=tmp SIS_APP_URL=http://localhost:9292 SIS_APP_TOKEN=token REDIS_URL=htt//localhost:6379 PSCHOOL_LOG_LEVEL=debug ./bin/pschool run/Users/adam/work_code/pschool/gems/sis_worker/lib/sis_worker/configuration.rb:112:in `validate!': Processing halted due to missing configuration in the environment, please set the following env vars: DEV_CLEVER_CLIENT_ID, DEV_CLEVER_CLIENT_SECRET, CLEVER_CLIENT_ID, CLEVER_CLIENT_SECRET (SISWorker::Configuration::IncompleteConfigurationError)
from /Users/adam/work_code/pschool/lib/pschool/cli.rb:28:in `config'
from /Users/adam/work_code/pschool/lib/pschool/cli.rb:39:in `init_logger'
from /Users/adam/work_code/pschool/lib/pschool/cli.rb:32:in `init_infrastructure'
from /Users/adam/work_code/pschool/lib/pschool/cli.rb:15:in `go'
from /Users/adam/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/adam/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_comman
to observe it, run the email spec in catalog automation or add a module item via japanda using a published assignment,
published module in a published course or debug around line 30 in module_item.rb
notice the request has "published: true" and the response has "published: false"
response == {"id"=>48204, "title"=>"module-item568081ed870fb5e58aab7ccd606c247c", "position"=>1, "indent"=>0, "type"=>"Assignment", "module_id"=>16508, "html_url"=>"https://catalogautomation.instructure.com/courses/42006/modules/items/48204", "content_id"=>48732, "url"=>"https://catalogautomation.instructure.com/api/v1/courses/42006/assignments/48732", "completion_requirement"=>{"type"=>"must_view"}, "published"=>false}
@request == {:module_item=>{:title=>"module-item568081ed870fb5e58aab7ccd606c247c", :type=>"Assignment", :content_id=>48732, :completion_requirement=>{:type=>"must_view"}, :published=>true}}
/usr/share/passenger/helper-scripts/prespawn:140:in `connect': SSL_connect returned=1 errno=0 state=unknown state: unknown protocol (OpenSSL::SSL::SSLError)
from /usr/share/passenger/helper-scripts/prespawn:140:in `connect'
from /usr/share/passenger/helper-scripts/prespawn:89:in `socket'
from /usr/share/passenger/helper-scripts/prespawn:108:in `head_request'
from /usr/share/passenger/helper-scripts/prespawn:171:in `<main>'
App 39898 stdout:
App 39898 stdout: ^[[1m^[[36mTokenData Load (1.2ms)^[[0m ^[[1mSELECT "token_data".* FROM "token_data" WHERE "token_data"."account_id" IS NULL ORDER BY "token_data"."created_at" DESC LIMIT 1^[[0m
App 39898 stdout: ^[[1m^[[35mTokenData Load (0.8ms)^[[0m SELECT "token_data".* FROM "token_data" WHERE "token_data"."account_id" = $1 ORDER BY "token_data"."created_at" DESC LIMIT 1 [["account_id", "AaiasFEPPCsKwutZyHLQ8q7sYmPkFBirio49m4ysarG14PeX9k"]]
App 39898 stdout: ------------->>>>>>>ERROR: Invalid refresh token. Token: eVkrLej8H1MxX
# TYPE DATABASE USER ADDRESS METHOD
#hostssl all asserta_cust_service 23.99.56.151/24 md5
host all asserta_cust_service 23.99.56.151/24 md5
host all all 65.130.216.221/32 trust
local all postgres trust # peer
defaults: &defaults
adapter: postgresql
encoding: utf8
pool: 5
timeout: 5000
username: <%= ENV.fetch("DATABASE_USERNAME", 'adam') %>
password: <%= ENV.fetch("DATABASE_PASSWORD", '') %>
host: <%= ENV.fetch("DATABASE_ADDRESS", "db") %>
port: <%= ENV.fetch("DATABASE_PORT", "5432") %>
RAILS_ENV=production bundle exec rake db:reset db:drop db:create db:migraet
/home/deploy/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line 80 ignored: "name"
Rails Error: Unable to access log file. Please ensure that /home/deploy/asserta_cust_service/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /home/deploy/asserta_cust_service/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
TokenData Load (1.0ms) SELECT "token_data".* FROM "token_data" WHERE "token_data"."account_id" IS NULL ORDER BY "token_data"."created_at" DESC LIMIT 1
PG::UndefinedTable: ERROR: relation "token_data" does not exist
LINE 1: SELECT "token_data".* FROM "token_data" WHERE "token_data"....
^
: SELECT "token_data".* FROM "token_data" WHERE "token_data"."account_id" IS NULL ORDER BY "token_data"."created_at
ArgumentError: id is required
asserta_cust_service/config/initializers/dwolla.rb:5:in `new'
initializers/dwolla.rb
$dwolla = DwollaV2::Client.new(id: ENV["DWOLLA_CLIENT_ID"], secret: ENV["DWOLLA_CLIENT_SECRET"]) {...}
56
57 # - Connection Settings -
58
59 listen_addresses = '*' # what IP address(es) to listen on;
60 #listen_address = '23.99.56.151' # comma-separated list of addresses;
61 # defaults to 'localhost'; use '*' for all
62 # (change requires restart)
63 port = 8361 # (change requires restart)
local all all peer
# IPv4 local connections:
#host all all 23.99.56.151/24 md5
host asserta_cust_service asserta_cust_service 23.99.56.151/24 md5
# IPv6 local connections:
##host all all ::1/128 md5
##host all all 23.99.56.151/32 md5
#host all all 0.0.0.0/0 md5