Error when deploying and running the angular project

I am running an angular project using waypoint (building with docker and deploy with docker). It gets build and deployed successfully. I attached the screenshot of the deployment error below and also check the logs of waypoint,angular project is complied and deployed successfully

Hi @dinesh-ngpws, let’s see if we can figure out what’s going on.

I deployed the waypoint-examples/docker/ruby app just now. Despite some intermittent trouble with some of the Waypoint URL service requests (likely a separate issue we’re investigating), the app connected to the Waypoint Server and Waypoint URL service and was functioning. If you issue docker ps -a then you should be able to get the logs for your app. For me that was: docker logs example-ruby-01EP4SEF9VMACWKE7JHH1G0YRA

Near the beginning of the app logs (full logs here) there are lines that the connection to the Waypoint URL Service. Before that were some other relevant log lines as the Waypoint Entrypoint attempts (successfully in my case) to connect to the Waypoint Server.

2020-11-02T15:33:17.396Z [INFO]  url: url service enabled, configuring: addr=https://control.hzn.network service_port=3000 labels=waypoint/workspace=default,env=dev,service=example-ruby,waypoint.hashicorp.com/app=example-ruby,waypoint.hashicorp.com/project=example-ruby,waypoint.hashicorp.com/workspace=default,waypoint.hashicorp.com/instance-id=01EP4SEFP6A9WCH3P2WNPHR72S,:deployment=v1,:deployment-order=01ep4secae2qwjhjcs2xajrkpk
2020-11-02T15:33:17.396Z [DEBUG] log: connecting to log stream
2020-11-02T15:33:17.396Z [TRACE] log: log stream connected
2020-11-02T15:33:17.411Z [DEBUG] url: discovering hubs
2020-11-02T15:33:17.412Z [DEBUG] url: refreshing data
2020-11-02T15:33:17.648Z [DEBUG] url.agent: connecting to hub: addr=52.34.190.10:443
2020-11-02T15:33:17.648Z [DEBUG] url.agent: connecting to hub: addr=54.184.95.88:443
2020-11-02T15:33:17.654Z [DEBUG] url.agent: connecting to hub: addr=52.32.54.223:443
2020-11-02T15:33:17.655Z [DEBUG] url.agent: connecting to hub: addr=54.189.206.215:443
2020-11-02T15:33:22.578Z [WARN]  url.agent: disconnected from hub: error=EOF addr=52.34.190.10:443
2020-11-02T15:33:22.579Z [DEBUG] url.agent: delaying before reconnecting to same hub: addr=52.34.190.10:443
2020-11-02T15:33:22.579Z [DEBUG] url.agent: connected to hub: addr=52.32.54.223:443
2020-11-02T15:33:22.579Z [DEBUG] url.agent: connected to hub: addr=54.184.95.88:443
2020-11-02T15:33:22.579Z [DEBUG] url.agent: connected to hub: addr=54.189.206.215:443

Notice that it looks like there are some connectivity issues, but ultimately the app shows as connected to several hubs. Do your app logs indicate anything interesting for the url.agent?

Hi @jbayer The waypoint logs and exec is working fine.when I run docker logs angular-01EP6D4YKNS7VP7JWT207ARJZK …The logs are

