Giter Site home page Giter Site logo

Comments (4)

gberche-orange avatar gberche-orange commented on September 27, 2024

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

<logger name="org.springframework">
<if condition='property("autosleep.debug").contains("spring")'>
<then>
<level value="DEBUG"/>
</then>
<else>
<level value="WARN"/>
</else>
</if>
</logger>

Otherwise you can select individual log level through the JAVA_OPTS option

JAVA_OPTS: >
-Dlogging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=ERROR

Please let us know how you diagnosed this, so we can document it for other diagnostics

from autosleep.

drnic avatar drnic commented on September 27, 2024

I tried out the logging-route-service but hit a DNS/cloudflare issue cloudfoundry/logging-route-service#3

Seen this before?

from autosleep.

drnic avatar drnic commented on September 27, 2024

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.

gberche-orange avatar gberche-orange commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.