PDM <= 1.0.2: VM Migration: Endless Line in Task Viewer

Apr 7, 2025
9
3
3
I'm migrating a VM from one cluster to another.
In Task Viewer, the progress of the data transfer is displayed as a veeeery long line because line breaks aren't shown.

However, when I copy and paste this line from Task Viewer into a text editor, the line breaks are there.

Screenshot of Task Viewer:

Bildschirmfoto vom 2026-03-16 11-52-09.png

Text after copy and paste to editor:
Code:
tunnel: accepted new connection on '/run/pve/188.storage'
tunnel: requesting WS ticket via tunnel
tunnel: established new WS for forwarding '/run/pve/188.storage'

159961088 bytes (160 MB, 153 MiB) copied, 1 s, 160 MB/s
304992256 bytes (305 MB, 291 MiB) copied, 2 s, 152 MB/s
465137664 bytes (465 MB, 444 MiB) copied, 3 s, 155 MB/s
584323072 bytes (584 MB, 557 MiB) copied, 4 s, 146 MB/s
753557504 bytes (754 MB, 719 MiB) copied, 5 s, 151 MB/s
...
 
the issue here is that the underlying tool (dd) prints '\r' as "newlines" (it's to overwrite the old text on the cli)
on the commandline, etc. it's possibly "normalized" to a \n but the web ui framework simply print it as is, and \r will not be interpreted by the browser ...

we could theoretically replace these in the frontend but then the paging virtual scrolling is not correct anymore. otherwise we could replace it in the backend, but this is probably very costly to do for all tasks (since we have to to id for the whole task...)

we could also fix it for the specific tool calling here, but this is probably not the only place where this happens...