2020-11-03T06:36:48.078Z [TRACE] starting interrupt listener for context cancellation
2020-11-03T06:36:48.078Z [INFO] entrypoint starting: deployment_id=01EP6D4SKZ7H9TPFG7J9K1Y5HD instance_id=01EP6D512EYYGVMHMJWZJ4VX2J args=[/bin/sh, -c, “ng serve --host 0.0.0.0”]
2020-11-03T06:36:48.078Z [INFO] entrypoint version: full_string=“Waypoint v0.1.4” version=v0.1.4 prerelease= metadata= revision=
2020-11-03T06:36:48.078Z [INFO] connecting to server: addr=waypoint-server:9701 tls=true tls_skip_verify=true
2020-11-03T06:36:48.078Z [DEBUG] waiting on server connection state to become ready
2020-11-03T06:36:48.078Z [TRACE] connection state: state=IDLE
2020-11-03T06:36:48.078Z [TRACE] interrupt listener goroutine started
2020-11-03T06:36:48.079Z [TRACE] connection state: state=CONNECTING
2020-11-03T06:36:48.110Z [TRACE] connection state: state=READY
2020-11-03T06:36:48.110Z [INFO] connection is ready
2020-11-03T06:36:48.110Z [INFO] converting invite token to login token
2020-11-03T06:36:48.151Z [INFO] reconnecting to server with authentication
2020-11-03T06:36:48.151Z [TRACE] requesting version info from server
2020-11-03T06:36:48.188Z [INFO] server version info: version=v0.1.4 api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2020-11-03T06:36:48.189Z [INFO] negotiated entrypoint protocol version: version=1
2020-11-03T06:36:48.189Z [DEBUG] config: registering instance, requesting config
2020-11-03T06:36:48.189Z [TRACE] config: config stream connected, waiting for first config
2020-11-03T06:36:48.446Z [TRACE] config: first config received
2020-11-03T06:36:48.446Z [INFO] url: url service enabled, configuring: addr=https://control.hzn.network service_port=4200 labels=waypoint/workspace=default,waypoint.hashicorp.com/app=angular,waypoint.hashicorp.com/project=bc-iot,waypoint.hashicorp.com/workspace=default,waypoint.hashicorp.com/instance-id=01EP6D512EYYGVMHMJWZJ4VX2J,:deployment=v1,:deployment-order=01ep6d4skz7h9tpfg7j9k1y5hd
2020-11-03T06:36:48.446Z [DEBUG] log: connecting to log stream
2020-11-03T06:36:48.446Z [INFO] starting child process: args=[/bin/sh, -c, “ng serve --host 0.0.0.0”] cmd=/bin/sh
2020-11-03T06:36:48.447Z [TRACE] log: log stream connected
2020-11-03T06:36:48.496Z [DEBUG] url: discovering hubs
2020-11-03T06:36:48.497Z [DEBUG] url: refreshing data
2020-11-03T06:36:49.819Z [DEBUG] url.agent: connecting to hub: addr=54.184.95.88:443
2020-11-03T06:36:49.833Z [DEBUG] url.agent: connecting to hub: addr=52.32.54.223:443
2020-11-03T06:36:49.839Z [DEBUG] url.agent: connecting to hub: addr=54.189.206.215:443
2020-11-03T06:36:49.853Z [DEBUG] url.agent: connecting to hub: addr=54.191.118.135:443
2020-11-03T06:36:50.610Z [DEBUG] url.agent: connection latency: latency=285.837285ms
2020-11-03T06:36:50.610Z [DEBUG] url.agent: connected successfully: status=connected latency=285.837285ms skew=96.899397ms
2020-11-03T06:36:50.610Z [DEBUG] url.agent: connected to hub: addr=52.32.54.223:443
2020-11-03T06:36:50.662Z [DEBUG] url.agent: connection latency: latency=322.022796ms
2020-11-03T06:36:50.662Z [DEBUG] url.agent: connected successfully: status=connected latency=322.022796ms skew=99.985649ms
2020-11-03T06:36:50.662Z [DEBUG] url.agent: connected to hub: addr=54.184.95.88:443
2020-11-03T06:36:50.698Z [DEBUG] url.agent: connection latency: latency=370.653716ms
2020-11-03T06:36:50.698Z [DEBUG] url.agent: connected successfully: status=connected latency=370.653716ms skew=97.090287ms
2020-11-03T06:36:50.698Z [DEBUG] url.agent: connected to hub: addr=54.189.206.215:443
2020-11-03T06:36:50.731Z [DEBUG] url.agent: connection latency: latency=378.77862ms
2020-11-03T06:36:50.731Z [DEBUG] url.agent: connected successfully: status=connected latency=378.77862ms skew=97.606794ms
2020-11-03T06:36:50.731Z [DEBUG] url.agent: connected to hub: addr=54.191.118.135:443
WARNING: This is a simple server for use in testing or debugging Angular applications
locally. It hasn’t been reviewed for security issues.

