{"action":"opened","issue":{"url":"https://api.github.com/repos/airbnb/synapse/issues/229","repository_url":"https://api.github.com/repos/airbnb/synapse","labels_url":"https://api.github.com/repos/airbnb/synapse/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/synapse/issues/229/comments","events_url":"https://api.github.com/repos/airbnb/synapse/issues/229/events","html_url":"https://github.com/airbnb/synapse/issues/229","id":218041482,"number":229,"title":"Unexpected error when migrating from Synapse-0.13.8 to Synapse-0.14.3","user":{"login":"microwavedboy","id":723391,"avatar_url":"https://avatars1.githubusercontent.com/u/723391?v=3","gravatar_id":"","url":"https://api.github.com/users/microwavedboy","html_url":"https://github.com/microwavedboy","followers_url":"https://api.github.com/users/microwavedboy/followers","following_url":"https://api.github.com/users/microwavedboy/following{/other_user}","gists_url":"https://api.github.com/users/microwavedboy/gists{/gist_id}","starred_url":"https://api.github.com/users/microwavedboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microwavedboy/subscriptions","organizations_url":"https://api.github.com/users/microwavedboy/orgs","repos_url":"https://api.github.com/users/microwavedboy/repos","events_url":"https://api.github.com/users/microwavedboy/events{/privacy}","received_events_url":"https://api.github.com/users/microwavedboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-29T23:44:37Z","updated_at":"2017-03-29T23:44:37Z","closed_at":null,"body":"Gem version: 0.14.3\r\nRuby version: 2.4.0\r\nOS version: Ubuntu 14.04 (Trusty)\r\n\r\n```\r\n/usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse/config_generator.rb:15:in `rescue in create': Specified a config generator of check_interval, which could not be found: cannot load such file -- synapse/config_generator/check_interval (ArgumentError)\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse/config_generator.rb:8:in `create'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse.rb:99:in `block in create_config_generators'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse.rb:96:in `each'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse.rb:96:in `create_config_generators'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/lib/synapse.rb:17:in `initialize'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/bin/synapse:59:in `new'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/gems/synapse-0.14.3/bin/synapse:59:in `<top (required)>'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/bin/synapse:22:in `load'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0@global/bin/synapse:22:in `<main>'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'\r\n\tfrom /usr/local/rvm-ansible/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\n\r\nHere's an example stanza from my synapse configuration that will generate this error:\r\n\r\n```\r\ncheck_interval: 30\r\nmax_checks: 0\r\nhaproxy:\r\n    reload_command: \"sudo service haproxy reload\"\r\n    bind_address: localhost\r\n    config_file_path: \"/etc/haproxy/haproxy.cfg\"\r\n    do_writes: \"true\"\r\n    do_reloads: \"true\"\r\n    global:\r\n        - \"daemon\"\r\n        - \"user    haproxy\"\r\n        - \"group   haproxy\"\r\n        - \"maxconn 4096\"\r\n        - \"log     /dev/log local2 debug\"\r\n        - \"stats   socket /var/run/haproxy.sock\"\r\n    defaults:\r\n        - \"log global\"\r\n        - \"log-format %ST\\\\ %Tt\\\\ %Tr\\\\ %B\\\\ %b\\\\ %s\\\\ %{+Q}r\"\r\n\r\n        - \"balance  roundrobin\"\r\n        - \"timeout connect 5000ms\"\r\n        - \"timeout client 50000ms\"\r\n        - \"timeout server 50000ms\"\r\n        - \"mode http\"\r\n\r\nservices:\r\n    alert_api:\r\n        default_servers:\r\n            - name: \"default-alert_api\"\r\n              host: \"localhost\"\r\n              port: \"39999\"\r\n        discovery:\r\n            method: \"ec2tag\"\r\n            tag_name: \"environment\"\r\n            tag_value: \"production\"\r\n            selector: i.tags.has_key? alert_api\r\n\r\n            check_interval: 60\r\n            aws_access_key_id: \"REDACTED\"\r\n            aws_secret_access_key: \"SUPER-SEKRIT\"\r\n            aws_region: \"us-east-1\"\r\n        haproxy:\r\n            server_port_override: \"39999\"\r\n            port: \"8999\"\r\n            server_options: \"check inter 20000 fastinter 5000 \"\r\n            backend:\r\n            - \"mode http\"\r\n```"}}
{"actor":{"display_login":"microwavedboy"}}