core-plans icon indicating copy to clipboard operation
core-plans copied to clipboard

[dex]: http://localhost:5556/ returns 404

Open gavindidrichsen opened this issue 4 years ago • 0 comments

core/dex is a habitat service and exports port 5556. After starting a hab studio with HAB_DOCKER_OPTS="-p 5556:5556" hab studio enter -D and loading the dex service, then the following is observed:

➜  DUMP curl http://localhost:5556/
404 page not found

How can I verify that this habitat plan is a working version of dex? The documentation uses a sample example config for verification see here

My setup process is below

 plans git:(master) HAB_DOCKER_OPTS="-p 5556:5556" hab studio enter -D
   hab-studio: Importing 'core' secret origin key
» Importing origin key from standard input
★ Imported secret origin key core-20190502094414.
   hab-studio: Importing 'core' public origin key
» Importing origin key from standard input
★ Imported public origin key core-20200331193006.
   hab-studio: Exported: HAB_AUTH_TOKEN=[redacted]
   hab-studio: Exported: HAB_LICENSE=accept-no-persist
   hab-studio: Exported: HAB_ORIGIN=core
   hab-studio: Exported: HAB_BLDR_URL=https://bldr.habitat.sh
--> Detected and loading /src/.studiorc

--> 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'.

[1][default:/src:0]# hab pkg install core/dex
» Installing core/dex
☁ Determining latest version of core/dex in the 'stable' channel
☛ Verifying core/dex/2.24.0/20200513145409
→ Using core/glibc/2.29/20200305172459
→ Using core/linux-headers/4.19.62/20200305172241
✓ Installed core/dex/2.24.0/20200513145409
★ Install of core/dex/2.24.0/20200513145409 complete with 1 new packages installed.
[2][default:/src:0]# hab svc load core/dex
The core/dex service was successfully loaded
[3][default:/src:0]# hab svc status
package                         type        desired  state  elapsed (s)  pid  group
core/dex/2.24.0/20200513145409  standalone  up       up     1            177  dex.default

gavindidrichsen avatar Aug 26 '20 10:08 gavindidrichsen