Binding this server to an open connection can result in compromising your application or
computer. Using a different host than the one passed to the “–host” flag might result in
websocket connection issues. You might need to use “–disableHostCheck” if that’s the
case.2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=“WARNING: This is a simple server for use in testing or debugging Angular applications”
2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=“locally. It hasn’t been reviewed for security issues.”
2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=
2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=“Binding this server to an open connection can result in compromising your application or”
2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=“computer. Using a different host than the one passed to the “–host” flag might result in”
2020-11-03T06:36:53.713Z [TRACE] log: sending line: line=“websocket connection issues. You might need to use “–disableHostCheck” if that’s the”

2020-11-03T06:36:53.714Z [TRACE] log: sending line: line=case.
Compiling @angular/core : es2015 as esm2015
2020-11-03T06:36:59.281Z [TRACE] log: sending line: line=“Compiling @angular/core : es2015 as esm2015”
Compiling @angular/animations : es2015 as esm2015
2020-11-03T06:36:59.472Z [TRACE] log: sending line: line=“Compiling @angular/animations : es2015 as esm2015”
Compiling @angular/compiler/testing : es2015 as esm2015
2020-11-03T06:36:59.548Z [TRACE] log: sending line: line=“Compiling @angular/compiler/testing : es2015 as esm2015”
Compiling @angular/core/testing : es2015 as esm2015
Compiling @angular/animations/browser : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
2020-11-03T06:37:09.089Z [TRACE] log: sending line: line=“Compiling @angular/core/testing : es2015 as esm2015”
2020-11-03T06:37:09.089Z [TRACE] log: sending line: line=“Compiling @angular/animations/browser : es2015 as esm2015”
2020-11-03T06:37:09.090Z [TRACE] log: sending line: line=“Compiling @angular/common : es2015 as esm2015”
Compiling @angular/platform-browser : es2015 as esm2015
2020-11-03T06:37:13.611Z [TRACE] log: sending line: line=“Compiling @angular/platform-browser : es2015 as esm2015”
Compiling @angular/forms : es2015 as esm2015
2020-11-03T06:37:14.067Z [TRACE] log: sending line: line=“Compiling @angular/forms : es2015 as esm2015”
Compiling @angular/common/http : es2015 as esm2015
2020-11-03T06:37:14.750Z [TRACE] log: sending line: line=“Compiling @angular/common/http : es2015 as esm2015”
Compiling @angular/platform-browser-dynamic : es2015 as esm2015
2020-11-03T06:37:16.698Z [TRACE] log: sending line: line=“Compiling @angular/platform-browser-dynamic : es2015 as esm2015”
Compiling @angular/platform-browser/testing : es2015 as esm2015
2020-11-03T06:37:18.517Z [TRACE] log: sending line: line=“Compiling @angular/platform-browser/testing : es2015 as esm2015”
Compiling @angular/common/testing : es2015 as esm2015
2020-11-03T06:37:18.895Z [TRACE] log: sending line: line=“Compiling @angular/common/testing : es2015 as esm2015”
Compiling @angular/router : es2015 as esm2015
2020-11-03T06:37:20.294Z [TRACE] log: sending line: line=“Compiling @angular/router : es2015 as esm2015”
Compiling @angular/animations/browser/testing : es2015 as esm2015
2020-11-03T06:37:21.254Z [TRACE] log: sending line: line=“Compiling @angular/animations/browser/testing : es2015 as esm2015”
Compiling @angular/common/http/testing : es2015 as esm2015
2020-11-03T06:37:21.797Z [TRACE] log: sending line: line=“Compiling @angular/common/http/testing : es2015 as esm2015”
Compiling @angular/platform-browser/animations : es2015 as esm2015
2020-11-03T06:37:23.694Z [TRACE] log: sending line: line=“Compiling @angular/platform-browser/animations : es2015 as esm2015”
Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015
2020-11-03T06:37:24.164Z [TRACE] log: sending line: line=“Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015”
Compiling @angular/router/testing : es2015 as esm2015
2020-11-03T06:37:24.648Z [TRACE] log: sending line: line=“Compiling @angular/router/testing : es2015 as esm2015”
Compiling @ng-bootstrap/ng-bootstrap : es2015 as esm2015
2020-11-03T06:37:26.915Z [TRACE] log: sending line: line=“Compiling @ng-bootstrap/ng-bootstrap : es2015 as esm2015”
Compiling @ng-select/ng-select : es2015 as esm2015
2020-11-03T06:37:27.541Z [TRACE] log: sending line: line=“Compiling @ng-select/ng-select : es2015 as esm2015”
Compiling ng-apexcharts : es2015 as esm2015
2020-11-03T06:37:27.616Z [TRACE] log: sending line: line=“Compiling ng-apexcharts : es2015 as esm2015”

