scope icon indicating copy to clipboard operation
scope copied to clipboard

How to run Weave Scope on Kubernetes (behind a corporate proxy)?

Open bergtwvd opened this issue 9 years ago • 15 comments

This is a continuation of https://github.com/weaveworks/weave/issues/2804 as a new issue however.

I follow the instructions on https://www.weave.works/docs/scope/latest/installing/#k8s and do: kubectl apply -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml?k8s-service-type=NodePort'

The daemonset and container are installed.

I open the webbrowser and navigate to the scope page; it shows the basic items bu no data.

When I look in the log of one of the agents I see:

2017-02-15T13:12:12.177498099Z time="2017-02-15T13:12:12Z" level=info msg="publishing to: 10.97.231.187:80" 
2017-02-15T13:12:12.177714107Z <probe> INFO: 2017/02/15 13:12:12.177674 command line args: --logtostderr=true --mode=probe --no-app=true --probe.docker=true --probe.docker.bridge=docker0 --probe.kubernetes=true 10.97.231.187:80
2017-02-15T13:12:12.177803038Z <probe> INFO: 2017/02/15 13:12:12.177773 probe starting, version 1.2.0, ID 7c511ac3b53023ca
2017-02-15T13:12:12.199456237Z <probe> INFO: 2017/02/15 13:12:12.199353 kubernetes: targeting api server https://10.96.0.1:443
2017-02-15T13:12:12.209850912Z <probe> ERRO: 2017/02/15 13:12:12.209780 Error fetching app details: Get http://10.97.231.187:80/api: dial tcp 10.97.231.187:80: getsockopt: connection refused
2017-02-15T13:12:12.247439185Z <probe> ERRO: 2017/02/15 13:12:12.247308 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 425984 bytes.
2017-02-15T13:12:12.257853856Z <probe> ERRO: 2017/02/15 13:12:12.257743 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 425984 bytes.
2017-02-15T13:12:12.355343405Z <probe> WARN: 2017/02/15 13:12:12.355267 Cannot resolve 'scope.weave.local.': dial tcp 172.17.0.1:53: getsockopt: connection refused
2017-02-15T13:12:12.355510221Z <probe> INFO: 2017/02/15 13:12:12.355482 Success collecting weave plugin status
2017-02-15T13:12:12.355625095Z <probe> INFO: 2017/02/15 13:12:12.355590 Success collecting weave proxy status
2017-02-15T13:12:12.371019479Z <probe> INFO: 2017/02/15 13:12:12.370936 Success collecting weave status
2017-02-15T13:12:12.843703967Z <probe> INFO: 2017/02/15 13:12:12.843620 Success collecting weave ps
2017-02-15T13:12:13.212639686Z <probe> INFO: 2017/02/15 13:12:13.212323 Control connection to 10.97.231.187 starting
2017-02-15T13:12:15.399595651Z <probe> INFO: 2017/02/15 13:12:15.399478 Publish loop for 10.97.231.187 starting
2017-02-15T13:12:42.285432501Z <probe> ERRO: 2017/02/15 13:12:42.285229 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kubernetes_enabled=true&os=linux&signature=FlfgmzYXPJv7Gu9f1zDk1HlfM5s4UoN6KkQblH1z0AQ%3D&version=1.2.0: dial tcp 172.217.17.83:443: getsockopt: connection refused
2017-02-15T13:13:12.386132103Z <probe> ERRO: 2017/02/15 13:13:12.362332 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kubernetes_enabled=true&os=linux&signature=FlfgmzYXPJv7Gu9f1zDk1HlfM5s4UoN6KkQblH1z0AQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused 

In this environment the hosts are running behind corporate proxy. Do I need to specify HTTP_PROXY / HTTPS_PROXY per container in the scope yaml file ?

The script has $(WEAVE_SCOPE_APP_SERVICE_HOST):$(WEAVE_SCOPE_APP_SERVICE_PORT) in it. Do these need to be set, and to what?

bergtwvd avatar Feb 15 '17 13:02 bergtwvd

:+1:

apetrovYa avatar Feb 15 '17 17:02 apetrovYa

