Hello,
Should you be able to hab pkg upload
from within a hab studio
session?
According to learn.chef.io step 6 it appears that the tutorial is uploading packages from within the tutorial.
However, I’m trying to get a new user spun up, and they are getting a “No auth token specified” error message. And it appears that HAB_AUTH_TOKEN
is not being set in the studio.
The tutorial appears to be written against hab 0.56.0/20180530234342
which is almost a year old at this point… So I’m wondering if this feature was intentionally (or otherwise) removed?
Log of session
$ cat ~/.hab/etc/cli.toml
auth_token = "***"
origin = "myorigin"
bldr_url = "https://bldr.habitat.sh/"
$ hab studio enter
hab-studio: Importing 'myorigin' secret origin key
» Importing origin key from standard input
★ Imported secret origin key myorigin-20181029230754.
hab-studio: Importing 'myorigin' public origin key
» Importing origin key from standard input
★ Imported public origin key myorigin-20181029230754.
hab-studio: Exported: HAB_LICENSE=accept-no-persist
hab-studio: Exported: HAB_ORIGIN=myorigin
--> Launching the Habitat Supervisor in the background...
Running: hab sup run
* Use 'hab svc start' & 'hab svc stop' to start and stop services
* Use 'sup-log' to tail the Supervisor's output (Ctrl+c to stop)
* Use 'sup-term' to terminate the Supervisor
* To pass custom arguments to run the Supervisor, export
'HAB_STUDIO_SUP' with the arguments before running
'hab studio enter'.
--> To prevent a Supervisor from running automatically in your
Studio, export 'HAB_STUDIO_SUP=false' before running
'hab studio enter'.
... build package as normal ...
[8][default:/src:0]# export RUST_LOG=debug
[9][default:/src:0]# hab pkg upload ./results/myorigin-webapp-0.2.0-20190513165050-x86_64-linux.hart
[2019-05-15T17:17:29Z DEBUG habitat_common::ui] UI { shell: Shell { input: InputStream { isatty: true }, out: OutputStream { coloring: Auto, isatty: true }, err: OutputStream { coloring: Auto, isatty: true } } }
[2019-05-15T17:17:29Z DEBUG hab] clap cli args: ["hab", "pkg", "upload", "./results/myorigin-webapp-0.2.0-20190513165050-x86_64-linux.hart"]
[2019-05-15T17:17:29Z DEBUG hab] remaining cli args: []
[2019-05-15T17:17:29Z DEBUG hab::config] No CLI config found, loading defaults
[2019-05-15T17:17:29Z DEBUG hab::config] No CLI config found, loading defaults
✗✗✗
✗✗✗ No auth token specified
✗✗✗
[10][default:/src:1]#
[11][default:/src:1]# env | grep HAB
HAB_ORIGIN=myorigin
HAB_LICENSE=accept-no-persist
So it seems like this was changed, but was the change intentional? If not, I can open a ticket, but if so, what’s the process for updating the training doc?
Thanks!
-QBRD