{"action":"closed","issue":{"url":"https://api.github.com/repos/EBWiki/EBWiki/issues/708","repository_url":"https://api.github.com/repos/EBWiki/EBWiki","labels_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/708/comments","events_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/708/events","html_url":"https://github.com/EBWiki/EBWiki/issues/708","id":164982168,"number":708,"title":"ActiveRecord::StatementInvalid: [safely] PG::InsufficientPrivilege: ERROR:  permission denied for relation ahoy_events\n: INSERT INTO \"ahoy_events\" (\"id\", \"visit_id\", \"user_id\", \"name\", \"properties\", \"time\") VALUES ($1, $2, $3, $4, $5, $6) RETURNING \"id\"","user":{"login":"trystant","id":13509,"avatar_url":"https://avatars0.githubusercontent.com/u/13509?v=4","gravatar_id":"","url":"https://api.github.com/users/trystant","html_url":"https://github.com/trystant","followers_url":"https://api.github.com/users/trystant/followers","following_url":"https://api.github.com/users/trystant/following{/other_user}","gists_url":"https://api.github.com/users/trystant/gists{/gist_id}","starred_url":"https://api.github.com/users/trystant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trystant/subscriptions","organizations_url":"https://api.github.com/users/trystant/orgs","repos_url":"https://api.github.com/users/trystant/repos","events_url":"https://api.github.com/users/trystant/events{/privacy}","received_events_url":"https://api.github.com/users/trystant/received_events","type":"User","site_admin":false},"labels":[{"id":219026727,"url":"https://api.github.com/repos/EBWiki/EBWiki/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T02:40:22Z","updated_at":"2018-03-15T19:14:22Z","closed_at":"2018-03-15T19:14:22Z","author_association":"CONTRIBUTOR","body":"View details in Rollbar: [https://rollbar.com/trystant/BOW/items/531/](https://rollbar.com/trystant/BOW/items/531/)\n\n```\n\nPG::InsufficientPrivilege: ERROR:  permission denied for relation ahoy_events\n\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb\", line 602, in exec_prepared\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb\", line 602, in block in exec_cache\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract_adapter.rb\", line 484, in block in log\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/notifications/instrumenter.rb\", line 20, in instrument\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract_adapter.rb\", line 478, in log\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb\", line 601, in exec_cache\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb\", line 585, in execute_and_clear\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb\", line 160, in exec_query\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/postgresql/database_statements.rb\", line 192, in exec_insert\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb\", line 108, in insert\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract/query_cache.rb\", line 14, in insert\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/relation.rb\", line 64, in insert\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/persistence.rb\", line 524, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/counter_cache.rb\", line 139, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/locking/optimistic.rb\", line 75, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/attribute_methods/dirty.rb\", line 133, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/callbacks.rb\", line 306, in block in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 88, in __run_callbacks__\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 778, in _run_create_callbacks\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/callbacks.rb\", line 306, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/timestamp.rb\", line 57, in _create_record\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/persistence.rb\", line 504, in create_or_update\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/callbacks.rb\", line 302, in block in create_or_update\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 117, in call\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 555, in block (2 levels) in compile\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 505, in call\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 92, in __run_callbacks__\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.rc1/lib/active_support/callbacks.rb\", line 778, in _run_save_callbacks\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/callbacks.rb\", line 302, in create_or_update\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/persistence.rb\", line 142, in save!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/bullet-5.1.1/lib/bullet/active_record42.rb\", line 35, in save_with_bullet!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/validations.rb\", line 43, in save!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/attribute_methods/dirty.rb\", line 29, in save!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/transactions.rb\", line 291, in block in save!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/transactions.rb\", line 351, in block in with_transaction_returning_status\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb\", line 213, in block in transaction\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract/transaction.rb\", line 184, in within_new_transaction\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/connection_adapters/abstract/database_statements.rb\", line 213, in transaction\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/transactions.rb\", line 220, in transaction\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/transactions.rb\", line 348, in with_transaction_returning_status\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.rc1/lib/active_record/transactions.rb\", line 291, in save!\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/ahoy_matey-1.4.2/lib/ahoy/stores/active_record_store.rb\", line 39, in track_event\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/ahoy_matey-1.4.2/lib/ahoy/tracker.rb\", line 21, in track\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/ahoy_matey-1.4.2/app/controllers/ahoy/events_controller.rb\", line 27, in block in create\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/ahoy_matey-1.4.2/app/controllers/ahoy/events_controller.rb\", line 17, in each\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/ahoy_matey-1.4.2/app/controllers/ahoy/events_controller.rb\", line 17, in create\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.rc1/lib/action_controller/metal/implicit_render.rb\", line 4, in send_action\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.rc1/lib/abstract_controller/base.rb\", line 198, in process_action\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.rc1/lib/action_controller/metal/rendering.rb\", line 10, in process_action\n  File \"/app/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.rc1/lib/abstract_\n```\n"}}
{"actor":{"display_login":"rlgreen91"}}