The simplest way to avoid proxying/firewall issues and problems connecting to the app is to use Weave Cloud. When using Weave Cloud you only need to run the agents (probes), we run the app for you. See https://www.weave.works/docs/scope/latest/installing/#k8s (you will likely need to set HTTP_PROXY / HTTPS_PROXY in the agents resource definition)

Now, if you specifically need to use the standalone version of Scope (i.e. running the app too), you need to make sure that the probes can talk to the apps.

The following line suggests that's not the case:

2017-02-15T13:12:12.209850912Z <probe> ERRO: 2017/02/15 13:12:12.209780 Error fetching app details: Get http://10.97.231.187:80/api: dial tcp 10.97.231.187:80: getsockopt: connection refused

Can you get us the output of:

kubectl describe deployment weave-scope-app
kubectl describe svc weave-scope-app
kubectl describe ds weave-scope-agent

Can you please paste the logs of the app? Are there any firewalling rules which could prevent the probes from talking to the app?

Another possibility is that the service was recreated (changing its IP) without restarting the agents afterwards. $(WEAVE_SCOPE_APP_SERVICE_HOST):$(WEAVE_SCOPE_APP_SERVICE_PORT) is initialized when the probes start. So, if the service IP changes, the probes won't be able to catch the change unless they are restarted.

Can you try to re-create the agents? The following should do the trick by simply recreating all the scope objects (app included):

kubectl delete -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml?k8s-service-type=NodePort'
kubectl apply -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml?k8s-service-type=NodePort'

In this environment the hosts are running behind corporate proxy. Do I need to specify HTTP_PROXY / HTTPS_PROXY per container in the scope yaml file ?

I don't think you do. What seems to be failing is the communication between the Scope probes and apps and they are both running inside the cluster.

The script has $(WEAVE_SCOPE_APP_SERVICE_HOST):$(WEAVE_SCOPE_APP_SERVICE_PORT) in it. Do these need to be set, and to what?

They are set by automatically by Kubernetes, see https://kubernetes.io/docs/user-guide/services/#environment-variables

2opremio avatar Feb 16 '17 02:02 2opremio

Sorry for the delay getting back (am (still) on travel).

Below the requested output.

Will look at other items when I am back in the office.

bergtwvd@app-docker11:~$ kubectl describe deployment weave-scope-app
Name:                   weave-scope-app
Namespace:              default
CreationTimestamp:      Wed, 15 Feb 2017 19:43:33 +0100
Labels:                 app=weave-scope
                        name=weave-scope-app
                        weave-cloud-component=scope
                        weave-scope-component=app
Selector:               app=weave-scope,name=weave-scope-app,weave-cloud-component=scope,weave-scope-component=app
Replicas:               1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  1 max unavailable, 1 max surge
Conditions:
  Type          Status  Reason
  ----          ------  ------
  Available     True    MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet:  weave-scope-app-1387651679 (1/1 replicas created)
No events.
bergtwvd@app-docker11:~$ kubectl describe svc weave-scope-app
Name:                   weave-scope-app
Namespace:              default
Labels:                 app=weave-scope
                        name=weave-scope-app
                        weave-cloud-component=scope
                        weave-scope-component=app
Selector:               app=weave-scope,name=weave-scope-app,weave-cloud-component=scope,weave-scope-component=app
Type:                   NodePort
IP:                     10.109.82.8
Port:                   app     80/TCP
NodePort:               app     31324/TCP
Endpoints:              10.32.0.3:4040
Session Affinity:       None
No events.
bergtwvd@app-docker11:~$ kubectl describe ds weave-scope-agent
Name:           weave-scope-agent
Image(s):       weaveworks/scope:1.2.0
Selector:       app=weave-scope,name=weave-scope-agent,weave-cloud-component=scope,weave-scope-component=agent
Node-Selector:  <none>
Labels:         app=weave-scope
                name=weave-scope-agent
                weave-cloud-component=scope
                weave-scope-component=agent
