From 17f83e3f605bd45be6d2275e9f53b181741a7b34 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 9 Feb 2023 10:25:45 +0100 Subject: [PATCH] fix(xo-server): disable broken requestTimeout Fixes https://xcp-ng.org/forum/post/58146 Caused by nodejs/node#46574 It caused requests to timeout after 0-30 seconds, which broke all uploads. --- CHANGELOG.unreleased.md | 1 + packages/xo-server/config.toml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index c50e81dcbab..2c425f5363e 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -13,6 +13,7 @@ - [Continuous Replication] Fix `VDI_IO_ERROR` when after a VDI has been resized - [REST API] Fix VDI import +- Fix failing imports (REST API and web UI) [Forum#58146](https://xcp-ng.org/forum/post/58146) ### Packages to release diff --git a/packages/xo-server/config.toml b/packages/xo-server/config.toml index dd049f75bb9..5d3701ae0c3 100644 --- a/packages/xo-server/config.toml +++ b/packages/xo-server/config.toml @@ -132,7 +132,10 @@ port = 80 # # This breaks a number of XO use cases, for instance uploading a VDI via the # REST API, therefore it's changed to 1 day. -requestTimeout = 86400000 +# +# Completely disabled for now because it appears to be broken: +# https://github.com/nodejs/node/issues/46574 +requestTimeout = 0 [http.mounts] '/' = '../xo-web/dist'