Hi,
I re-installed the Rancher latest version but the problem is still going on.
Container stats does not work also view logs and execute shell commands also do not work.
When i look at the rancher-agent logs, I get the error message below:
time="2017-05-09T19:14:14Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:14:27Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:14:41Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:14:56Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:15:12Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:15:29Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:15:47Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:16:06Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:16:26Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:16:47Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:31:15Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
time="2017-05-09T19:31:16Z" level=error msg="Couldn't find container for id." error="token is expired" id=132d83bc0179f77d81f64e99ddcc117d8f6f85415bed4745a2f3ac465737ed07
2017/05/09 19:31:17 "token is expired"
goroutine 1368 [running]:
github.com/rancher/agent/service/hostapi/app/common.CheckError(0xeeb9c0, 0xc42020a8a0, 0x2)
/go/src/github.com/rancher/agent/service/hostapi/app/common/error.go:14 +0xba
github.com/rancher/agent/service/hostapi/auth.GetAndCheckToken(0xc420204339, 0x2c3, 0xa412b0, 0x5)
/go/src/github.com/rancher/agent/service/hostapi/auth/auth.go:49 +0x22d
github.com/rancher/agent/service/hostapi/logs.(*Handler).Handle(0xf30760, 0xc420204300, 0x24, 0xc420204329, 0x2d3, 0xc420372d80, 0xc420373e00)
/go/src/github.com/rancher/agent/service/hostapi/logs/logs.go:38 +0xf3
created by github.com/rancher/agent/vendor/github.com/rancher/websocket-proxy/backend.connectToProxyWS
/go/src/github.com/rancher/agent/vendor/github.com/rancher/websocket-proxy/backend/backend.go:82 +0xa84
E0509 19:31:17.359373 7783 error.go:23] %q
I’m using the following versions on Rancher Server:
Rancher: v1.6.0
Cattle: v0.179.7
User Interface: v1.6.1
Rancher CLI: v0.6.0
Rancher Compose: v0.12.5
Host machine: Ubuntu 14.04.2 LTS (3.16.0) Docker v1.12.3
rancher/agent:v1.2.2
rancher/dns:v0.15.0
rancher/healthcheck:v0.3.1
rancher/metadata:v0.9.1
rancher/net:holder
rancher/net:v0.11.2
rancher/net:v0.11.2
rancher/network-manager:v0.7.0
rancher/scheduler:v0.7.5