You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please consider creating a support ticket in your dedicated support area
Done that 01.09.2023 Describe the bug
When using xo-proxy for create backups - everything works fine.
When using xo-proxy to restore backups - every time it stop exactly after 5 minutes
Restore works when using XOA without proxy or when VM is smaller and get done in less than 5 minutes
xo logs on proxy state:
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: root@65.21.133.79 Xapi#putResource /import/ Error: Premature close
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at new NodeError (node:internal/errors:393:5)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.onclose (node:internal/streams/end-of-stream:147:30)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.emit (node:events:525:35)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.patchedEmit [as emit] (/usr/local/lib/node_modules/@xen-orchestra/proxy/node_modules/@xen-orchestra/log/configure.js:52:17)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.socketCloseListener (node:_http_client:457:9)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.emit (node:events:525:35)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.patchedEmit [as emit] (/usr/local/lib/node_modules/@xen-orchestra/proxy/node_modules/@xen-orchestra/log/configure.js:52:17)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at node:net:313:12
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TCP.done (node:_tls_wrap:587:7)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: code: 'ERR_STREAM_PREMATURE_CLOSE'
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: }
To Reproduce
Create backup larger than 100 Gb on 1 gbit network.
Try to restore it using xo-proxy
Look how VHD are created on xcp-ng and get larger as import goes.
Wait with the stopwatch for exactly 5 minutes.
Watch the VHD get deleted on xcp-ng, and task fails
Expected behavior
Backups of larger VMs being restored even if it takes more than 5 minutes
Actually - it did work right after the deployment once, but after some time it stopped working.
Screenshots
Environment (please provide the following information):
XOA version:
xo-server 5.120.2
xo-web 5.122.2
Proxy:
[15:00 22] bak-xoproxy-ng04:$ xoa check
✔ Node version
✔ Memory
✔ xo-server config syntax
✔ Disk space for /
✔ Disk space for /var
✔ Native SMB support
✔ Fetching VM UUID
✔ XOA version
✔ /var is writable
✔ Appliance registration
✔ xoa-support user
✔ NTP synchronization
✔ local SSH server
✔ Internet connectivity
✔ npm version
✔ XOA status
[15:00 22] bak-xoproxy-ng04:$ node -v
v18.12.1
hypervisor: XCP-ng 8.2.1 fully patched
Additional context
I tried to apply http timeout patch (it did not help, as it does not work on node JS 18)
Tried updating XOA and proxy via Web Interface.
Tried redeploying proxy
Tried updating node JS to latest 18 and 20
Tried to add options to nano /etc/xo-server/config.toml
[http.listenOptions]
requestTimeout = 0
Tried reading trough all the forums on XOA and Node JS (like # nodejs/node#46574)
Tried building XO and proxy from the latest sources
The text was updated successfully, but these errors were encountered:
Fixes#7052
Fixes zammad#17383
When a stream is returned, the handler immediately returned a stream which disposed the resource.
Due to the disposable having a 5 mins debounce delay, the problem was only apparent after 5 mins.
Fixes#7052
Fixes zammad#17383
When a stream is returned, the handler immediately returned a stream which disposed the resource.
Due to the disposable having a 5 mins debounce delay, the problem was only apparent after 5 mins.
…7152)
Fixes#7052
Fixes zammad#17383
When a stream is returned, the handler immediately returned a stream which disposed the resource.
Due to the disposable having a 5 mins debounce delay, the problem was only apparent after 5 mins.
Are you using XOA or XO from the sources?
XOA Enterprise and XOA Proxy
If XOA:
stable
vslatest
)stable
Done that 01.09.2023
Describe the bug
When using xo-proxy for create backups - everything works fine.
When using xo-proxy to restore backups - every time it stop exactly after 5 minutes
Restore works when using XOA without proxy or when VM is smaller and get done in less than 5 minutes
xo logs on proxy state:
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: root@65.21.133.79 Xapi#putResource /import/ Error: Premature close
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at new NodeError (node:internal/errors:393:5)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.onclose (node:internal/streams/end-of-stream:147:30)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.emit (node:events:525:35)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at ClientRequest.patchedEmit [as emit] (/usr/local/lib/node_modules/@xen-orchestra/proxy/node_modules/@xen-orchestra/log/configure.js:52:17)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.socketCloseListener (node:_http_client:457:9)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.emit (node:events:525:35)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TLSSocket.patchedEmit [as emit] (/usr/local/lib/node_modules/@xen-orchestra/proxy/node_modules/@xen-orchestra/log/configure.js:52:17)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at node:net:313:12
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TCP.done (node:_tls_wrap:587:7)
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: code: 'ERR_STREAM_PREMATURE_CLOSE'
Sep 22 14:52:51 bak-xoproxy-ng04.sl-int.team xo-proxy[11262]: }
To Reproduce
Expected behavior
Backups of larger VMs being restored even if it takes more than 5 minutes
Actually - it did work right after the deployment once, but after some time it stopped working.
Screenshots
Environment (please provide the following information):
XOA version:
xo-server 5.120.2
xo-web 5.122.2
Proxy:
[15:00 22] bak-xoproxy-ng04:
$ xoa check$ node -v✔ Node version
✔ Memory
✔ xo-server config syntax
✔ Disk space for /
✔ Disk space for /var
✔ Native SMB support
✔ Fetching VM UUID
✔ XOA version
✔ /var is writable
✔ Appliance registration
✔ xoa-support user
✔ NTP synchronization
✔ local SSH server
✔ Internet connectivity
✔ npm version
✔ XOA status
[15:00 22] bak-xoproxy-ng04:
v18.12.1
Additional context
I tried to apply http timeout patch (it did not help, as it does not work on node JS 18)
Tried updating XOA and proxy via Web Interface.
Tried redeploying proxy
Tried updating node JS to latest 18 and 20
Tried to add options to nano /etc/xo-server/config.toml
[http.listenOptions]
requestTimeout = 0
Tried reading trough all the forums on XOA and Node JS (like # nodejs/node#46574)
Tried building XO and proxy from the latest sources
The text was updated successfully, but these errors were encountered: