Comments (4)
Would make sense to trace the provision request proxified by the buddy broker as it reaches the autosleep app, maybe consider adding a verbose trace mode to buddy broker ?
Maybe the https://github.com/cloudfoundry-samples/logging-route-service could be mapped to the autosleep route to trace incoming traffic.
On the autosleep side, you might have luck with spring traces, or possibly further down such as tomcat.
There used to have support for dumping requests in tomcat, but it was broken last time I tested it, see https://groups.google.com/a/cloudfoundry.org/d/msg/vcap-dev/8bm0IDAZNHU/MS3yUN3whm0J
Maybe the TRACE actuator endpoint could provide you detailed traces of the last recorded 1000 requests, I haven't tested it yet on autosleep though.
The -Dautosleep.debug=spring would turn spring traces
autosleep/common/src/main/resources/logback.xml
Lines 39 to 48 in 08f8d66
Otherwise you can select individual log level through the JAVA_OPTS option
Lines 18 to 19 in 180f4f1
Please let us know how you diagnosed this, so we can document it for other diagnostics
from autosleep.
I tried out the logging-route-service but hit a DNS/cloudflare issue cloudfoundry/logging-route-service#3
Seen this before?
from autosleep.
Ok, worked around the cloudflare issue by using cfapps.io domain for autosleep/autowakeup-app.
I can now see that buddy-broker is mis-processing the parameters being passed thru.
The logging-route logs incoming into buddy-broker: are:
2017-01-08T15:21:42.98-0800 [APP/PROC/WEB/0]OUT 2017/01/08 23:21:42 Request Body: {"service_id":"3e02929c-d253-11e6-8921-032a782f98e5-starkandwayne-stannis","plan_id":"41e3ba08-d253-11e6-a8b0-67ab01c15319-starkandwayne-stannis","organization_guid":"f18dd8a3-bea3-4078-953a-e3a768520818","space_guid":"b7d9e138-23b0-4578-b81e-181c11afd524","parameters":{"auto-enrollment":"forced"}}
But when the request is forwarded on to autosleep-app, the parameters
are misencoded:
2017-01-08T15:28:03.57-0800 [APP/PROC/WEB/0]OUT 2017/01/08 23:28:03 Request Body: {"service_id":"3e02929c-d253-11e6-8921-032a782f98e5","plan_id":"41e3ba08-d253-11e6-a8b0-67ab01c15319","organization_guid":"f18dd8a3-bea3-4078-953a-e3a768520818","space_guid":"b7d9e138-23b0-4578-b81e-181c11afd524","parameters":"eyJhdXRvLWVucm9sbG1lbnQiOiJmb3JjZWQifQ=="}
Closing the issue; and moving it to buddy-broker repo cloudfoundry-community/buddy-broker#3
from autosleep.
thanks @drnic for sharing the diagnostic procedure and outcome.
I'm not sure to understand why the logging route service issue with the cloudflare error symptom triggers on autosleep.starkandwayne.com and not autosleep.cfapps.io.
from autosleep.
Related Issues (20)
- NPE returned by the dashboad
- autosleep use of deprecated logging-endpoint, fails fetching app activity, and never stop apps HOT 2
- Sample manifest uses env vs JAVA_OPTS in demo video HOT 2
- How to delete service instance in forced enrollment mode? HOT 2
- autosleep-app errors when trying to stop app on pivotal.io HOT 4
- Instrumentation and business metrics
- autosleep uses deprecated domain API
- Autosleep service instance not able to bind more than 50 applications in a space HOT 1
- Noticed this issue on orgs that don't even have autosleep enabled HOT 5
- Autosleep App will not start with Pivotal Cloud Foundry 1.11 HOT 3
- Autosleep and healthcheck endpoints HOT 1
- Autosleep App will not start HOT 6
- Evaluate deploying autosleep with “Shared service instance” support enabled
- Syntax Error in CRATE TABLE Statement when deploying with PostgreSQL HOT 2
- SQL syntax error when unbinding app due to app deletion HOT 1
- Migrate to CC API V3
- Autosleep breaking when registering as broker with pcf java buildpack v4.19.1 HOT 1
- Can this app be used without implementing it as a service broker? HOT 5
- Migrate to firehose v2 API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autosleep.