Spring-boot-admin: Download Logfile/Heapdump doesn't work in 2.x

Created on 2 Jan 2020  路  16Comments  路  Source: codecentric/spring-boot-admin

I can download the logfile from Inslights-Logging-Logfile when the admin version was '2.1.5.RELEASE', when I update the admin version to '2.2.1.RELEASE', I can't download it, when I click the download button, It's just jump a new page with a html header but don't start a download process. What's worse, I can't download the dumpfile too. Why happened this, It's my security config error? Maybe not, because I try to set the anyRequest() is permitAll(), it seems to doesn't work too. Please. Thank you!

bug server-ui

Most helpful comment

Checked with 2.2.2 as @asamonov says I click "Download" a new tab opens but nothing happens

All 16 comments

Which Browser are you using?

I can confirm that this does not working in SBA 2.2.x. My browser version is Chrome 79.0.3945.88.
For SBA 2.1.6, log file is displayed similar to that of actuator logfile output. It is never downloaded.

@joshiste Can you pls confirm whether the log file will be downloaded or just displayed in a new tab? In my case I can view it in a new tab. It is not downloaded.

@DhavalShewale
I guess there are some other users that prefer the tab over the download - so I decided to leave that up to the browser to decide wether it is shown as new tab or downloaded. If you can display it as new tab you should also be able to right-click it and to choose "save as"

@joshiste ok so its intended to work that way. So its basically the same view without the SBA menu and header.

I'm so sorry for not responding to this question for so long but this question still exist. I'm using Chrome browser, When I click the download button, it will open a new tab without any content, it seem like a empty white page.

Download logfile and heapdump works fine for me with SBA 2.2.2. However, download thread dump still fails.

Oh! Great! When I update the Admin version to 2.2.2, this problem has been resolved. When I click the logfile download button, it will open a new tab with log content, I can preview or download it with 'save as', when I click the heapdump button, it will call the 'save as' explorer window then start the download progress. Thank you very much. @joshiste

Does not work in 2.2.2 When I click "Download" a new empty tab opens.

Checked with 2.2.2 as @asamonov says I click "Download" a new tab opens but nothing happens

@joshiste i am also facing the heap dump issue. Opens in new tab with empty screen(only header part is displayed)
Admin version: 2.2.2

UI request:(not working)

url : admin/instances/{instanceId}/actuator/heapdump 
 header -> Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8


Postman request: Working fine(with modified accept header)

url : admin/instances/{instanceId}/actuator/heapdump 
 header -> Accept : application/octet-stream


which browser are you using?

@joshiste I have resolved this issue by removing admin.context-path. There is some issue with using admin.context-path.
spring:
boot:
admin:
context-path: /admin

Hey @joshiste, I am seeing that same issue on 2.2.2.
I think it is related to this line:
https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/services/instance.js#L184

Where it uses the imported axios module instead of the pre-configured axios object.
Changing it to this.axios.get instead of axios.get would probably do the trick.

@joshiste using spring-boot-admin 2.3.0 with spring.boot.admin.context-path=/admin
browser tested:

  1. Firefox 83.0 (64-bit)
  2. Chrome (87.0.4280.66)

Tried to download log and thread dump, both browser opened a new tab with no content inside.

Was this page helpful?
0 / 5 - 0 ratings