Desired Number of Nodes Scheduled: 5
Current Number of Nodes Scheduled: 5
Number of Nodes Misscheduled: 0
Pods Status:    5 Running / 0 Waiting / 0 Succeeded / 0 Failed
No events.
bergtwvd@app-docker12:~$ sudo docker logs 174d4ab5a46a
<app> INFO: 2017/02/15 18:43:27.912625 app starting, version 1.2.0, ID 1211168e94ddcf0a
<app> INFO: 2017/02/15 18:43:27.912870 command line args: --logtostderr=true --mode=app --no-probe=true
<app> INFO: 2017/02/15 18:43:27.937385 listening on :4040
<app> ERRO: 2017/02/15 18:43:28.062330 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> WARN: 2017/02/15 18:43:28.099642 Error updating weaveDNS, backing off 20s: exit status 1
<app> WARN: 2017/02/15 18:43:48.179240 Error updating weaveDNS, backing off 40s: exit status 1
<app> WARN: 2017/02/15 18:44:28.317375 Error updating weaveDNS, backing off 1m0s: exit status 1
<app> ERRO: 2017/02/16 00:10:54.721931 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/16 05:17:05.349809 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/16 12:03:28.086539 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 173.194.69.121:443: getsockopt: connection refused
<app> ERRO: 2017/02/16 19:17:04.254983 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/17 02:08:10.245828 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/17 08:50:27.302463 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/17 14:53:17.477445 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/17 16:03:16.115355 err:read tcp 10.32.0.3:4040->10.34.0.0:54578: i/o timeout
<app> ERRO: 2017/02/17 19:39:13.824483 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/17 20:05:00.131591 err:read tcp 10.32.0.3:4040->10.34.0.0:49298: i/o timeout
<app> ERRO: 2017/02/18 02:35:25.331636 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/18 08:20:41.067108 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.83:443: getsockopt: connection refused
<app> ERRO: 2017/02/18 13:48:10.486540 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/18 19:32:33.587422 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/19 00:13:43.355591 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/19 04:47:12.943325 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/19 11:23:07.902454 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/19 17:28:17.711193 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/19 23:42:32.904508 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/20 04:38:25.975935 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 74.125.128.121:443: getsockopt: connection refused
<app> ERRO: 2017/02/20 11:01:07.739409 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
<app> ERRO: 2017/02/20 15:59:55.911821 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=4.4.0-53-generic&flag_os=linux&os=linux&signature=OqNGZDVtKh0gA%2FS4Tms0qMTHuDi%2F011QWxFhQH13iMQ%3D&version=1.2.0: dial tcp 172.217.17.51:443: getsockopt: connection refused
bergtwvd@app-docker12:~$

bergtwvd avatar Feb 20 '17 18:02 bergtwvd

This suggests there may be a networking issue:

<app> ERRO: 2017/02/17 16:03:16.115355 err:read tcp 10.32.0.3:4040->10.34.0.0:54578: i/o timeout

Can you confirm whether 10.34.0.0 is the IP of one of the probes?

I would double check that the app is accessible from your hosts. To confirm, you should be able to successfully run the following two commands ...

curl  http://10.109.82.8/api
curl  http://10.32.0.3:4040/api

.... from each of your kubernetes nodes (i.e. directly from the host, executing a shell in the machine).

In case IPs change for whatever reason, note that 10.109.82.8 is the Scope App service IP and that 10.32.0.3: is the Scope App pod IP, taken from your listings above.

2opremio avatar Feb 20 '17 18:02 2opremio

Hi @2opremio, I have the same problem as @bergtwvd but with a different output. Below I link my outputted info.

The output of

kubectl describe deployment weave-scope-app

Namespace:		default
CreationTimestamp:	Wed, 22 Feb 2017 15:00:18 +0100
Labels:			app=weave-scope
			name=weave-scope-app
			weave-cloud-component=scope
			weave-scope-component=app
Selector:		app=weave-scope,name=weave-scope-app,weave-cloud-component=scope,weave-scope-component=app
Replicas:		1 updated | 1 total | 1 available | 0 unavailable
StrategyType:		RollingUpdate
MinReadySeconds:	0
RollingUpdateStrategy:	1 max unavailable, 1 max surge
Conditions:
  Type		Status	Reason
  ----		------	------
  Available 	True	MinimumReplicasAvailable