chunk {default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts} default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts.js, default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts.js.map (default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts) 317 kB [rendered]
chunk {default~layouts-home-home-module~src-app-shared-modules-shared-module-ts} default~layouts-home-home-module~src-app-shared-modules-shared-module-ts.js, default~layouts-home-home-module~src-app-shared-modules-shared-module-ts.js.map (default~layouts-home-home-module~src-app-shared-modules-shared-module-ts) 562 kB [rendered]
chunk {layouts-home-home-module} layouts-home-home-module.js, layouts-home-home-module.js.map (layouts-home-home-module) 280 kB [rendered]
chunk {main} main.js, main.js.map (main) 62.8 kB [initial] [rendered]
chunk {modules-customer-list-customer-list-module} modules-customer-list-customer-list-module.js, modules-customer-list-customer-list-module.js.map (modules-customer-list-customer-list-module) 776 kB [rendered]
chunk {modules-customers-status-customers-status-module} modules-customers-status-customers-status-module.js, modules-customers-status-customers-status-module.js.map (modules-customers-status-customers-status-module) 11.3 kB [rendered]
chunk {modules-dashboard-dashboard-module} modules-dashboard-dashboard-module.js, modules-dashboard-dashboard-module.js.map (modules-dashboard-dashboard-module) 5.29 kB [rendered]
chunk {modules-login-login-module} modules-login-login-module.js, modules-login-login-module.js.map (modules-login-login-module) 38.6 kB [rendered]
chunk {modules-onboard-onbaord-module} modules-onboard-onbaord-module.js, modules-onboard-onbaord-module.js.map (modules-onboard-onbaord-module) 26.8 kB [rendered]
chunk {modules-settings-settings-module} modules-settings-settings-module.js, modules-settings-settings-module.js.map (modules-settings-settings-module) 62.2 kB [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 147 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 9.81 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 699 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.6 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.12 MB [initial] [rendered]
Date: 2020-11-03T06:38:04.179Z - Hash: e3269ce29e31dc5cdd83 - Time: 26789ms
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts} default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts.js, default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts.js.map (default~layouts-home-home-module~modules-login-login-module~src-app-shared-modules-shared-module-ts) 317 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {default~layouts-home-home-module~src-app-shared-modules-shared-module-ts} default~layouts-home-home-module~src-app-shared-modules-shared-module-ts.js, default~layouts-home-home-module~src-app-shared-modules-shared-module-ts.js.map (default~layouts-home-home-module~src-app-shared-modules-shared-module-ts) 562 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {layouts-home-home-module} layouts-home-home-module.js, layouts-home-home-module.js.map (layouts-home-home-module) 280 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {main} main.js, main.js.map (main) 62.8 kB [initial] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-customer-list-customer-list-module} modules-customer-list-customer-list-module.js, modules-customer-list-customer-list-module.js.map (modules-customer-list-customer-list-module) 776 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-customers-status-customers-status-module} modules-customers-status-customers-status-module.js, modules-customers-status-customers-status-module.js.map (modules-customers-status-customers-status-module) 11.3 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-dashboard-dashboard-module} modules-dashboard-dashboard-module.js, modules-dashboard-dashboard-module.js.map (modules-dashboard-dashboard-module) 5.29 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-login-login-module} modules-login-login-module.js, modules-login-login-module.js.map (modules-login-login-module) 38.6 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-onboard-onbaord-module} modules-onboard-onbaord-module.js, modules-onboard-onbaord-module.js.map (modules-onboard-onbaord-module) 26.8 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {modules-settings-settings-module} modules-settings-settings-module.js, modules-settings-settings-module.js.map (modules-settings-settings-module) 62.2 kB [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 147 kB [initial] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {runtime} runtime.js, runtime.js.map (runtime) 9.81 kB [entry] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {scripts} scripts.js, scripts.js.map (scripts) 699 kB [entry] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {styles} styles.js, styles.js.map (styles) 1.6 MB [initial] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“chunk {vendor} vendor.js, vendor.js.map (vendor) 3.12 MB [initial] [rendered]”
2020-11-03T06:38:04.182Z [TRACE] log: sending line: line=“Date: 2020-11-03T06:38:04.179Z - Hash: e3269ce29e31dc5cdd83 - Time: 26789ms”
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
2020-11-03T06:38:04.187Z [TRACE] log: sending line: line="** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **"
: Compiled successfully.
2020-11-03T06:38:04.189Z [TRACE] log: sending line: line=": Compiled successfully."
2020-11-03T06:38:07.551Z [TRACE] log: sending line: line=
2020-11-03T06:38:07.551Z [TRACE] log: sending line: line=“Date: 2020-11-03T06:38:07.550Z - Hash: e3269ce29e31dc5cdd83”
2020-11-03T06:38:07.551Z [TRACE] log: sending line: line=“15 unchanged chunks”
2020-11-03T06:38:07.551Z [TRACE] log: sending line: line=
2020-11-03T06:38:07.551Z [TRACE] log: sending line: line=“Time: 2776ms”

Date: 2020-11-03T06:38:07.550Z - Hash: e3269ce29e31dc5cdd83
15 unchanged chunks

Time: 2776ms
2020-11-03T06:38:07.553Z [TRACE] log: sending line: line=": Compiled successfully."
: Compiled successfully.

But I could not able to run my angular UI in this Deployment URL: https://eagerly-desired-squirrel--v1.waypoint.run

Ok, that’s good to see messages like:

2020-11-03T06:36:50.610Z [DEBUG] url.agent: connected to hub: addr=52.32.54.223:443
2020-11-03T06:36:50.662Z [DEBUG] url.agent: connection latency: latency=322.022796ms

It means you are connected to the hub, which is the server-side part of the Waypoint URL Service.

Let’s see if your app is listening on the right port

$ docker ps -a
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                              NAMES
ae799a9795d3        example-ruby:latest         "/waypoint-entrypoin…"   23 hours ago        Up 18 hours         0.0.0.0:32769->3000/tcp            example-ruby-01EP4SEF9VMACWKE7JHH1G0YRA
3a47373dca49        hashicorp/waypoint:latest   "/usr/bin/waypoint s…"   3 days ago          Up 19 hours         0.0.0.0:9701-9702->9701-9702/tcp   waypoint-server

So notice for me, that http://localhost:32769 is endpoint I should check to see if my ruby app is reachable directly by going to Docker. If it is, and you have the “connected to hub” messages fine, then the issue is likely on the Waypoint URL Service side, which you can check https://status.hashicorp.com. In particular, note that Waypoint URL Service did have some reported issues on Nov 2nd and 3rd: https://status.hashicorp.com/#past-incidents