{"action":"created","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/5607","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5607/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5607/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5607/events","html_url":"https://github.com/habitat-sh/habitat/issues/5607","id":359129788,"node_id":"MDU6SXNzdWUzNTkxMjk3ODg=","number":5607,"title":"strange `hab svc load` behavior","user":{"login":"bixu","id":339799,"node_id":"MDQ6VXNlcjMzOTc5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/339799?v=4","gravatar_id":"","url":"https://api.github.com/users/bixu","html_url":"https://github.com/bixu","followers_url":"https://api.github.com/users/bixu/followers","following_url":"https://api.github.com/users/bixu/following{/other_user}","gists_url":"https://api.github.com/users/bixu/gists{/gist_id}","starred_url":"https://api.github.com/users/bixu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bixu/subscriptions","organizations_url":"https://api.github.com/users/bixu/orgs","repos_url":"https://api.github.com/users/bixu/repos","events_url":"https://api.github.com/users/bixu/events{/privacy}","received_events_url":"https://api.github.com/users/bixu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-11T16:42:41Z","updated_at":"2018-09-11T16:52:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm seeing behavior where the `hab svc` command incorrectly reports whether or not a service is loaded. See below for detail:\r\n\r\n- [x] The OS (including version) where you are running any of the Habitat commands:\r\n```\r\n$ uname -a\r\nLinux staging-fullstack-0 4.4.0-1065-aws #75-Ubuntu SMP Fri Aug 10 11:14:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n$ cat /etc/issue\r\nUbuntu 16.04.5 LTS \\n \\l\r\n```\r\n- [x] Debug/backtrace of the command you are trying to run. You can set the following environment variables before running the `hab` command to generate a trace:\r\n```\r\n$ RUST_LOG=debug RUST_BACKTRACE=1 hab svc status smartb-private/api\r\nDEBUG 2018-09-11T16:36:29Z: habitat_common::ui: UI { shell: Shell { input: InputStream { isatty: true }, out: OutputStream { coloring: Auto, isatty: true, is_colored(): true, supports_color(): true }, err: OutputStream { coloring: Auto, isatty: true, is_colored(): true, supports_color(): true } } }\r\nDEBUG 2018-09-11T16:36:29Z: hab: clap cli args: [\"hab\", \"svc\", \"status\", \"smartb-private/api\"]\r\nDEBUG 2018-09-11T16:36:29Z: hab: remaining cli args: []\r\nDEBUG 2018-09-11T16:36:29Z: hab::config: No CLI config found, loading defaults\r\nDEBUG 2018-09-11T16:36:29Z: tokio_reactor::background: starting background reactor\r\nDEBUG 2018-09-11T16:36:29Z: tokio_reactor: loop process - 1 events, 0.000s\r\nDEBUG 2018-09-11T16:36:29Z: tokio_reactor: loop process - 1 events, 0.000s\r\nDEBUG 2018-09-11T16:36:29Z: tokio_reactor: dropping I/O source: 0\r\n✗✗✗\r\n✗✗✗ [Err: 2] Service not loaded, smartb-private/api\r\n✗✗✗\r\n\r\n$ RUST_LOG=debug RUST_BACKTRACE=1 hab svc load smartb-private/api --group=staging --channel=unstable --strategy=at-once --bind=redis:redis.staging\r\nDEBUG 2018-09-11T16:36:56Z: habitat_common::ui: UI { shell: Shell { input: InputStream { isatty: true }, out: OutputStream { coloring: Auto, isatty: true, is_colored(): true, supports_color(): true }, err: OutputStream { coloring: Auto, isatty: true, is_colored(): true, supports_color(): true } } }\r\nDEBUG 2018-09-11T16:36:56Z: hab: clap cli args: [\"hab\", \"svc\", \"load\", \"smartb-private/api\", \"--group=staging\", \"--channel=unstable\", \"--strategy=at-once\", \"--bind=redis:redis.staging\"]\r\nDEBUG 2018-09-11T16:36:56Z: hab: remaining cli args: []\r\nDEBUG 2018-09-11T16:36:56Z: hab::config: No CLI config found, loading defaults\r\nDEBUG 2018-09-11T16:36:56Z: tokio_reactor::background: starting background reactor\r\nDEBUG 2018-09-11T16:36:56Z: tokio_reactor: loop process - 1 events, 0.000s\r\nDEBUG 2018-09-11T16:36:56Z: tokio_reactor: loop process - 1 events, 0.000s\r\nDEBUG 2018-09-11T16:36:56Z: tokio_reactor: loop process - 1 events, 0.000s\r\nDEBUG 2018-09-11T16:36:56Z: tokio_reactor: dropping I/O source: 0\r\n✗✗✗\r\n✗✗✗ [Err: 3] Service already loaded, unload 'smartb-private/api' and try again\r\n✗✗✗\r\n\r\n$ cat /hab/sup/default/specs/api.spec \r\nident = \"smartb-private/api\"\r\ngroup = \"staging\"\r\nbldr_url = \"https://bldr.habitat.sh\"\r\nchannel = \"unstable\"\r\ntopology = \"standalone\"\r\nupdate_strategy = \"at-once\"\r\nbinds = [\"redis:redis.staging\"]\r\nbinding_mode = \"strict\"\r\ndesired_state = \"up\"\r\n```\r\n\t\t\r\n- [x] Current Habitat environment variables where the  supervisor is running:\r\nNone.\r\n"},"comment":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/comments/420342830","html_url":"https://github.com/habitat-sh/habitat/issues/5607#issuecomment-420342830","issue_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5607","id":420342830,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDM0MjgzMA==","user":{"login":"bixu","id":339799,"node_id":"MDQ6VXNlcjMzOTc5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/339799?v=4","gravatar_id":"","url":"https://api.github.com/users/bixu","html_url":"https://github.com/bixu","followers_url":"https://api.github.com/users/bixu/followers","following_url":"https://api.github.com/users/bixu/following{/other_user}","gists_url":"https://api.github.com/users/bixu/gists{/gist_id}","starred_url":"https://api.github.com/users/bixu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bixu/subscriptions","organizations_url":"https://api.github.com/users/bixu/orgs","repos_url":"https://api.github.com/users/bixu/repos","events_url":"https://api.github.com/users/bixu/events{/privacy}","received_events_url":"https://api.github.com/users/bixu/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T16:52:04Z","updated_at":"2018-09-11T16:52:04Z","author_association":"CONTRIBUTOR","body":"Here's the `svc load` I'm doing, with the bind flag:\r\n```\r\nhab svc load smartb-private/api --group staging --channel unstable --strategy at-once --bind redis:redis.staging\r\n```\r\nAm I missing something?"}}
{"actor":{"display_login":"bixu"}}