Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty cf log and stats server temporarily unavailable with cf push. #971

Closed
soroshidg opened this issue May 4, 2022 · 6 comments
Closed

Comments

@soroshidg
Copy link

What is this issue about?

While deploying any app it is throwing "Stats server temporarily unavailable." and cf app logs are not getting displayed.

What version of cf-deployment are you using?

[cf-deployment v18.0.0]

Please include the bosh deploy... command, including all the operations files (plus any experimental operation files you're using):

bosh -d deploy manifest.yml

Please provide output that helps describe the issue:

It's helpful to include snippets of the error response or logs output

cf a
Getting apps in org cloud-foundry / space demo as admin...

Stats server temporarily unavailable.
Stats server temporarily unavailable.
Stats server temporarily unavailable.

name                     requested state   processes           routes
cf-example-staticfile    started           web:1/1             cf-example-staticfile-cheerful-squirrel-pw.as-g6.cf.comcast.net
cf-sample-app-go         started           web:1/1             cf-sample-app-go.as-g6.cf.comcast.net
cf-sample-app-nodejs     started           web:1/1             cf-sample-app-nodejs.as-g6.cf.comcast.net

also, logs are not displaying - ```cf logs spring-music
Retrieving logs for app spring-music in org cloud-foundry / space demo as admin...



### What IaaS is this issue occurring on?

vsphere

### Is there anything else unique or special about your setup?

no. Same setup worked fine with cf-deployment v17.1.0

### Tag your pair, your PM, and/or team!
@ctlong
Copy link
Member

ctlong commented May 5, 2022

The error "Stats server temporarily unavailable." seems to indicate that CAPI is not able to communicate correctly with Log Cache to retrieve app stats and app logs.

CF v18.0.0 split out Log Cache from the Doppler VMs, which may require some special considerations when deploying.

Can you use the Log Cache cf CLI plugin to validate that your Log Cache is receiving traffic correctly? cf log-meta should include lines about any apps that are emitting logs, and cf tail APP_NAME should directly connect to Log Cache to stream logs for an app.

@soroshidg
Copy link
Author

Thanks @ctlong It seems this issue is because of the open CAPI release issue - cloudfoundry/capi-release#224 which is still open.

@ctlong
Copy link
Member

ctlong commented May 6, 2022

There was a workaround for that issue included in CF-D v18: set cc.logcache.host in the cloud_controller_ng job to log-cache.service.cf.internal.

If you're overriding that property then I would suggest setting it back to log-cache.service.cf.internal.

@soroshidg
Copy link
Author

With both v18 and v19 we did not override that and it's log-cache.service.cf.internal only for cc.logcache.host, still no metrics and log and stats server errors during cf p or cf a.

@ctlong
Copy link
Member

ctlong commented May 6, 2022

Can you use the Log Cache cf CLI plugin to validate that your Log Cache is receiving traffic correctly? cf log-meta should include lines about any apps that are emitting logs, and cf tail APP_NAME should directly connect to Log Cache to stream logs for an app.

❓ Is your Log Cache receiving traffic?

❓ In what ways does your manifest differ from the default cf-deployment.yml in CF-D v18/19?

@ctlong
Copy link
Member

ctlong commented May 26, 2022

@soroshidg are you still seeing this problem? Can you give us more info?

@ctlong ctlong closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants