{"action":"created","issue":{"url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/1","labels_url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/1/comments","events_url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/1/events","html_url":"https://github.com/kwhrtsk/chef-errbit-server/issues/1","id":106431776,"number":1,"title":"undefined method `base_path' for {\"supports_reload\"=>false}:ResourceMasher::ResourceMash","user":{"login":"JustinAiken","id":1568662,"avatar_url":"https://avatars.githubusercontent.com/u/1568662?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinAiken","html_url":"https://github.com/JustinAiken","followers_url":"https://api.github.com/users/JustinAiken/followers","following_url":"https://api.github.com/users/JustinAiken/following{/other_user}","gists_url":"https://api.github.com/users/JustinAiken/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinAiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinAiken/subscriptions","organizations_url":"https://api.github.com/users/JustinAiken/orgs","repos_url":"https://api.github.com/users/JustinAiken/repos","events_url":"https://api.github.com/users/JustinAiken/events{/privacy}","received_events_url":"https://api.github.com/users/JustinAiken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-14T21:27:37Z","updated_at":"2015-09-19T05:48:09Z","closed_at":null,"body":"On the first (and subsequent) runs of this, it install rbenv/unicorn, but then crashes, log below.\r\n\r\n- Chef: 12.4.1\r\n- Knife Solo\r\n- No attributes, just running the recipe straight..\r\n\r\n```\r\nRecipe: errbit-server::app\r\n  * service_factory[errbit] action create\r\n    * service_factory_provider[errbit] action install\r\n\r\n      ================================================================================\r\n      Error executing action `install` on resource 'service_factory_provider[errbit]'\r\n      ================================================================================\r\n\r\n      NoMethodError\r\n      -------------\r\n      undefined method `base_path' for {\"supports_reload\"=>false}:ResourceMasher::ResourceMash\r\n\r\n      Cookbook Trace:\r\n      ---------------\r\n      /root/chef-solo/cookbooks-2/resource_masher/libraries/resource_masher.rb:48:in `method_missing'\r\n      /root/chef-solo/cookbooks-2/service_factory/libraries/mixin_provider_unix.rb:100:in `unix_path_prep'\r\n      /root/chef-solo/cookbooks-2/service_factory/libraries/provider_upstart.rb:44:in `install_service'\r\n      /root/chef-solo/cookbooks-2/service_factory/libraries/provider.rb:55:in `action_install'\r\n      /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:36:in `block in run_action_now'\r\n      /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:35:in `each'\r\n      /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:35:in `run_action_now'\r\n      /root/chef-solo/cookbooks-2/service_factory/providers/default.rb:41:in `block in class_from_file'\r\n\r\n      Resource Declaration:\r\n      ---------------------\r\n      # In /root/chef-solo/cookbooks-2/service_factory/providers/default.rb\r\n\r\n       42:     service_factory_provider new_resource.name do\r\n       43:       action :install\r\n       44:       factory new_resource\r\n       45:       provider sub_provider_name\r\n       46:     end\r\n       47:   ))\r\n\r\n      Compiled Resource:\r\n      ------------------\r\n      # Declared in /root/chef-solo/cookbooks-2/service_factory/providers/default.rb:42:in `block in class_from_file'\r\n\r\n      service_factory_provider(\"errbit\") do\r\n        provider Chef::Provider::ServiceFactoryProvider::Upstart\r\n        action [:nothing]\r\n        retries 0\r\n        retry_delay 2\r\n        default_guard_interpreter :default\r\n        service_name \"errbit\"\r\n        factory # Declared in /root/chef-solo/cookbooks-2/errbit-server/recipes/app.rb:71:in `from_file'\r\n\r\n      service_factory(\"errbit\") do\r\n        action [:create]\r\n        retries 0\r\n        retry_delay 2\r\n        default_guard_interpreter :default\r\n        declared_type :service_factory\r\n        cookbook_name :\"errbit-server\"\r\n        recipe_name \"app\"\r\n        service_desc \"Errbit Unicorn\"\r\n        exec \"/opt/errbit/unicorn.sh\"\r\n        env_variables {\"PORT\"=>\"3000\", \"RAILS_ENV\"=>\"production\", \"UNICORN_PID\"=>\"/opt/errbit/shared/pids/unicorn.pid\", \"ERRBIT_HOST\"=>\"errbit.example.com\", \"ERRBIT_PROTOCOL\"=>\"http\", \"ERRBIT_ENFORCE_SSL\"=>\"false\", \"CONFIRM_RESOLVE_ERR\"=>\"true\", \"ERRBIT_CONFIRM_ERR_ACTIONS\"=>\"true\", \"ERRBIT_USER_HAS_USERNAME\"=>\"false\", \"ERRBIT_USE_GRAVATAR\"=>\"true\", \"ERRBIT_GRAVATAR_DEFAULT\"=>\"identicon\", \"ALLOW_COMMENTS_WITH_ISSUE_TRACKER\"=>\"true\", \"SERVE_STATIC_ASSETS\"=>\"true\", \"SECRET_KEY_BASE\"=>\"f258ed69266dc8ad0ca79363c3d2f945c388a9c5920fc9a1ae99a98fbb619f135001c6434849b625884a9405a60cd3d50fc3e3b07ecd38cbed7406a4fccdb59c\", \"ERRBIT_EMAIL_FROM\"=>\"errbit@example.com\", \"ERRBIT_EMAIL_AT_NOTICES\"=>\"[0]\", \"ERRBIT_PER_APP_EMAIL_AT_NOTICES\"=>\"false\", \"ERRBIT_NOTIFY_AT_NOTICES\"=>\"[1,10,100]\", \"ERRBIT_PER_APP_NOTIFY_AT_NOTICES\"=>\"false\", \"MONGO_URL\"=>\"mongodb://localhost\", \"GITHUB_URL\"=>\"https://github.com\", \"GITHUB_AUTHENTICATION\"=>\"true\", \"GITHUB_ACCESS_SCOPE\"=>\"[repo]\", \"DEVISE_MODULES\"=>\"[database_authenticatable,recoverable,rememberable,trackable,validatable,omniauthable]\", \"RBENV_VERSION\"=>\"2.2.2\", \"LC_ALL\"=>\"C\"}\r\n        run_user \"errbit\"\r\n        run_group \"errbit\"\r\n        pid_file \"/opt/errbit/shared/pids/unicorn.pid\"\r\n        var_subpath \"errbit\"\r\n      end\r\n\r\n        declared_type :service_factory_provider\r\n        cookbook_name :\"errbit-server\"\r\n      end\r\n\r\n\r\n    ================================================================================\r\n    Error executing action `create` on resource 'service_factory[errbit]'\r\n    ================================================================================\r\n\r\n    NoMethodError\r\n    -------------\r\n    service_factory_provider[errbit] (/root/chef-solo/cookbooks-2/service_factory/providers/default.rb line 42) had an error: NoMethodError: undefined method `base_path' for {\"supports_reload\"=>false}:ResourceMasher::ResourceMash\r\n\r\n    Cookbook Trace:\r\n    ---------------\r\n    /root/chef-solo/cookbooks-2/resource_masher/libraries/resource_masher.rb:48:in `method_missing'\r\n    /root/chef-solo/cookbooks-2/service_factory/libraries/mixin_provider_unix.rb:100:in `unix_path_prep'\r\n    /root/chef-solo/cookbooks-2/service_factory/libraries/provider_upstart.rb:44:in `install_service'\r\n    /root/chef-solo/cookbooks-2/service_factory/libraries/provider.rb:55:in `action_install'\r\n    /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:36:in `block in run_action_now'\r\n    /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:35:in `each'\r\n    /root/chef-solo/cookbooks-2/run_action_now/libraries/run_action_now.rb:35:in `run_action_now'\r\n    /root/chef-solo/cookbooks-2/service_factory/providers/default.rb:41:in `block in class_from_file'\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /root/chef-solo/cookbooks-2/errbit-server/recipes/app.rb\r\n\r\n     71: service_factory \"errbit\" do\r\n     72:   action        :create\r\n     73:   service_desc  \"Errbit Unicorn\"\r\n     74:   exec          \"/opt/errbit/unicorn.sh\"\r\n     75:   env_variables _environment\r\n     76:   run_user      _user\r\n     77:   run_group     _group\r\n     78:   pid_file      node[\"errbit\"][\"pid_file\"]\r\n     79:   create_pid    false\r\n     80: end\r\n     81:\r\n\r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /root/chef-solo/cookbooks-2/errbit-server/recipes/app.rb:71:in `from_file'\r\n\r\n    service_factory(\"errbit\") do\r\n      action [:create]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      declared_type :service_factory\r\n      cookbook_name :\"errbit-server\"\r\n      recipe_name \"app\"\r\n      service_desc \"Errbit Unicorn\"\r\n      exec \"/opt/errbit/unicorn.sh\"\r\n      env_variables {\"PORT\"=>\"3000\", \"RAILS_ENV\"=>\"production\", \"UNICORN_PID\"=>\"/opt/errbit/shared/pids/unicorn.pid\", \"ERRBIT_HOST\"=>\"errbit.example.com\", \"ERRBIT_PROTOCOL\"=>\"http\", \"ERRBIT_ENFORCE_SSL\"=>\"false\", \"CONFIRM_RESOLVE_ERR\"=>\"true\", \"ERRBIT_CONFIRM_ERR_ACTIONS\"=>\"true\", \"ERRBIT_USER_HAS_USERNAME\"=>\"false\", \"ERRBIT_USE_GRAVATAR\"=>\"true\", \"ERRBIT_GRAVATAR_DEFAULT\"=>\"identicon\", \"ALLOW_COMMENTS_WITH_ISSUE_TRACKER\"=>\"true\", \"SERVE_STATIC_ASSETS\"=>\"true\", \"SECRET_KEY_BASE\"=>\"f258ed69266dc8ad0ca79363c3d2f945c388a9c5920fc9a1ae99a98fbb619f135001c6434849b625884a9405a60cd3d50fc3e3b07ecd38cbed7406a4fccdb59c\", \"ERRBIT_EMAIL_FROM\"=>\"errbit@example.com\", \"ERRBIT_EMAIL_AT_NOTICES\"=>\"[0]\", \"ERRBIT_PER_APP_EMAIL_AT_NOTICES\"=>\"false\", \"ERRBIT_NOTIFY_AT_NOTICES\"=>\"[1,10,100]\", \"ERRBIT_PER_APP_NOTIFY_AT_NOTICES\"=>\"false\", \"MONGO_URL\"=>\"mongodb://localhost\", \"GITHUB_URL\"=>\"https://github.com\", \"GITHUB_AUTHENTICATION\"=>\"true\", \"GITHUB_ACCESS_SCOPE\"=>\"[repo]\", \"DEVISE_MODULES\"=>\"[database_authenticatable,recoverable,rememberable,trackable,validatable,omniauthable]\", \"RBENV_VERSION\"=>\"2.2.2\", \"LC_ALL\"=>\"C\"}\r\n      run_user \"errbit\"\r\n      run_group \"errbit\"\r\n      pid_file \"/opt/errbit/shared/pids/unicorn.pid\"\r\n      var_subpath \"errbit\"\r\n    end\r\n```"},"comment":{"url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/comments/141623451","html_url":"https://github.com/kwhrtsk/chef-errbit-server/issues/1#issuecomment-141623451","issue_url":"https://api.github.com/repos/kwhrtsk/chef-errbit-server/issues/1","id":141623451,"user":{"login":"kwhrtsk","id":6064217,"avatar_url":"https://avatars.githubusercontent.com/u/6064217?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhrtsk","html_url":"https://github.com/kwhrtsk","followers_url":"https://api.github.com/users/kwhrtsk/followers","following_url":"https://api.github.com/users/kwhrtsk/following{/other_user}","gists_url":"https://api.github.com/users/kwhrtsk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhrtsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhrtsk/subscriptions","organizations_url":"https://api.github.com/users/kwhrtsk/orgs","repos_url":"https://api.github.com/users/kwhrtsk/repos","events_url":"https://api.github.com/users/kwhrtsk/events{/privacy}","received_events_url":"https://api.github.com/users/kwhrtsk/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T05:48:09Z","updated_at":"2015-09-19T05:48:09Z","body":"@JustinAiken \r\nI released version 1.1.0, and this version use monit_wrapper instead of service_factory.\r\nI've tested this version CentOS 6.7 and Ubuntu 14.10.\r\nCan you try this version?\r\n`sample/` dir will be useful to understand how it works."}}