origin icon indicating copy to clipboard operation
origin copied to clipboard

logs follow option missing in UI occasionally

Open jagadeeshops opened this issue 9 years ago • 3 comments

Some times when a container is loaded, Logs are not streaming in UI. The follow option is also not showing. But it loads the logs after a delay.

In the sametime "oc logs -f " streams logs as expected.

We are using docker 1.9.1 with json-file logging driver

Version

oc v1.4.1 kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO

server openshift v1.4.1 kubernetes v1.4.0+776c994

Steps To Reproduce
  1. Load testing on containers
Current Result

Logs stops streaming on UI

Expected Result
Additional Information

We observers this scenario occasionally during load testing.

jagadeeshops avatar May 30 '17 05:05 jagadeeshops

If the logs are not yet streaming the follow log link does not appear. In later releases (1.5 I think) we follow the log automatically. So if the concern is that you are having to wait until it starts streaming to follow the log then that should already be resolved. As long as the follow log link appears once the log starts streaming, then this is not a bug.

As far as the delay you are seeing: The cli and the console use the same api but over different transport mechanisms. The console uses websockets. If you are seeing problems with the logs not connecting under load only for the web console, your servers may be running out of available socket connections.

jwforres avatar May 30 '17 13:05 jwforres

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Feb 11 '18 16:02 openshift-bot

/close

jwforres avatar Feb 11 '18 16:02 jwforres