Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Nomad fs with TLS #320

Closed
mlosiewicz-pl opened this issue Sep 22, 2017 · 6 comments
Closed

Nomad fs with TLS #320

mlosiewicz-pl opened this issue Sep 22, 2017 · 6 comments
Assignees

Comments

@mlosiewicz-pl
Copy link

Just like in this issue but this time I get:
x509: certificate is valid for server.eu-west-1.nomad, client.eu-west-1.nomad, localhost, not client.global.nomad

I still have no region named global and I would like to specify which region does hashi-ui have access to.

@jippi
Copy link
Owner

jippi commented Sep 22, 2017

@mlosiewicz-pl what hashi-ui version?

@jippi jippi self-assigned this Sep 22, 2017
@jippi
Copy link
Owner

jippi commented Sep 22, 2017

and can you provide logs around the error too please?

@mlosiewicz-pl
Copy link
Author

logs:

5:08:08.887 main.go:125 ▶ INFO  Redirecting / to /nomad

15:08:10.191 connection.go:84 ▶ INFO  [9cdd8f95] Started watching /allocation/601d86c0-4692-90d2-7697-68125ef87c7d

15:08:10.285 connection.go:84 ▶ INFO  [9cdd8f95] Started watching /nodes

15:08:11.004 connection.go:84 ▶ INFO  [9cdd8f95] Unwatching /nodes

15:08:11.004 connection.go:84 ▶ INFO  [9cdd8f95] Stopped watching /nodes

15:08:11.019 connection.go:84 ▶ INFO  [9cdd8f95] Started watching /nodes

15:08:11.082 connection.go:78 ▶ ERROR  [9cdd8f95] Unable to fetch directory: Get https://apprso01a.ppr.azimo.com:4646/v1/client/fs/ls/601d86c0-4692-90d2-7697-68125ef87c7d?path=%2F&region=global: x509: certificate is valid for server.eu-west-1.nomad, client..nomad, client.eu-west-1.nomad, localhost, not client.global.nomad

15:08:12.267 connection.go:133 ▶ ERROR  Could not read payload: websocket: close 1001 (going away)

15:08:12.267 connection.go:84 ▶ INFO  [9cdd8f95] Stopped watching /nodes

15:08:12.267 connection.go:72 ▶ WARNI  [9cdd8f95] Stopping writePump

15:08:12.267 connection.go:72 ▶ WARNI  [9cdd8f95] Stopping writePump

15:08:12.267 connection.go:72 ▶ WARNI  [9cdd8f95] Stopping writePump

15:08:12.267 connection.go:72 ▶ WARNI  [9cdd8f95] Stopping writePump

15:08:12.267 connection.go:78 ▶ ERROR  [9cdd8f95] Could not write close message to websocket: websocket: close sent

15:08:12.888 connection.go:84 ▶ INFO  [9af2c5d0] Started watching /allocation/601d86c0-4692-90d2-7697-68125ef87c7d

15:08:12.963 connection.go:84 ▶ INFO  [9af2c5d0] Started watching /nodes

15:08:13.088 connection.go:78 ▶ ERROR  [9af2c5d0] Unable to fetch directory: Get https://apprso01a.ppr.azimo.com:4646/v1/client/fs/ls/601d86c0-4692-90d2-7697-68125ef87c7d?path=%2F&region=global: x509: certificate is valid for server.eu-west-1.nomad, client..nomad, client.eu-west-1.nomad, localhost, not client.global.nomad

15:08:18.887 main.go:125 ▶ INFO  Redirecting / to /nomad

15:08:22.798 connection.go:84 ▶ INFO  [9af2c5d0] Subscriptions: /allocation/601d86c0-4692-90d2-7697-68125ef87c7d, /nodes

15:08:28.888 main.go:125 ▶ INFO  Redirecting / to /nomad

15:08:32.798 connection.go:84 ▶ INFO  [9af2c5d0] Subscriptions: /nodes, /allocation/601d86c0-4692-90d2-7697-68125ef87c7d

15:08:38.889 main.go:125 ▶ INFO  Redirecting / to /nomad

15:08:42.798 connection.go:84 ▶ INFO  [9af2c5d0] Subscriptions: /allocation/601d86c0-4692-90d2-7697-68125ef87c7d, /nodes

version:

artifact {
        source = "https://github.com/jippi/hashi-ui/releases/download/v0.18.0/hashi-ui-linux-amd64"
      }

@jippi
Copy link
Owner

jippi commented Sep 22, 2017

@mlosiewicz-pl can you please try 0.19.0 - was released today as a complete backend rewrite

@mlosiewicz-pl
Copy link
Author

mlosiewicz-pl commented Sep 22, 2017

Looks like 0.19.0 is working, thanks a lot.

@jippi jippi closed this as completed Sep 22, 2017
@jippi
Copy link
Owner

jippi commented Sep 22, 2017

@mlosiewicz-pl the rewrite paid off yet again then :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants