Docker Studio Issue


#1

When attempting to use the Hab studio on a Mac:

hab studio enter 
   hab-studio: No secret keys imported! Did you mean to set HAB_ORIGIN?
To specify a HAB_ORIGIN, either set the HAB_ORIGIN environment
variable to your origin name or run 'hab setup' and specify a
default origin.
   hab-studio: Exported: HAB_AUTH_TOKEN=[redacted]
   hab-studio: Exported: HAB_ORIGIN=fifthecho
-R does not exist!
   unknown: Build time: 0m0s
   unknown: Exiting on error

This is inconsistent between projects, but once it affects a plan it won’t let me into a Studio.

This is on hab 0.61.0/20180815171832


#2

I’m most curious about that line. Can you include the full output you get when entering the studio with env RUST_LOG=debug hab studio enter ?


#3

It looks like https://github.com/habitat-sh/habitat/issues/5483, though in a slightly different context.


#4

Confirmed this is that bug. The current workaround is to hab studio rm, but we should have it fixed soon.


#5
hab studio rm
Error: No such container: Users--fifthecho--Code--Habitat--foo

DEBUG 2018-08-21T20:25:24Z: 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 } } }
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::enter: Setting HAB_CACHE_KEY_PATH=/Users/fifthecho/.hab/cache/keys
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::enter: Setting ARTIFACT_PATH=/Users/fifthecho/.hab/cache/artifacts
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "version" "--format=\'{{.Server.Os}}\'"
DEBUG 2018-08-21T20:25:24Z: hab::analytics: Event: v=1&tid=UA-6369228-7&cid=175fc11d-75a3-40a3-adee-e74da1f63072&t=event&aip=1&an=hab&av=0.61.0%2F20180815171832&ds=cli--hab&ec=invoke&ea=hab--studio--enter
DEBUG 2018-08-21T20:25:24Z: hab::analytics: Creating directory /Users/fifthecho/.hab/cache/analytics
DEBUG 2018-08-21T20:25:24Z: hab::analytics: Creating file /Users/fifthecho/.hab/cache/analytics/event-1534883124.437519000.txt
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "images" "habitat/default-studio:0.61.0" "-q"
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Found Studio Docker image locally.
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "version" "--format=\'{{.Server.Os}}\'"
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "version" "--format=\'{{.Server.Os}}\'"
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "version" "--format=\'{{.Server.Os}}\'"
DEBUG 2018-08-21T20:25:24Z: hab::command::studio::docker: Running command: "/usr/local/bin/docker" "version" "--format=\'{{.Server.Os}}\'"
DEBUG 2018-08-21T20:25:26Z: habitat_core::os::process::imp: Calling execvp(): ("/usr/local/bin/docker") ["start", "--interactive", "Users--fifthecho--Code--Habitat--foo"]
   hab-studio: No secret keys imported! Did you mean to set HAB_ORIGIN?
To specify a HAB_ORIGIN, either set the HAB_ORIGIN environment
variable to your origin name or run 'hab setup' and specify a
default origin.
   hab-studio: Exported: HAB_AUTH_TOKEN=[redacted]
   hab-studio: Exported: HAB_ORIGIN=fifthecho
-R does not exist!
   unknown: Build time: 0m0s
   unknown: Exiting on error
``

#6

Thanks for the info, @fifthecho. The fix was merged just yesterday, so should be in the next release.