From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A8A0597EA1 for ; Wed, 6 Mar 2024 15:04:27 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8EFB018A28 for ; Wed, 6 Mar 2024 15:04:27 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 6 Mar 2024 15:04:26 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 53876487BC for ; Wed, 6 Mar 2024 15:04:26 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Wed, 6 Mar 2024 15:04:25 +0100 Message-Id: <20240306140425.4089769-3-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240306140425.4089769-1-d.csapak@proxmox.com> References: <20240306140425.4089769-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.019 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pbs-devel] [PATCH proxmox-backup 1/1] ui: tape: transfer: increase timeout to 3 minutes X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Mar 2024 14:04:27 -0000 the default timeout of 30 seconds is too short to properly wait for a slot transfer. Increase the timeout to a value of 3 minutes. In my tests, it took about 60 seconds in a very basic changer to move a tape between two slots, so triple that to account for bigger and more complicated libraries. Signed-off-by: Dominik Csapak --- www/tape/ChangerStatus.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 27c7605c..fdafc459 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -60,6 +60,9 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { submitText: gettext('OK'), method: 'POST', url: `/api2/extjs/tape/changer/${changer}/transfer`, + submitOptions: { + timeout: 3*60*1000, + }, items: [ { xtype: 'displayfield', @@ -96,6 +99,9 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { submitText: gettext('OK'), method: 'POST', url: `/api2/extjs/tape/changer/${changer}/transfer`, + submitOptions: { + timeout: 3*60*1000, + }, items: [ { xtype: 'displayfield', -- 2.39.2