spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

Unable to view log from task executions in Spring Cloud Dataflow UI

Open knkhats opened this issue 1 year ago • 6 comments
trafficstars

In v2.11.1, navigate to a task execution and click on "view log", the UI shows the spinner and does not show the logs Browser inspect shows the following errors

Mixed Content: The page at 'https://' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://'. This request has been blocked; the content must be served over HTTPS.

ERROR TypeError: d is not iterable at catchError (main.145f644157e8c472.js:1:279671) at main.145f644157e8c472.js:1:185042

This was working fine in v2.10

Can you please advice if there is a workaround for this? Changing browser security is not an option.

knkhats avatar Nov 22 '23 07:11 knkhats

How is your application deployed? Are you behind a reverse proxy? The URL is produced based on the application knowledge of the server. https://docs.spring.io/spring-framework/docs/5.3.x/reference/html/web.html#filters-forwarded-headers

corneil avatar Nov 23 '23 08:11 corneil

Thank you for the response. I have the following 2 comments to add

  1. The same setup and the same proxy settings work perfectly with v2.10. Is this a new change in v2.11?
  2. The problem does not manifest on the Task->View Log. However, Task Executions->View Log show this problem. Screenshots attached for reference works does not work

knkhats avatar Nov 24 '23 12:11 knkhats

What Platform are you deploying your applications?

cppwfs avatar Dec 08 '23 15:12 cppwfs

This is configured on CentOS8 on Kubernetes 1.25.8. Please note that this issue not observed in v2.10 on the same setup.

Thank you, K

knkhats avatar Dec 14 '23 10:12 knkhats

@knkhats Can you use the browser developer tools to view the JSON response when viewing the task. the request will contain: /tasks/executions/{id}?schemaTarget={bootVersion} This response should contain something like:

"_links": {
        "tasks/logs": {
            "href": 
        }
}

Can you verify that the url is the same as the application?

corneil avatar Jan 05 '24 09:01 corneil

Hello @corneil , The application url has https://. The url in "_links": { "tasks/logs": { "href": has http:// Everything else in the url matches.

knkhats avatar Apr 16 '24 16:04 knkhats