OldReplicaSets:	<none>
NewReplicaSet:	weave-scope-app-1469506144 (1/1 replicas created)
Events:
  FirstSeen	LastSeen	Count	From				SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----				-------------	--------	------			-------
  4m		4m		1	{deployment-controller }			Normal		ScalingReplicaSet	Scaled up replica set weave-scope-app-1469506144 to 1

kubectl describe svc weave-scope-app

Name:			weave-scope-app
Namespace:		default
Labels:			app=weave-scope
			name=weave-scope-app
			weave-cloud-component=scope
			weave-scope-component=app
Selector:		app=weave-scope,name=weave-scope-app,weave-cloud-component=scope,weave-scope-component=app
Type:			NodePort
IP:			10.105.223.26
Port:			app	80/TCP
NodePort:		app	30477/TCP
Endpoints:		10.45.0.7:4040
Session Affinity:	None
No events.

kubectl describe ds weave-scope-agent

ctor:	app=weave-scope,name=weave-scope-agent,weave-cloud-component=scope,weave-scope-component=agent
Node-Selector:	<none>
Labels:		app=weave-scope
		name=weave-scope-agent
		weave-cloud-component=scope
		weave-scope-component=agent
Desired Number of Nodes Scheduled: 3
Current Number of Nodes Scheduled: 3
Number of Nodes Misscheduled: 0
Pods Status:	3 Running / 0 Waiting / 0 Succeeded / 0 Failed
Events:
  FirstSeen	LastSeen	Count	From		SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----		-------------	--------	------			-------
  9m		9m		1	{daemon-set }			Normal		SuccessfulCreate	Created pod: weave-scope-agent-ddcmc
  9m		9m		1	{daemon-set }			Normal		SuccessfulCreate	Created pod: weave-scope-agent-dsb3t
  9m		9m		1	{daemon-set }			Normal		SuccessfulCreate	Created pod: weave-scope-agent-9cd3k

And my error message

2017-02-22T15:00:22.616221000Z time="2017-02-22T15:00:22Z" level=info msg="publishing to: 10.105.223.26:80" 
2017-02-22T15:00:22.617188000Z <probe> INFO: 2017/02/22 15:00:22.615961 command line args: --logtostderr=true --mode=probe --no-app=true --probe.docker=true --probe.docker.bridge=docker0 --probe.kubernetes=true 10.105.223.26:80
2017-02-22T15:00:22.617383000Z <probe> INFO: 2017/02/22 15:00:22.616041 probe starting, version 1.2.1, ID 2efff3e553557328
2017-02-22T15:00:22.642025000Z <probe> INFO: 2017/02/22 15:00:22.641236 kubernetes: targeting api server https://10.96.0.1:443
2017-02-22T15:00:22.716307000Z <probe> INFO: 2017/02/22 15:00:22.714145 plugins: added plugin /var/run/scope/plugins/iowait/iowait.sock
2017-02-22T15:00:22.716622000Z <probe> INFO: 2017/02/22 15:00:22.714190 plugins: added plugin /var/run/scope/plugins/traffic-control/traffic-control.sock
2017-02-22T15:00:22.726106000Z <probe> WARN: 2017/02/22 15:00:22.725007 Cannot resolve 'scope.weave.local.': dial tcp 172.17.0.1:53: getsockopt: connection refused
2017-02-22T15:00:22.738062000Z <probe> INFO: 2017/02/22 15:00:22.736752 Success collecting weave plugin status
2017-02-22T15:00:22.741101000Z <probe> INFO: 2017/02/22 15:00:22.737844 Success collecting weave proxy status
2017-02-22T15:00:22.743347000Z <probe> INFO: 2017/02/22 15:00:22.741824 Success collecting weave status
2017-02-22T15:00:23.041021000Z <probe> ERRO: 2017/02/22 15:00:23.040400 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 425984 bytes.
2017-02-22T15:00:23.041486000Z <probe> ERRO: 2017/02/22 15:00:23.040903 conntrack stderr:NOTICE: Netlink socket buffer size has been set to 425984 bytes.
2017-02-22T15:00:23.626617000Z <probe> INFO: 2017/02/22 15:00:23.626138 Control connection to 10.105.223.26 starting
2017-02-22T15:00:24.336748000Z <probe> INFO: 2017/02/22 15:00:24.335534 Publish loop for 10.105.223.26 starting
2017-02-22T15:00:24.338558000Z <probe> INFO: 2017/02/22 15:00:24.338135 Success collecting weave ps
2017-02-22T15:00:37.720188000Z <probe> ERRO: 2017/02/22 15:00:37.719471 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kernel-version=3.10.0-514.6.1.el7.x86_64&flag_kubernetes_enabled=true&flag_os=linux&os=linux&signature=gP4IpFj%2FdzTK8l4II80DOciK865AT%2FHgKVBYSbKQ0D4%3D&version=1.2.1: dial tcp 216.58.205.147:443: i/o timeout

apetrovYa avatar Feb 22 '17 14:02 apetrovYa

I have the same problem as @bergtwvd but with a different output.

What problem would that be? Is your UI unexpectedly empty?

And my error message

That's totally fine and harmless when running behind a firewall without direct internet access

2opremio avatar Feb 22 '17 15:02 2opremio

What problem would that be? Is your UI unexpectedly empty?

Yes, it is!

And I would like to know if is there any way to fix that?

apetrovYa avatar Feb 22 '17 15:02 apetrovYa

Are you sure there is something to see in the UI?

Can you please check that the app pod has IP 10.105.223.26?

2opremio avatar Feb 22 '17 15:02 2opremio

Can you please check that the app pod has IP 10.105.223.26?

Yes, the app pod has the IP 10.105.223.26.

The UI is trying continuously to reconnect but with no success.

apetrovYa avatar Feb 22 '17 15:02 apetrovYa

The UI is trying continuously to reconnect but with no success.

Ah! This must be the culprit then. How are you connecting to the App? Note that the UI uses Websockets to connect to the App, so whatever mechanism you use, it should support websockets.

Getting a screenshot of the client connections (Chrome networking tab on the inspector or similar) would be helpful.

@bergtwvd Are you also seeing reconnection problems in the UI?

2opremio avatar Feb 22 '17 15:02 2opremio

@2opremio Thank you!

Note that the UI uses Websockets to connect to the App

As you said the problem was in websockets due to the proxy. After adding some IPs to the network $no_proxy configuration it worked for me.

apetrovYa avatar Feb 22 '17 15:02 apetrovYa

@apetrovYa Did you realize about the connection problem from the beginning? Would https://github.com/weaveworks/scope/issues/2219 have helped?

2opremio avatar Feb 22 '17 16:02 2opremio

@2opremio, Sorry for a late reply!

Did you realize about the connection problem from the beginning?

Nop, because the same connectivity issue revealed itself in my local environment on my laptop! So, my focus was on troubles at agents connectivity level due to error logs in attachment above. For clarity I link them below

1)
2017-02-22T15:00:22.726106000Z <probe> WARN: 2017/02/22 15:00:22.725007 Cannot resolve 'scope.weave.local.': dial tcp 172.17.0.1:53: getsockopt: connection refused

2)
2017-02-22T15:00:37.720188000Z <probe> ERRO: 2017/02/22 15:00:37.719471 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-probe?arch=amd64&flag_kernel-version=3.10.0-514.6.1.el7.x86_64&flag_kubernetes_enabled=true&flag_os=linux&os=linux&signature=gP4IpFj%2FdzTK8l4II80DOciK865AT%2FHgKVBYSbKQ0D4%3D&version=1.2.1: dial tcp 216.58.205.147:443: i/o timeout

Would #2219 have helped?

Maybe it could have helped but I am not sure!
Maybe a better formalization of the UI states can bring to a more effective troubleshooting.

apetrovYa avatar Feb 23 '17 13:02 apetrovYa

Maybe a better formalization of the UI states can bring to a more effective troubleshooting.

That's what #2219 is about :)

2opremio avatar Feb 23 '17 15:02 2opremio

I believe #2219 covers what is left to do here. -> closing.

rade avatar Jul 31 '17 07:07 rade